Class LoginEvent

All Implemented Interfaces:
CancellableEvent, EventWithPlayer

public class LoginEvent extends VelocityCancellableEvent implements EventWithPlayer
Event triggered when a player finishes authentication via login.
  • Constructor Details

    • LoginEvent

      public LoginEvent(com.velocitypowered.api.proxy.Player player, @Nullable String password)
  • Method Details

    • getPlayer

      public com.velocitypowered.api.proxy.Player getPlayer()
      Returns the player instance.
      Specified by:
      getPlayer in interface EventWithPlayer
    • getPassword

      @Nullable public String getPassword()
      Returns the password used.
      Returns:
      null if the password was not provided.
      Since:
      API v5