Class PostLoginEvent

java.lang.Object
com.velocitypowered.api.event.connection.PostLoginEvent

@AwaitingEvent public final class PostLoginEvent extends Object
This event is fired once the player has been fully initialized and is about to connect to their first server. Velocity will wait for this event to finish firing before it fires PlayerChooseInitialServerEvent with any default servers specified in the configuration, but you should try to limit the work done in any event that fires during the login process.
  • Constructor Details

    • PostLoginEvent

      public PostLoginEvent(Player player)
      Constructs a new PostLoginEvent.
      Parameters:
      player - the player who has logged in
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who has logged in and is about to connect to their first server.
      Returns:
      the player
    • toString

      public String toString()
      Overrides:
      toString in class Object