Enum PlayerLeaveGameEvent.LeaveReason

java.lang.Object
java.lang.Enum<PlayerLeaveGameEvent.LeaveReason>
net.blueva.arcade.api.events.PlayerLeaveGameEvent.LeaveReason
All Implemented Interfaces:
Serializable, Comparable<PlayerLeaveGameEvent.LeaveReason>
Enclosing class:
PlayerLeaveGameEvent<P>

public static enum PlayerLeaveGameEvent.LeaveReason extends Enum<PlayerLeaveGameEvent.LeaveReason>
Represents the different reasons why a player can leave a game.
  • Enum Constant Details

    • QUIT

      public static final PlayerLeaveGameEvent.LeaveReason QUIT
      The player voluntarily quit the game. This is triggered when a player uses a leave command or exits normally.
    • DISCONNECT

      public static final PlayerLeaveGameEvent.LeaveReason DISCONNECT
      The player disconnected from the server. This occurs when the player loses connection to the server.
    • KICK

      public static final PlayerLeaveGameEvent.LeaveReason KICK
      The player was kicked from the game. This happens when an administrator or game rule removes the player.
    • SERVER_STOP

      public static final PlayerLeaveGameEvent.LeaveReason SERVER_STOP
      The player left due to server shutdown. This is triggered when the server is stopping or restarting.
  • Method Details

    • values

      public static PlayerLeaveGameEvent.LeaveReason[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PlayerLeaveGameEvent.LeaveReason valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null