Enum Class CoreCommandMessages

java.lang.Object
java.lang.Enum<CoreCommandMessages>
tech.guilhermekaua.spigotboot.commands.CoreCommandMessages
All Implemented Interfaces:
Serializable, Comparable<CoreCommandMessages>, Constable, CommandMessageKey

public enum CoreCommandMessages extends Enum<CoreCommandMessages> implements CommandMessageKey
The complete set of customizable message keys raised by the framework's built-in argument resolvers. Reference these constants from a CommandMessageSource to override the corresponding messages.
  • Enum Constant Details

    • BOOLEAN_INVALID

      public static final CoreCommandMessages BOOLEAN_INVALID
      Raised when a boolean argument cannot be parsed. Placeholders: {input}.
    • NUMBER_INVALID

      public static final CoreCommandMessages NUMBER_INVALID
      Raised when a numeric argument cannot be parsed. Placeholders: {input}.
    • ENUM_INVALID

      public static final CoreCommandMessages ENUM_INVALID
      Raised when an enum argument does not match any constant. Placeholders: {input}, {options}.
    • UUID_INVALID

      public static final CoreCommandMessages UUID_INVALID
      Raised when a UUID argument cannot be parsed. Placeholders: {input}.
  • Method Details

    • values

      public static CoreCommandMessages[] 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

      public static CoreCommandMessages valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • id

      public String id()
      Specified by:
      id in interface CommandMessageKey
      Returns:
      the stable identifier of this key, for example "player.not-found"
    • defaultTemplate

      public String defaultTemplate()
      Specified by:
      defaultTemplate in interface CommandMessageKey
      Returns:
      the fallback message template used when no CommandMessageSource overrides this key; may contain {placeholder} tokens
    • placeholders

      public List<String> placeholders()
      Specified by:
      placeholders in interface CommandMessageKey
      Returns:
      the documented placeholder names this key's template understands