MoreMesecons icon indicating copy to clipboard operation
MoreMesecons copied to clipboard

commandblock: don't allow sending colored text if server forbids it

Open fluxionary opened this issue 2 years ago • 4 comments

currently, players can get around the strip_color_codes setting by putting color escape sequences in a command block. this PR prevents that.

fluxionary avatar Mar 04 '23 22:03 fluxionary

I do not think that the use-case of strip_color_codes applies in this case. Command blocks are only triggered when there are people nearby, hence does not qualify as a regular chat command. Sending colors, such as in welcome messages or to improve readability should not be restricted.

SmallJoker avatar Mar 18 '23 07:03 SmallJoker

Command blocks are only triggered when there are people nearby

sure, but the receiver doesn't have to be nearby, you can currently send messages to anyone on the server.

fluxionary avatar Mar 19 '23 14:03 fluxionary

Well ... that sucks

SmallJoker avatar Mar 19 '23 15:03 SmallJoker

For my reference 3922

Bastrabun avatar Feb 01 '24 07:02 Bastrabun