Class ChangePasswordEvent
java.lang.Object
com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
com.nickuc.login.api.event.velocity.command.ChangePasswordEvent
- All Implemented Interfaces:
CancellableEvent
,EventWithPlayer
Event triggered when a change password operation is initiated for a player.
May be unavailable for PROXY
implementations.
-
Constructor Summary
ConstructorsConstructorDescriptionChangePasswordEvent
(com.velocitypowered.api.proxy.Player player, UUID playerId, String playerName, ChangePasswordSource source) -
Method Summary
Modifier and TypeMethodDescriptioncom.velocitypowered.api.proxy.Player
Returns the player instance.Returns the player id.Returns the player name.Returns the change password source.Methods inherited from class com.nickuc.login.api.event.internal.velocity.VelocityCancellableEvent
isCancelled, setCancelled
-
Constructor Details
-
ChangePasswordEvent
public ChangePasswordEvent(com.velocitypowered.api.proxy.Player player, UUID playerId, String playerName, ChangePasswordSource 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.
- Specified by:
getPlayer
in interfaceEventWithPlayer
-
getPlayerId
Returns the player id.- Since:
- API v7
-
getPlayerName
Returns the player name. -
getSource
Returns the change password source.
-