Enum Class DisconnectEvent.DisconnectReason
java.lang.Object
java.lang.Enum<DisconnectEvent.DisconnectReason>
me.internalizable.numdrassl.api.event.connection.DisconnectEvent.DisconnectReason
- All Implemented Interfaces:
Serializable, Comparable<DisconnectEvent.DisconnectReason>, Constable
- Enclosing class:
DisconnectEvent
Reasons for a player disconnection.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player disconnected normally (quit).The connection was closed due to an error.The player was kicked by the proxy or a plugin.The backend server closed the connection.The connection timed out.The player is being transferred to another server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DisconnectEvent.DisconnectReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCONNECTED
The player disconnected normally (quit). -
TIMEOUT
The connection timed out. -
KICKED
The player was kicked by the proxy or a plugin. -
SERVER_DISCONNECT
The backend server closed the connection. -
ERROR
The connection was closed due to an error. -
TRANSFER
The player is being transferred to another 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
-