Enum Class SpigotCommandMessages
java.lang.Object
java.lang.Enum<SpigotCommandMessages>
tech.guilhermekaua.spigotboot.commands.spigot.resolve.SpigotCommandMessages
- All Implemented Interfaces:
Serializable,Comparable<SpigotCommandMessages>,Constable,CommandMessageKey
The complete set of customizable message keys raised by the Spigot built-in argument
resolvers. Reference these constants from a
CommandMessageSource to override the
corresponding messages.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRaised when no known offline player matches the input.Raised when the input matches several online players.Raised when no online player matches the input.Raised when no world matches the input. -
Method Summary
Modifier and TypeMethodDescriptionid()static SpigotCommandMessagesReturns the enum constant of this class with the specified name.static SpigotCommandMessages[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_NOT_FOUND
Raised when no online player matches the input. Placeholders:{input}. -
PLAYER_AMBIGUOUS
Raised when the input matches several online players. Placeholders:{input},{count}. -
WORLD_NOT_FOUND
Raised when no world matches the input. Placeholders:{input}. -
OFFLINE_NOT_FOUND
Raised when no known offline player matches the input. Placeholders:{input}.
-
-
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
-
id
- Specified by:
idin interfaceCommandMessageKey
-
defaultTemplate
- Specified by:
defaultTemplatein interfaceCommandMessageKey
-
placeholders
- Specified by:
placeholdersin interfaceCommandMessageKey
-