public enum ClientDisconnectionReason extends java.lang.Enum<ClientDisconnectionReason> implements IDisconnectionReason
Enum Constant and Description |
---|
BAN
The client was banned
|
IDLE
The client was disconnected because he was idle for longer than what configured in the Zone as the MaxUserIdleTime
|
KICK
The client was kicked
|
UNKNOWN
The reason was not detected
|
Modifier and Type | Method and Description |
---|---|
byte |
getByteValue() |
int |
getValue() |
static ClientDisconnectionReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClientDisconnectionReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientDisconnectionReason IDLE
public static final ClientDisconnectionReason KICK
public static final ClientDisconnectionReason BAN
public static final ClientDisconnectionReason UNKNOWN
public static ClientDisconnectionReason[] values()
for (ClientDisconnectionReason c : ClientDisconnectionReason.values()) System.out.println(c);
public static ClientDisconnectionReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface IDisconnectionReason
public byte getByteValue()
getByteValue
in interface IDisconnectionReason