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 SummaryConstructors Constructor Description ServerSwitchEvent(ProxiedPlayer player, ServerInfo from)
 - 
Method SummaryAll 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- 
ServerSwitchEventpublic ServerSwitchEvent(ProxiedPlayer player, ServerInfo from) 
 
- 
 - 
Method Detail- 
getPlayerpublic ProxiedPlayer getPlayer() Player whom the server is for.
 - 
getFrompublic ServerInfo getFrom() Server the player is switch from. May be null if initial proxy connection.
 - 
canEqualprotected boolean canEqual(Object other) 
 
- 
 
-