DecentSoftware-eu / DecentHolograms

A lightweight but powerful hologram plugin with many features and configuration options.
https://www.spigotmc.org/resources/96927/
GNU General Public License v3.0
211 stars 101 forks source link

No rainbow color when PlaceholderAPI placeholder returns color "&u" #257

Open danirod12 opened 2 weeks ago

danirod12 commented 2 weeks ago

Just making sure

Reproduction

  1. Install DecentHolograms and PlaceholderAPI
  2. Register a placeholder that returns text "&uplain text"
  3. Add a line with that text
  4. We see "&uplain text" not rainbowed, while just adding "&uplain text" adds rainbow line

Solution

Try to find a rainbow text after placeholder return

Server Version

purpur-1.16.5-1171

Client Version

1.16.5 OptiFine

Plugin Version

2.8.11

Log

Not needed

Andre601 commented 2 weeks ago

Pretty sure it isn't really a bug, but just how the plugin works.

And it would be difficult, if not impossible to "fix". DH would need to know about the final content it displays and if it actually changes at all to determine what state the rainbow is currently in... A rather resource intense thing to have for barely any gain.

If you want rainbow text, use it outside the placeholder itself.

danirod12 commented 2 weeks ago

Therefore you can synchronize all rainbow colors between holograms so &u will return exact color at some given time