Class PasswordUpdateEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.nickuc.login.api.event.internal.bungee.BungeeEvent
com.nickuc.login.api.event.bungee.account.PasswordUpdateEvent
- All Implemented Interfaces:
EventWithPlayer
Event triggered when a player's password is updated.
May be unavailable for PROXY
implementations.
- Since:
- API v6
-
Constructor Summary
ConstructorDescriptionPasswordUpdateEvent
(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID playerId, String playerName, String newPassword, UpdatePasswordSource source) -
Method Summary
Modifier and TypeMethodDescriptionReturns the new password.net.md_5.bungee.api.connection.ProxiedPlayer
Returns the player instance.Returns the player id.Returns the player name.Returns the update password source.Methods inherited from class net.md_5.bungee.api.plugin.Event
callEvent, postCall
-
Constructor Details
-
PasswordUpdateEvent
public PasswordUpdateEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID playerId, String playerName, String newPassword, UpdatePasswordSource source)
-
-
Method Details
-
getPlayer
@Nullable public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()Returns the player instance.It can be unavailable if the player is offline.
- Specified by:
getPlayer
in interfaceEventWithPlayer
-
getPlayerId
Returns the player id.- Since:
- API v7
-
getPlayerName
Returns the player name. -
getNewPassword
Returns the new password. -
getSource
Returns the update password source.
-