Class DisconnectEvent

java.lang.Object
me.internalizable.numdrassl.api.event.connection.DisconnectEvent

public class DisconnectEvent extends Object
Event fired when a player disconnects from the proxy.

This event is not cancellable since the disconnection has already occurred.

  • Constructor Details

  • Method Details

    • getPlayer

      @Nonnull public Player getPlayer()
      Get the player who disconnected.
      Returns:
      the player
    • getReason

      @Nonnull public DisconnectEvent.DisconnectReason getReason()
      Get the reason for the disconnection.
      Returns:
      the disconnect reason