Class UnregisterEvent
java.lang.Object
com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
com.nickuc.login.api.event.velocity.command.UnregisterEvent
- All Implemented Interfaces:
CancellableEvent
Event triggered when an unregister operation is initiated for a player.
May be unavailable for PROXY
implementations.
-
Constructor Summary
ConstructorDescriptionUnregisterEvent
(com.velocitypowered.api.proxy.Player player, UUID playerId, String playerName, UnregisterSource source) -
Method Summary
Modifier and TypeMethodDescriptioncom.velocitypowered.api.proxy.Player
Returns the player instance.Returns the player id.Returns the player's name.Returns the unregister source.Methods inherited from class com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
isCancelled, setCancelled
-
Constructor Details
-
UnregisterEvent
public UnregisterEvent(com.velocitypowered.api.proxy.Player player, UUID playerId, String playerName, UnregisterSource source)
-
-
Method Details
-
getPlayer
@Nullable public com.velocitypowered.api.proxy.Player getPlayer()Returns the player instance.It can be null if the player is offline.
-
getPlayerId
Returns the player id.- Since:
- API v7
-
getPlayerName
Returns the player's name. -
getSource
Returns the unregister source.
-