kangarko / ChatControl-Free

The legendary chat plugin. Incredible solution for ads, swear, caps, spam, bots & more!
Other
27 stars 13 forks source link

Players can bypass chat filter using color codes #63

Closed playsenge closed 2 years ago

playsenge commented 2 years ago

If we say we have a chat filter rule using regex in the "rules" folder for "fuck" to be a banned word, you obviously can't type it. But if we allow the player to use color codes in chat, they can bypass it with those. A simple solution to that would be to ChatColor.stripColors() the message before the check if the message contains banned regex.

image

kangarko commented 2 years ago

Thanks. We already offer this feature in Pro and Red, not doing feature updates to Free anymore :(

playsenge commented 2 years ago

Oh. Well I guess it's open-source? So...

kangarko commented 2 years ago

No sorry.

playsenge commented 2 years ago

I meant.... I will add it in my version.