Hey guys, We're using CB #1562 and mchat We have a rule on our server to prevent chat spam. Examples of this is: noooooooooooooooooooo omg!!!!!!!!!!!!!!!!!!! what?!?!?!?!?!?!?!! Its our most broken rule, literally every 2 minutes, and we hate seeing it, and we are forced to manually kick people, which takes a lot of time and effort. I'm no coder, and the server is growing, and I can't find anything other than "AntiSpammers" which doesn't work currently. I'm willing to offer $10 (Paid via PayPal) for this to be done ASAP that will autokick the user with the reason, as this rule is our most broken one. Any help appreciated guys, thanks so much
If some one wants to do this, you'd probably have to use the event onPlayerChat, and convert their message into a chararry. Then count the number of exclamation marks/ question marks and prevent the message from being sent. Since users might do something like "Help! Help! Help! Help!" You could check the positions before and after any found punctuation to see if it's also punctuation.
Sounds great, I don't have the expertees to get this done though, I've added a cash incentive, not a lot, $10 as I guess it won't take too long to make.
I think I could code this up today! [Edit] I'm done with the plugin. I'll PM @effortless with the details!
Yes, but they only block frequency spam, not a message like "ah!?!?!?!?!??!?!?" which is what effortless i asking for.