Enum Class PlayerLeaveGameEvent.LeaveReason
java.lang.Object
java.lang.Enum<PlayerLeaveGameEvent.LeaveReason>
dev.despical.tntrun.api.event.player.PlayerLeaveGameEvent.LeaveReason
- All Implemented Interfaces:
Serializable, Comparable<PlayerLeaveGameEvent.LeaveReason>, Constable
- Enclosing class:
PlayerLeaveGameEvent
Represents the cause of a player leaving the game.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer left due to disconnecting from the server.Player got kicked from the game by an administrator.Player left using the leave command.Player left using a leave item. -
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
-
LEAVE_COMMAND
Player left using the leave command. -
LEAVE_ITEM
Player left using a leave item. -
KICK
Player got kicked from the game by an administrator. -
DISCONNECT
Player left due to disconnecting from the server.
-
-
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
-