public class PasswordUpdateEvent extends BukkitEvent implements EventWithPlayer
May be unavailable for PROXY
implementations.
Constructor and Description |
---|
PasswordUpdateEvent(org.bukkit.entity.Player player,
java.util.UUID playerId,
java.lang.String playerName,
java.lang.String newPassword,
UpdatePasswordSource source) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewPassword()
Returns the new password.
|
org.bukkit.entity.Player |
getPlayer()
Returns the player instance.
|
java.util.UUID |
getPlayerId()
Returns the player id.
|
java.lang.String |
getPlayerName()
Returns the player name.
|
UpdatePasswordSource |
getSource()
Returns the update password source.
|
getHandlerList, getHandlers
public PasswordUpdateEvent(org.bukkit.entity.Player player, java.util.UUID playerId, java.lang.String playerName, java.lang.String newPassword, UpdatePasswordSource source)
@Nullable public org.bukkit.entity.Player getPlayer()
It can be unavailable if the player is offline.
getPlayer
in interface EventWithPlayer
public java.util.UUID getPlayerId()
public java.lang.String getPlayerName()
@Nullable public java.lang.String getNewPassword()
public UpdatePasswordSource getSource()