Package net.md_5.bungee.api.event
Class ServerSwitchEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- net.md_5.bungee.api.event.ServerSwitchEvent
-
public class ServerSwitchEvent extends Event
Called when a player has changed servers.
-
-
Constructor Summary
Constructors Constructor Description ServerSwitchEvent(ProxiedPlayer player, ServerInfo from)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ServerInfo
getFrom()
Server the player is switch from.ProxiedPlayer
getPlayer()
Player whom the server is for.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ServerSwitchEvent
public ServerSwitchEvent(ProxiedPlayer player, ServerInfo from)
-
-
Method Detail
-
getPlayer
public ProxiedPlayer getPlayer()
Player whom the server is for.
-
getFrom
public ServerInfo getFrom()
Server the player is switch from. May be null if initial proxy connection.
-
canEqual
protected boolean canEqual(Object other)
-
-