Class TwoFactorAuthEvent
java.lang.Object
com.nickuc.login.api.event.velocity.twofactor.TwoFactorAuthEvent
- All Implemented Interfaces:
EventWithPlayer
Event triggered when a player authenticates via a second factor.
It is triggered during the account recovery process, for example.
-
Constructor Summary
ConstructorsConstructorDescriptionTwoFactorAuthEvent
(TwoFactorType type, com.velocitypowered.api.proxy.Player player, String account) -
Method Summary
Modifier and TypeMethodDescriptionReturn the twofactor account.com.velocitypowered.api.proxy.Player
Return the player instance.getType()
Returns the two factor type.
-
Constructor Details
-
TwoFactorAuthEvent
public TwoFactorAuthEvent(TwoFactorType type, com.velocitypowered.api.proxy.Player player, String account)
-
-
Method Details
-
getType
Returns the two factor type. -
getPlayer
public com.velocitypowered.api.proxy.Player getPlayer()Return the player instance.- Specified by:
getPlayer
in interfaceEventWithPlayer
-
getAccount
Return the twofactor account.
-