API RGB color don't work
VanyaNexus opened this issue · comments
VanyaNexus commented
Confirmation
- I have read the FAQ.
- I have tested the latest development build of Holographic Displays and the bug is still present.
- I have updated Spigot to the latest release for my particular Minecraft version.
- I made sure the bug hasn't already been reported on the issue tracker.
Description
If you set the RGB color on the hologram using the API, then there is no color. If you create a hologram through commands, then the colors are perfectly displayed
How to reproduce
hologram.getLines().appendText("&#AAF310test text")
Server version
Paper 1.19.2
Holographic Displays version
3.0.2
Installed plugins that allow players to join with multiple Minecraft versions
ViaVersion, ViaBackwards
Additional information
No response
Black Hole commented
It should work you use "§" instead of "&".
VanyaNexus commented
filoghost commented
If you use the API, colors are not automatically added. You'll have to do that manually, as if you were using player.sendMessage(...)
, using the ChatColor class (for example ChatColor.GREEN + "Hello world"
)