Class TwoFactorRequestEvent

java.lang.Object
org.bukkit.event.Event
com.nickuc.login.api.event.internal.bukkit.BukkitEvent
com.nickuc.login.api.event.bukkit.twofactor.TwoFactorRequestEvent
All Implemented Interfaces:
EventWithPlayer

public class TwoFactorRequestEvent extends BukkitEvent 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, org.bukkit.entity.Player player, String account)
  • Method Details

    • getType

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

      @Nonnull public org.bukkit.entity.Player getPlayer()
      Return the player instance.
      Specified by:
      getPlayer in interface EventWithPlayer
    • getAccount

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