Holographic Displays

Holographic Displays

3M Downloads

HolographicDisplaysAPI create hologram, hex colors in text.

teddhun opened this issue ยท 1 comments

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

I created Hologram with the API, but somehow I can't colorize the text with hex.

I tried multiple variations..

  • #hexcode
  • &#hecode
  • <#hexcode>

Result

How to reproduce

  1. Create a hologram via API.
  2. AppendText with hex color

Server version

Spigot 1.18.2

Holographic Displays version

HolographicDisplaysAPI 3.0.0

Installed plugins that allow players to join with multiple Minecraft versions

ViaVersion

Additional information

`Hologram hologram = instance.getHolographicDisplaysAPI().createHologram(location);
hologram.getVisibilitySettings().setGlobalVisibility(VisibilitySettings.Visibility.HIDDEN);
hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE);

hologram.getLines().appendText("&#3b5fC7Camo");`

commented

This is expected, just like normal colors, you don't write "&c" (for example) in the text when using the API. In the same way, you can't use &#0123456, but you have to create the HEX color yourself.

See the class me.filoghost.fcommons.Colors for an example implementation.