Interface CommandMessageKey

All Known Implementing Classes:
CoreCommandMessages

public interface CommandMessageKey
A stable, discoverable identifier for a customizable command message raised by an argument resolver. Implementations are typically enum constants so the full set of keys is discoverable through IDE autocompletion.
  • Method Details

    • id

      String id()
      Returns:
      the stable identifier of this key, for example "player.not-found"
    • defaultTemplate

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

      List<String> placeholders()
      Returns:
      the documented placeholder names this key's template understands