RGB color codes are stripped unless sender has certain color permissions
Tisawesomeness opened this issue · 1 comments
Type of bug
Other unexpected behaviour
/ess dump all
output
https://essentialsx.net/dump.html?id=198c833ad8eb4a96a162897908bc7932
Error log (if applicable)
No response
Bug description
If a player has the essentials.chat.rgb
permission, but not any other color permissions such as essentials.chat.color
, the RGB code will be stripped from the message. This seems to be due to expanding color codes into the vanilla §x§r§r§g§g§b§b
format, then stripping the color codes the player does not have access to.
This screenshot is the result of sending "&#ff0000test" with the following essentials.chat.<suffix>
permissions, top to bottom:
rgb
rgb
,color
rgb
,white
rgb
,black
rgb
,black
,white
Messages 1, 3, and 4 display as "§xtest" in console.
Also happens in latest stable (2.19.6).
Steps to reproduce
- Give yourself the
essentials.chat.rgb
permission, but NOT any other chat color permissions - Type "&#ff0000test"
Expected behaviour
Should display "test" in bright red
Actual behaviour
Displays "test" in white