Class MessageService

java.lang.Object
dev.despical.particletext.message.MessageService

public final class MessageService extends Object
Loads immutable MiniMessage templates for chat and inventory presentation.

Missing keys fall back to bundled templates in memory. A replacement map is published only after all message value types have been checked, allowing invalid configuration to leave the active presentation intact.

User content and external placeholder output stay literal during formatting. Explicit Adventure components carry trusted action buttons and hover details without exposing user-controlled markup.

  • Constructor Details

  • Method Details

    • load

      public Map<String,Object> load()
    • apply

      public void apply(Map<String,Object> replacement)
    • send

      public void send(org.bukkit.command.CommandSender recipient, String path, Var... variables)
    • sendList

      public void sendList(org.bukkit.command.CommandSender recipient, String path, Var... variables)
    • parse

      public net.kyori.adventure.text.Component parse(String raw, Var... variables)
    • parse

      public net.kyori.adventure.text.Component parse(org.bukkit.entity.Player player, String raw, Var... variables)
    • parseList

      public List<net.kyori.adventure.text.Component> parseList(org.bukkit.entity.Player player, String path, Var... variables)
    • lines

      public List<String> lines(String path)
    • raw

      public String raw(String path)