Class UnauthenticatedInitialLimboEvent

java.lang.Object
pl.spcode.navauth.api.event.velocity.UnauthenticatedInitialLimboEvent
All Implemented Interfaces:
NavAuthEvent

public class UnauthenticatedInitialLimboEvent extends Object implements NavAuthEvent
  • Constructor Details

    • UnauthenticatedInitialLimboEvent

      public UnauthenticatedInitialLimboEvent(com.velocitypowered.api.proxy.Player player, @Nullable com.velocitypowered.api.proxy.server.RegisteredServer initialLimbo)
      Parameters:
      player - the player that was connected
      initialLimbo - the initial limbo server selected by NavAuth, may be null
  • Method Details

    • getPlayer

      public com.velocitypowered.api.proxy.Player getPlayer()
    • getInitialLimbo

      public Optional<com.velocitypowered.api.proxy.server.RegisteredServer> getInitialLimbo()
    • setInitialLimbo

      public void setInitialLimbo(@Nullable com.velocitypowered.api.proxy.server.RegisteredServer server)
      Sets the new initial limbo.
      Parameters:
      server - the initial limbo the player should connect to handle the authentication
    • toString

      public String toString()
      Overrides:
      toString in class Object