Class TwoFactorAuthEvent

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.TwoFactorAuthEvent
All Implemented Interfaces:
EventWithPlayer

public class TwoFactorAuthEvent extends BungeeEvent implements EventWithPlayer
Event triggered when a player authenticates via a second factor.

It is triggered during the account recovery process, for example.

  • Constructor Details

    • TwoFactorAuthEvent

      public TwoFactorAuthEvent(TwoFactorType type, net.md_5.bungee.api.connection.ProxiedPlayer player, String account)
  • Method Details

    • getType

      public TwoFactorType getType()
      Returns the two factor type.
    • getPlayer

      public net.md_5.bungee.api.connection.ProxiedPlayer getPlayer()
      Return the player instance.
      Specified by:
      getPlayer in interface EventWithPlayer
    • getAccount

      public String getAccount()
      Return the twofactor account.