[SPIGOT-5851]  ChatColor (HEX) doesn't appear correctly in the ActionBar Created: 26/Jun/20  Updated: 26/Jun/20  Resolved: 26/Jun/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: md_5 Assignee: Unassigned
Resolution: Fixed Votes: 0
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


Generated at Mon Dec 15 03:48:40 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.