kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
43 stars 22 forks source link

1.20.4: HEX Color not parsed correctly with relationals placeholders #2729

Closed Willi4mDev closed 4 days ago

Willi4mDev commented 5 days ago

"/version ChatControlRed" - plugin version

10.26.3

Are you using MySQL?

Yes

Are you using BungeeCord?

Yes

Error log (if applicable)

No response

"/chc debug" output (strongly recommended)

debug.zip

Information about the issue/bug

Hi, i have a plugin with relationnals placeholder for relations colors.

Here the code: image

Here the debug: relation_color_simple_hex Player One: Willi4m Player Two: Willi4m Relation: self Relation Color: <#6CD07D> Simple Hex: #6CD07D

The format: image

And the result: image

So the returned color should be green (#6CD07D), but show a pink color, and for every hex color that show only a legacy color with the last HEX of the color code, "D" for #6CD07D, that pink, for #E0E0E0 that will take "0" and show black color.

I tried with legacy hex colors like §x§6§C§D§0§7§D or &x&6&c&d&0&7&d and i got the same result.

kangarko commented 4 days ago

Probably lost somewhere in the adventure to legacy chat translation, unfortunately it's an incompatibility.

kangarko commented 4 days ago

Can you try toggling modern chat listener? It's in settings.yml

Willi4mDev commented 4 days ago

I toggled modern chat listener to false and the problem persist :/