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 booleancanEqual(Object other)booleanequals(Object o)ServerInfogetFrom()Server the player is switch from.ProxiedPlayergetPlayer()Player whom the server is for.inthashCode()StringtoString()
-
-
-
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)
-
-