filoghost / HolographicDisplays

Create modern looking holograms in Minecraft.
https://dev.bukkit.org/projects/holographic-displays
GNU General Public License v3.0
370 stars 202 forks source link

API RGB color don't work #697

Closed VanyaNexus closed 1 year ago

VanyaNexus commented 1 year ago

Confirmation

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 1 year ago

It should work you use "§" instead of "&".

VanyaNexus commented 1 year ago

No, I create test holo with two lines: "&#FF6662TEST TEXT 1" and "§#FF6662TEST TEXT 2" and it doesn't work, here is a screenshot image

filoghost commented 1 year ago

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")