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

public enum SpigotCommandMessages extends Enum<SpigotCommandMessages> implements 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.
  • Enum Constant Details

    • PLAYER_NOT_FOUND

      public static final SpigotCommandMessages PLAYER_NOT_FOUND
      Raised when no online player matches the input. Placeholders: {input}.
    • PLAYER_AMBIGUOUS

      public static final SpigotCommandMessages PLAYER_AMBIGUOUS
      Raised when the input matches several online players. Placeholders: {input}, {count}.
    • WORLD_NOT_FOUND

      public static final SpigotCommandMessages WORLD_NOT_FOUND
      Raised when no world matches the input. Placeholders: {input}.
    • OFFLINE_NOT_FOUND

      public static final SpigotCommandMessages OFFLINE_NOT_FOUND
      Raised when no known offline player matches the input. Placeholders: {input}.
  • Method Details

    • values

      public static SpigotCommandMessages[] 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 SpigotCommandMessages 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
    • defaultTemplate

      public String defaultTemplate()
      Specified by:
      defaultTemplate in interface CommandMessageKey
    • placeholders

      public List<String> placeholders()
      Specified by:
      placeholders in interface CommandMessageKey