filoghost / HolographicDisplays

Create modern looking holograms in Minecraft.

Home Page:https://dev.bukkit.org/projects/holographic-displays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API RGB color don't work

VanyaNexus opened this issue · comments

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

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

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

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