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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Version:
      -
    • Guidelines Read:
      Yes

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: