Class TwoFactorRequestEvent

java.lang.Object
com.nickuc.login.api.event.velocity.twofactor.TwoFactorRequestEvent
All Implemented Interfaces:
EventWithPlayer

public class TwoFactorRequestEvent extends Object implements EventWithPlayer
Event triggered when extra authentication via a second factor is requested.

It is triggered during access verification after login, for example.

  • Constructor Details

    • TwoFactorRequestEvent

      public TwoFactorRequestEvent(TwoFactorType type, com.velocitypowered.api.proxy.Player player, String account)
  • Method Details

    • getType

      @Nonnull public TwoFactorType getType()
      Return the two factor type.
    • getPlayer

      @Nonnull public com.velocitypowered.api.proxy.Player getPlayer()
      Return the player instance.
      Specified by:
      getPlayer in interface EventWithPlayer
    • getAccount

      @Nonnull public String getAccount()
      Return the twofactor account.