Package net.md_5.bungee.api.event
Class ServerDisconnectEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- net.md_5.bungee.api.event.ServerDisconnectEvent
-
public class ServerDisconnectEvent extends Event
Called when the player is disconnected from a server, for example during server switching. If the player is kicked from a server,ServerKickEvent
will be called instead.
-
-
Constructor Summary
Constructors Constructor Description ServerDisconnectEvent(@NonNull ProxiedPlayer player, @NonNull ServerInfo target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
@NonNull ProxiedPlayer
getPlayer()
Player disconnecting from a server.@NonNull ServerInfo
getTarget()
Server the player is disconnecting from.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ServerDisconnectEvent
public ServerDisconnectEvent(@NonNull @NonNull ProxiedPlayer player, @NonNull @NonNull ServerInfo target)
-
-
Method Detail
-
getPlayer
@NonNull public @NonNull ProxiedPlayer getPlayer()
Player disconnecting from a server.
-
getTarget
@NonNull public @NonNull ServerInfo getTarget()
Server the player is disconnecting from.
-
canEqual
protected boolean canEqual(Object other)
-
-