-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
None
-
Java 14, Windows 10
-
CraftBukkit version git-Spigot-758abbe-614fbae (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
-
Yes
Inventory#setTitle(String), BookMeta#setTitle(String[]), ItemMeta#setDisplayName(String) and ItemMeta#setLore(List<String>) don't respect the rgb hex colours created using net.md_5.bungee.api.ChatColor#of(String).
Steps to reproduce:
Have a plugin that creates a custom inventory with a custom title with in it some custom items with custom names and titles that use rgb chatcolours.
Verify in-game that the text does not display in the right colour. Digging through "/data get entity @p" it shows that in the cases mentioned a regular string text component is used with legacy text in it.
In my example I expected to find text coloured brown, but I got black instead.
Interestingly text in book pages did display in the correct brown colour.