Class LoginEvent

All Implemented Interfaces:
CancellableEvent, EventWithPlayer, net.md_5.bungee.api.plugin.Cancellable

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

    • LoginEvent

      public LoginEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, @Nullable String password)
  • Method Details

    • getPlayer

      public net.md_5.bungee.api.connection.ProxiedPlayer 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