public class TwoFactorAddEvent extends BungeeEvent implements EventWithPlayer
May be unavailable for PROXY
implementations.
Constructor and Description |
---|
TwoFactorAddEvent(TwoFactorType type,
net.md_5.bungee.api.connection.ProxiedPlayer 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.
|
net.md_5.bungee.api.connection.ProxiedPlayer |
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, net.md_5.bungee.api.connection.ProxiedPlayer player, java.util.UUID playerId, java.lang.String playerName, java.lang.String account)
public TwoFactorType getType()
@Nullable public net.md_5.bungee.api.connection.ProxiedPlayer 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()