public static enum WhitelistCommand.Message extends Enum<WhitelistCommand.Message> implements TranslatableMessage
| Enum Constant and Description |
|---|
API_UNAVAILABLE |
INVALID_USERNAME |
PLAYER_ADDED |
PLAYER_ALREADY_WHITELISTED |
PLAYER_NOT_WHITELISTED |
PLAYER_REMOVED |
UNEXPECTED_ERROR |
USER_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
String |
getRawMessage()
Returns the message attached to the enum identifier
|
String[] |
getTranslateParts()
Returns the parts of this message (getRawMessage() split on " ")
|
static WhitelistCommand.Message |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WhitelistCommand.Message[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOftranslateMessagepublic static final WhitelistCommand.Message INVALID_USERNAME
public static final WhitelistCommand.Message API_UNAVAILABLE
public static final WhitelistCommand.Message USER_NOT_FOUND
public static final WhitelistCommand.Message PLAYER_ADDED
public static final WhitelistCommand.Message PLAYER_REMOVED
public static final WhitelistCommand.Message PLAYER_ALREADY_WHITELISTED
public static final WhitelistCommand.Message PLAYER_NOT_WHITELISTED
public static final WhitelistCommand.Message UNEXPECTED_ERROR
public static WhitelistCommand.Message[] values()
for (WhitelistCommand.Message c : WhitelistCommand.Message.values()) System.out.println(c);
public static WhitelistCommand.Message 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 nullpublic String getRawMessage()
TranslatableMessagegetRawMessage in interface TranslatableMessagepublic String[] getTranslateParts()
TranslatableMessagegetTranslateParts in interface TranslatableMessage