Class PasswordUpdateEvent

java.lang.Object
com.nickuc.login.api.event.velocity.account.PasswordUpdateEvent
All Implemented Interfaces:
EventWithPlayer

public class PasswordUpdateEvent extends Object 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(com.velocitypowered.api.proxy.Player player, UUID playerId, String playerName, String newPassword, UpdatePasswordSource source)
  • Method Details

    • getPlayer

      @Nullable public com.velocitypowered.api.proxy.Player 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.