Package net.blueva.arcade.api.events
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>
Represents the different reasons why a player can leave a game.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player disconnected from the server.The player was kicked from the game.The player voluntarily quit the game.The player left due to server shutdown. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PlayerLeaveGameEvent.LeaveReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUIT
The player voluntarily quit the game. This is triggered when a player uses a leave command or exits normally. -
DISCONNECT
The player disconnected from the server. This occurs when the player loses connection to the server. -
KICK
The player was kicked from the game. This happens when an administrator or game rule removes the player. -
SERVER_STOP
The player left due to server shutdown. This is triggered when the server is stopping or restarting.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-