public class TwoFactorAddEvent extends java.lang.Object implements EventWithPlayer
Constructor and Description |
---|
TwoFactorAddEvent(TwoFactorType type,
com.velocitypowered.api.proxy.Player player,
java.util.UUID playerId,
java.lang.String playerName,
java.lang.String account) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccount()
Return the twofactor account.
|
com.velocitypowered.api.proxy.Player |
getPlayer()
Return the player instance.
|
java.util.UUID |
getPlayerId()
Returns the player's UUID.
|
java.lang.String |
getPlayerName()
Returns the player's name.
|
TwoFactorType |
getType()
Returns the two factor type.
|
public TwoFactorAddEvent(TwoFactorType type, com.velocitypowered.api.proxy.Player player, java.util.UUID playerId, java.lang.String playerName, java.lang.String account)
public TwoFactorType getType()
@Nullable public com.velocitypowered.api.proxy.Player getPlayer()
It can be null if the account is added while the player is offline.
getPlayer
in interface EventWithPlayer
public java.util.UUID getPlayerId()
public java.lang.String getPlayerName()
public java.lang.String getAccount()