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