java.lang.Object
tech.guilhermekaua.spigotboot.core.spigot.text.ChatMarkup

public final class ChatMarkup extends Object
A small, dependency-free chat markup language that renders consistently across MC versions. Built on the bundled BungeeCord chat API only (no Adventure / MiniMessage), so it stays usable on 1.8.8. A single forward pass produces two outputs:
  • parse(String)BaseComponent[] for players: discrete TextComponent runs (no ComponentBuilder format-bleed) carrying colours, styles, click and hover.
  • legacy(String) → a legacy §-string for item meta / console: colours and hex are resolved to section codes and the interactive tags are stripped (inner text kept).
Grammar: &/§ colour + style codes (k l m n o r), #rrggbb hex (version-gated via HexSupport), [click=run|suggest|url:value]…[/click], [hover=text]…[/hover], and \ escapes.
  • Method Details

    • parse

      public static net.md_5.bungee.api.chat.BaseComponent[] parse(String src)
    • legacy

      public static String legacy(String src)
    • legacy

      public static String legacy(String src, boolean nativeHex)
      Colours/hex resolved to §-codes; interactive tags stripped (their inner text kept). For item meta.
    • parse

      public static net.md_5.bungee.api.chat.BaseComponent[] parse(String src, boolean nativeHex)