Wontfix: Plugin removes formatting from items in anvil
Are you using MySQL?
No
Are you using a proxy?
Yes - Velocity
"/version ChatControlRed" - plugin version
11.1.9
Optional: Error log
No response
ZIP of "/chc debug"
Steps to reproduce
Basically it happens without doing/configuring anything. I have clean Purpur 1.21.1 server with only ChatControl (default settings) installed and formatting from items while for example enchanting in anvil are getting stripped
ps: idk if I've chosen "Are you using a proxy?" correctly, yea I use velocity on my server, but no I don't use velocitycontrol if that was a question
I have looked thru your debug file and noticed this setting is empty
Colors:
# Where should we let players to use & or MiniMessage tags?
# Available: anvil, book, chat, me, say, sign, prefix, nick, suffix, private_message
Apply_On: []
plase add "anvil" into this
Known "feature", this behavior is due to rules not being effective with colors applied, so we remove them unless you have chatcontrol.color.use.anvil permission while Colors.Apply_On contains [anvil]
Leaving opened, and since we're open source now, contributions to change this behavior are welcome.
hmm I see, but if it's because of the rules, why removing "anvil" from Rules.Apply_On doesn't bring back vanilla anvil behavior tho?
Because renaming items is still filtered by Rules. If we would not remove colors, players without color permission could use them to bypass rules easily.
Just want to note that this wasn't an issue on ChatControlRed v10.28.6
Do you still have the source code for v10 @kangarko?
I lack the experience to properly fix this, but will help where possible
I do but it's not gonna work as the system there was completely different.
I was playing around with this and even after disabling rules for anvils etc
The colours continue to get stripped effectively meaning this behaviour cannot be disabled.
The issue here is that we now parse minimessage tags, whereas on chatcontrol 10 we would not do any color parsing and thus only keep existing colors (or remove them if rules were configured such)
This should work as a temporary fix: https://github.com/kangarko/ChatControl/commit/196ca9142b91260da6b41ab1b89683574bc9e69e