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,ServerKickEventwill 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 booleancanEqual(Object other)booleanequals(Object o)@NonNull ProxiedPlayergetPlayer()Player disconnecting from a server.@NonNull ServerInfogetTarget()Server the player is disconnecting from.inthashCode()StringtoString()
-
-
-
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)
-
-