public static enum NicknameException.Type extends Enum<NicknameException.Type>
Enum Constant and Description |
---|
EVENT_CANCELLED
The nickname event was cancelled by a plugin
|
INVALID_PATTERN
This nickname does not conform to the nickname in the config
|
INVALID_STYLE_OR_COLOUR
The user has not got permission to use a style or colour
|
NO_USER
The user cannot be found in the Nucleus system
|
NOT_OWN_IGN
If a nickname is an IGN, but not their own
|
TOO_LONG
This nickname is too long
|
TOO_SHORT
This nickname is too short
|
Modifier and Type | Method and Description |
---|---|
static NicknameException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NicknameException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NicknameException.Type NOT_OWN_IGN
public static final NicknameException.Type INVALID_STYLE_OR_COLOUR
public static final NicknameException.Type INVALID_PATTERN
public static final NicknameException.Type TOO_SHORT
public static final NicknameException.Type TOO_LONG
public static final NicknameException.Type EVENT_CANCELLED
public static final NicknameException.Type NO_USER
public static NicknameException.Type[] values()
for (NicknameException.Type c : NicknameException.Type.values()) System.out.println(c);
public static NicknameException.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null