Xitee1 / PowerBoard

Minecraft plugin for Scoreboard, Tablist, Prefixes, Suffixes, Chat | Animated
GNU General Public License v3.0
11 stars 4 forks source link

HEX color codes not working properly in splitted scoreboard texts #61

Open Xitee1 opened 1 month ago

Xitee1 commented 1 month ago

Describe the bug When having long texts in the scoreboard and a hex color code is splitted in half by the workaround for longer scoreboard texts, it is displayed wrong because it is splitted in half. To prevent this, the hex color codes that would get splitted need to be detected by that split method and added in the second half of the split text.

https://github.com/Xitee1/PowerBoard/blob/6a56e19e7f3f2240c8df33b0f8269ca95153651a/src/main/java/de/xite/scoreboard/modules/board/ScoreTitleUtils.java#L169

To Reproduce Steps to reproduce the behavior:

  1. Have a long text in the scoreboard using a hex code in exactly the split location

Screenshots In text: CREADOR unknown

Please complete the following information:

Additional information