public class UnregisterEvent extends BungeeCancellableEvent
May be unavailable for PROXY
implementations.
Constructor and Description |
---|
UnregisterEvent(net.md_5.bungee.api.connection.ProxiedPlayer player,
java.util.UUID playerId,
java.lang.String playerName,
UnregisterSource source) |
Modifier and Type | Method and Description |
---|---|
net.md_5.bungee.api.connection.ProxiedPlayer |
getPlayer()
Returns the player instance.
|
java.util.UUID |
getPlayerId()
Returns the player id.
|
java.lang.String |
getPlayerName()
Returns the player's name.
|
UnregisterSource |
getSource()
Returns the unregister source.
|
isCancelled, setCancelled
public UnregisterEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, java.util.UUID playerId, java.lang.String playerName, UnregisterSource source)
@Nullable public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()
It can be null if the player is offline.
public java.util.UUID getPlayerId()
public java.lang.String getPlayerName()
public UnregisterSource getSource()