Preventing Extra Punctuation/letters [Urgently Required]

Discussion in 'Archived: Plugin Requests' started by effortless, Dec 11, 2011.

  1. Offline

    effortless

    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
     
  2. Offline

    evilmidget38

    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.
     
  3. Offline

    effortless

    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.
     
  4. Offline

    HotelManager24

    Nobody was interested? [creeper]
     
  5. Offline

    Zeroth

    I think I could code this up today!

    [Edit] I'm done with the plugin. I'll PM @effortless with the details!
     
  6. Offline

    KingWar92

    NoCheat have an antispam system.
     
  7. Offline

    Delocaz

    Yes, and the newest Minecraft snapshot have it too.
     
  8. Offline

    Zeroth

    Yes, but they only block frequency spam, not a message like "ah!?!?!?!?!??!?!?" which is what effortless i asking for.
     

Share This Page