Class ChangePasswordEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.nickuc.login.api.event.internal.bungee.BungeeEvent
com.nickuc.login.api.event.internal.bungee.BungeeCancellableEvent
com.nickuc.login.api.event.bungee.command.ChangePasswordEvent
- All Implemented Interfaces:
CancellableEvent
,EventWithPlayer
,net.md_5.bungee.api.plugin.Cancellable
Event triggered when a change password operation is initiated for a player.
May be unavailable for PROXY
implementations.
-
Constructor Summary
ConstructorDescriptionChangePasswordEvent
(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID playerId, String playerName, ChangePasswordSource source) -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.connection.ProxiedPlayer
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.bungee.BungeeCancellableEvent
isCancelled, setCancelled
Methods inherited from class net.md_5.bungee.api.plugin.Event
callEvent, postCall
-
Constructor Details
-
ChangePasswordEvent
public ChangePasswordEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID playerId, String playerName, ChangePasswordSource source)
-
-
Method Details
-
getPlayer
@Nullable public net.md_5.bungee.api.connection.ProxiedPlayer 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.
-