Package org.bukkit.event.player
Enum Class PlayerQuitEvent.QuitReason
- All Implemented Interfaces:
- Serializable,- Comparable<PlayerQuitEvent.QuitReason>,- Constable
- Enclosing class:
- PlayerQuitEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic PlayerQuitEvent.QuitReasonReturns 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- 
DISCONNECTEDThe 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. 
- 
KICKEDThe player was kicked from the server.
- 
TIMED_OUTThe player has timed out.
- 
ERRONEOUS_STATEThe 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-