Interface Messenger

All Known Implementing Classes:
AdventureMessenger, LegacyMessenger

public interface Messenger
  • Method Details

    • send

      void send(CommandSender player, boolean addPrefix, String path, String fallback, Replaceable<?>... replaceables)
      Send a message by path with placeholders
      Parameters:
      player - target
      addPrefix - whether to add configured prefix
      path - message path in localization
      fallback - fallback message if path missing
      replaceables - placeholders
    • sendRaw

      void sendRaw(CommandSender player, String rawMessage, Replaceable<?>... replaceables)
      Send a single ad-hoc message string (raw message already formatted if desired)
      Parameters:
      player - target
      rawMessage - raw message string
      replaceables - placeholders
    • sendList

      void sendList(CommandSender player, String path, Replaceable<?>... replaceables)
      Send a list of messages by path with placeholders
      Parameters:
      player - target
      path - message path in localization
      replaceables - placeholders