Enum Class PlayerLeaveGameEvent.LeaveReason
java.lang.Object
java.lang.Enum<PlayerLeaveGameEvent.LeaveReason>
dev.despical.whackme.api.event.player.PlayerLeaveGameEvent.LeaveReason
- All Implemented Interfaces:
Serializable, Comparable<PlayerLeaveGameEvent.LeaveReason>, Constable
- Enclosing class:
PlayerLeaveGameEvent
Describes why a player is being removed from a game.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe active arena was deleted.The normal game timer expired and the run finished.An administrator kicked the player from the game.The player used the leave command.The player disconnected from the server.A plugin or server reload interrupted the game.Server shutdown interrupted the game.An administrator force-stopped the game. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlayerLeaveGameEvent.LeaveReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISH
The normal game timer expired and the run finished. -
LEAVE_COMMAND
The player used the leave command. -
KICK
An administrator kicked the player from the game. -
QUIT
The player disconnected from the server. -
RELOAD
A plugin or server reload interrupted the game. -
SHUTDOWN
Server shutdown interrupted the game. -
STOP_COMMAND
An administrator force-stopped the game. -
ARENA_DELETED
The active arena was deleted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-