Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5851

ChatColor (HEX) doesn't appear correctly in the ActionBar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • -
    • Yes

      HEX colors are not showing properly when using player.spigot()#sendMessage(ChatMessageType, BaseComponent[]) to display an actionbar. It seems it's applying the color code from the last char in the hex string. (#FFFFF4 = ยง4), however using the vanilla title command with json text displays the colors properly. I've also tried using ChatColor#of(String) and TextComponent#fromLegacyText(String) but with the same issue.

      Tested on git-Spigot-16d7899-4ff609e, 1.16.1-R0.1-SNAPSHOT

      Here's an image of two calls using the same TextComponent but one sends to ActionBar and the other to the chat.

      https://github.com/SpigotMC/BungeeCord/issues/2871

            Unassigned Unassigned
            md_5 md_5
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: