public class UnregisterEvent extends VelocityCancellableEvent
May be unavailable for PROXY
implementations.
Constructor and Description |
---|
UnregisterEvent(com.velocitypowered.api.proxy.Player player,
java.util.UUID playerId,
java.lang.String playerName,
UnregisterSource source) |
Modifier and Type | Method and Description |
---|---|
com.velocitypowered.api.proxy.Player |
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(com.velocitypowered.api.proxy.Player player, java.util.UUID playerId, java.lang.String playerName, UnregisterSource source)
@Nullable public com.velocitypowered.api.proxy.Player getPlayer()
It can be null if the player is offline.
public java.util.UUID getPlayerId()
public java.lang.String getPlayerName()
public UnregisterSource getSource()