Class TwoFactorRequestEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.nickuc.login.api.event.internal.bungee.BungeeEvent
com.nickuc.login.api.event.bungee.twofactor.TwoFactorRequestEvent
- All Implemented Interfaces:
EventWithPlayer
Event triggered when extra authentication via a second factor is requested.
It is triggered during access verification after login, for example.
-
Constructor Summary
ConstructorDescriptionTwoFactorRequestEvent
(TwoFactorType type, net.md_5.bungee.api.connection.ProxiedPlayer player, String account) -
Method Summary
Modifier and TypeMethodDescriptionReturn the twofactor account.net.md_5.bungee.api.connection.ProxiedPlayer
Return the player instance.getType()
Return the two factor type.Methods inherited from class net.md_5.bungee.api.plugin.Event
callEvent, postCall
-
Constructor Details
-
TwoFactorRequestEvent
public TwoFactorRequestEvent(TwoFactorType type, net.md_5.bungee.api.connection.ProxiedPlayer player, String account)
-
-
Method Details
-
getType
Return the two factor type. -
getPlayer
@Nonnull public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()Return the player instance.- Specified by:
getPlayer
in interfaceEventWithPlayer
-
getAccount
Return the twofactor account.
-