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

public class PasswordUpdateEvent extends BungeeEvent implements EventWithPlayer
Event triggered when a player's password is updated.

May be unavailable for PROXY implementations.

Since:
API v6
  • 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 interface EventWithPlayer
    • getPlayerId

      public UUID getPlayerId()
      Returns the player id.
      Since:
      API v7
    • getPlayerName

      public String getPlayerName()
      Returns the player name.
    • getNewPassword

      @Nullable public String getNewPassword()
      Returns the new password.
    • getSource

      public UpdatePasswordSource getSource()
      Returns the update password source.