[SPIGOT-5829] rgb hex colours not supported in several places Created: 25/Jun/20 Updated: 26/Jun/20 Resolved: 25/Jun/20 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | New Feature | Priority: | Minor |
Reporter: | Jan Boerman | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | ChatColor, bungeecord-chat, hex, rgb | ||
Environment: |
Java 14, Windows 10 |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Version: | CraftBukkit version git-Spigot-758abbe-614fbae (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT) |
Guidelines Read: | Yes |
Description |
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.
|
Comments |
Comment by Jan Boerman [ 26/Jun/20 ] |
The commit that resolved the issue introduced a new bug: the lore and displayname on an itemstack are shown in brown correctly, but they are italic now. Can this issue be reopened? |