Package org.bukkit.event.player
Enum Class PlayerQuitEvent.QuitReason
- All Implemented Interfaces:
Serializable
,Comparable<PlayerQuitEvent.QuitReason>
,Constable
- Enclosing class:
- PlayerQuitEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe player left on their own behalf.The player's connection has entered an erroneous state.The player was kicked from the server.The player has timed out. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerQuitEvent.QuitReason
Returns the enum constant of this class with the specified name.static PlayerQuitEvent.QuitReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCONNECTED
The player left on their own behalf.This does not mean they pressed the disconnect button in their client, but rather that the client severed the connection themselves. This may occur if no keep-alive packet is received on their side, among other things.
-
KICKED
The player was kicked from the server. -
TIMED_OUT
The player has timed out. -
ERRONEOUS_STATE
The player's connection has entered an erroneous state.Reasons for this may include invalid packets, invalid data, and uncaught exceptions in the packet handler, among others.
-
-
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
-