Holographic Displays

Holographic Displays

3M Downloads

Hex colors

ChExpress3 opened this issue · 2 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

The plugin not work with hex colors

How to reproduce

  1. create a hologram
  2. put in &
  3. not work

Server version

This server is running Paper version git-Paper-399 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: d4318a6 on ver/1.17.1)

Holographic Displays version

HolographicDisplays version 3.0.0-SNAPSHOT

Installed plugins that allow players to join with multiple Minecraft versions

ViaVersion, ViaBackwards

Additional information

No response

commented

`Krono:
lines:

  • '&e&l&m &6&l&m {§r &#1D8348ciao &6&l&m} &6&l&m &e&l&m'
  • '&e♀♀♀♀♀'
  • ''
  • '&ePossiedi &7• &7 %crazycrates_Krono_total%'
    position:
    world: warps
    x: 87.51836044544193
    y: 87.67254795596608
    z: 28.53
    2022-02-07_20 16 28
    `
commented

The problem is that it gets interpreted as placeholder (the opening and closing curly braces). Use \ before to escape the characters, e.g. \{§r &#1D8348ciao &6&l&m\}

There is an issue however, the other colors/formats should not be parsed inside placeholders.