Package marauroa.common.net.message
Enum Class MessageS2CLoginNACK.Reasons
- All Implemented Interfaces:
Serializable
,Comparable<MessageS2CLoginNACK.Reasons>
,Constable
- Enclosing class:
- MessageS2CLoginNACK
reason for login failure
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe client is for a different game than the serverthe nonce, which is used during setup of the encryption, is invalidthe protocol version is incompatiblethere are too many active clientsthe account is bannedthe username or password is wrong -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageS2CLoginNACK.Reasons
Returns the enum constant of this class with the specified name.static MessageS2CLoginNACK.Reasons[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USERNAME_WRONG
the username or password is wrong -
TOO_MANY_TRIES
- Since:
- will be replaced by TOO_MANY_TRIES_USERNAME and TOO_MANY_TRIES_IP in the future
-
USERNAME_BANNED
the account is banned -
SERVER_IS_FULL
there are too many active clients -
GAME_MISMATCH
the client is for a different game than the server -
PROTOCOL_MISMATCH
the protocol version is incompatible -
INVALID_NONCE
the nonce, which is used during setup of the encryption, is invalid -
USERNAME_INACTIVE
- Since:
- 3.0
-
TOO_MANY_TRIES_USERNAME
- Since:
- 3.0
-
TOO_MANY_TRIES_IP
- Since:
- 3.0
-
SEED_WRONG
- Since:
- 3.7
-
ACCOUNT_MERGED
- Since:
- 3.7.1
-
-
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
-