Package dev.aura.bungeechat.event
Class BungeeChatServerSwitchEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- dev.aura.bungeechat.event.BungeeChatServerSwitchEvent
-
public class BungeeChatServerSwitchEvent extends Event
Called when a player has changed servers.Used by BungeeChat internally to make sure people joining while they are online don't cause issues.
-
-
Constructor Summary
Constructors Constructor Description BungeeChatServerSwitchEvent(ProxiedPlayer player, ServerInfo from)BungeeChatServerSwitchEvent(ProxiedPlayer player, ServerSwitchEvent event)
-
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
-
BungeeChatServerSwitchEvent
public BungeeChatServerSwitchEvent(ProxiedPlayer player, ServerSwitchEvent event)
-
BungeeChatServerSwitchEvent
public BungeeChatServerSwitchEvent(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.
-
canEqual
protected boolean canEqual(Object other)
-
-