public class TwoFactorAuthEvent extends java.lang.Object implements EventWithPlayer
It is triggered during the account recovery process, for example.
Constructor and Description |
---|
TwoFactorAuthEvent(TwoFactorType type,
com.velocitypowered.api.proxy.Player player,
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.
|
TwoFactorType |
getType()
Returns the two factor type.
|
public TwoFactorAuthEvent(TwoFactorType type, com.velocitypowered.api.proxy.Player player, java.lang.String account)
public TwoFactorType getType()
public com.velocitypowered.api.proxy.Player getPlayer()
getPlayer
in interface EventWithPlayer
public java.lang.String getAccount()