Package co.aikar.commands
Enum MessageKeys
- java.lang.Object
-
- java.lang.Enum<MessageKeys>
-
- co.aikar.commands.MessageKeys
-
- All Implemented Interfaces:
co.aikar.locales.MessageKeyProvider,Serializable,Comparable<MessageKeys>
public enum MessageKeys extends Enum<MessageKeys> implements co.aikar.locales.MessageKeyProvider
Enum Name = MessageKey in lowercase prefixed with acf-core.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description co.aikar.locales.MessageKeygetMessageKey()static MessageKeysvalueOf(String name)Returns the enum constant of this type with the specified name.static MessageKeys[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERMISSION_DENIED
public static final MessageKeys PERMISSION_DENIED
-
PERMISSION_DENIED_PARAMETER
public static final MessageKeys PERMISSION_DENIED_PARAMETER
-
ERROR_GENERIC_LOGGED
public static final MessageKeys ERROR_GENERIC_LOGGED
-
UNKNOWN_COMMAND
public static final MessageKeys UNKNOWN_COMMAND
-
INVALID_SYNTAX
public static final MessageKeys INVALID_SYNTAX
-
ERROR_PREFIX
public static final MessageKeys ERROR_PREFIX
-
ERROR_PERFORMING_COMMAND
public static final MessageKeys ERROR_PERFORMING_COMMAND
-
INFO_MESSAGE
public static final MessageKeys INFO_MESSAGE
-
PLEASE_SPECIFY_ONE_OF
public static final MessageKeys PLEASE_SPECIFY_ONE_OF
-
MUST_BE_A_NUMBER
public static final MessageKeys MUST_BE_A_NUMBER
-
MUST_BE_MIN_LENGTH
public static final MessageKeys MUST_BE_MIN_LENGTH
-
MUST_BE_MAX_LENGTH
public static final MessageKeys MUST_BE_MAX_LENGTH
-
PLEASE_SPECIFY_AT_LEAST
public static final MessageKeys PLEASE_SPECIFY_AT_LEAST
-
PLEASE_SPECIFY_AT_MOST
public static final MessageKeys PLEASE_SPECIFY_AT_MOST
-
NOT_ALLOWED_ON_CONSOLE
public static final MessageKeys NOT_ALLOWED_ON_CONSOLE
-
COULD_NOT_FIND_PLAYER
public static final MessageKeys COULD_NOT_FIND_PLAYER
-
NO_COMMAND_MATCHED_SEARCH
public static final MessageKeys NO_COMMAND_MATCHED_SEARCH
-
HELP_PAGE_INFORMATION
public static final MessageKeys HELP_PAGE_INFORMATION
-
HELP_NO_RESULTS
public static final MessageKeys HELP_NO_RESULTS
-
HELP_HEADER
public static final MessageKeys HELP_HEADER
-
HELP_FORMAT
public static final MessageKeys HELP_FORMAT
-
HELP_DETAILED_HEADER
public static final MessageKeys HELP_DETAILED_HEADER
-
HELP_DETAILED_COMMAND_FORMAT
public static final MessageKeys HELP_DETAILED_COMMAND_FORMAT
-
HELP_DETAILED_PARAMETER_FORMAT
public static final MessageKeys HELP_DETAILED_PARAMETER_FORMAT
-
HELP_SEARCH_HEADER
public static final MessageKeys HELP_SEARCH_HEADER
-
-
Method Detail
-
values
public static MessageKeys[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageKeys c : MessageKeys.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageKeys valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageKey
public co.aikar.locales.MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceco.aikar.locales.MessageKeyProvider
-
-