[CHAT/ADMN] SpamControl v0.16 - Stop mass chat spam dead [1000]

Discussion in 'Inactive/Unsupported Plugins' started by HaxtorMoogle, Jul 16, 2011.

  1. Offline


    SpamControl - The Best Plugin to Stop Chat Spam:
    Version: v0.16

    If you run a large server then you know how hard it can be at times to manage chat spam when there are no mods or admins logged in.
    To detect spam this plugin currently uses 2 methods. First it keeps track of the last thing each person says. If they repeat this exactly within the configured time then they are flagged for spamming, muted and jailed.
    The second method stores the time the last message was sent by a player. If the player tries to send messages too fast then they are flagged, muted and jailed. This method is very effective in stopping spam scripts and hot keys. This plugin helps mods and admins stop chat spam and punish the users properly.
    Simple commands to use this plugin. This plugin auto saves the list of spammers so if your server is restarted or crashes the players punished is safe. When a player logs out and back in and they are punished they are sent a message telling them that they are still jailed and muted for spamming chat.
    This is what it looks like when a spammer is caught

    /listspammers - Lists users that have were caught spamming by the plugin

    /unpunish (user name here) - Does all the dirty admin work for you of un-muting and un-jailing the user you define caught by the plugin

    /clearspammers - Clears the list of spammers caught by the plugin, Once you do this you must manually un-mute and un-jail the offenders.

    /spamcontrolver - Gives the version of SpamControl and gives me credit for my hard work :)

    Note: Commands should not have the leading / enter the commands as you would from the server console.
    To show a player's name in a message use ^N (Only Works with Caught_Message setting at the moment)

    Spam_Check_For_OP: - When set to false ops on the server will be exempt from spam checks. (Default: false)



    Spam_Check_Time: - Minimum time between messages sent by a user in milliseconds to call the chat spam, Useful for stopping spam scripts, average user types slower then 600 Milliseconds when not spamming (Default: 600)

    Caught_Message: - Message broadcast when a spammer is caught. (Default: ^N was a naughty and had to be punished for attempting to spam)

    Relog_Kicked_Message: - Message Player will see when they login and they were kicked by the plugin (Default: Caution You were Kicked for spamming)

    Relog_Muted_Message: - Message Player will see when they login and they were muted by the plugin (Default: Caution You are Muted for spamming)

    Relog_Jailed_Message: - Message Player will see when they login and they were jailed by the plugin (Default: Caution You are Jailed for spamming)

    Jail_Name: - Name of the jail you use (Default: jail)

    Jail_Command: - What command you use to jail users when they are bad (Default: tjail)

    Kick_Command: - What command you use to kick users when they are bad *Not used yet, part of future features (Default: kick)

    Mute_Command: - What command you use to mute users when they are bad and need muting (Default: mute)

    Ban_Command: - Ban command you type in console (Default: ban)

    Ban_Message: - Ban message Player will see (Default: You have spammed too much you are banned.)

    Permissions Settings:
    These should be given only to people or groups you trust.

    • Stops Chat Spam
    • Stops all caps chat spam
    • Very Configurable
    • Idiot Proof
    • Auto Saves List of Offenders
    • login and logout spam message auto ban
    Download this plugin from my website

    Known Bugs:
    • Can not un-punish users from server command terminal.
    Version 0.16
      • If enabled then players who are not exempt can not type in all caps and
        are sent a message telling them so.
    Version 0.15 (non public release)
    • Removed Spam_Exempt_Permission_Groups setting
    • New Permission available -SpamControl.CanSpam
      • If set for a group or player then they can spam and not be punished
    • Re-log punished messages are now configurable
    Version 0.14
    • Lots of tiny bug fixes
    • Now bans players who try to spam the server with log out chat messages using scripts or client hacks
    • players banned are logged to a .txt file
    • too much to remember for my tired brain
    Version 0.12
    • Multiple Permissions Groups can be defined in the config add a ", " between groups Spam_Exempt_Permission_Group is now named Spam_Exempt_Permission_Groups
    Version 0.1
    • Initial release works with [953]
    xxsoeasyxx, CoolOppo and codename_B like this.
  2. Offline


    They categories in your title should be together ([CHAT] [ADMN] --> [CHAT/ADMN])
  3. Offline


    so when are users banned/kicked/ or jailed? and how do you configure this. (I don't use jails, so need only kick/ban)
  4. Offline


    So, a few users on a server I'm on have run into an issue where they get spam banned for multiple messages, and that's all good and fine, that's what the plugin does, but when the admins go to use /unpunish the users still remain jailed, so they can't do anything at all except talk. Is there an easy fix to this?

    Oh, and by the way, there's nothing specified for a jail, so it uses the default names and whatnot
  5. Offline


    At the moment you need to have a jail created. I have not gotten around to making the punish action configurable yet. Users area not kicked yet but I have the code implemented for future updates. When a player is caught spamming they are muted and jailed with the jail you specify. The only time a user is banned currently is when they try to use a script or hacked client to log in and out super fast to spam the chat with login and logout messages.

    sounds like your jail might be messed up try redefining it. if you keep having trouble unmute the players and unjail them manually then do /clearspammers to clear the list
  6. Offline


    Passed the news to an admin, he says he tried it and it didn't work, and the players are still jailed to show for it. There wasn't a jail predefined to begin with, idk if that's the issue. Briefly looked at your code and it looks fine, I'm just not sure why but it's almost like it's not calling to essentials when it runs, which sucks, but again, idk if it's the issue. At any rate, I'm just wondering if there's another work around short of uninstalling the mod or deleting the player file, since it's still a good chat filter.

    Edit: Just tested this on a quick startup of my own, and I hit the same issue. Applied your suggestion, and it worked, worked on the server too. Thanks for the help!
  7. Offline


    This is looking great. I can't wait to try it out in the next day or two and tell you what I think.

    Good job so far! Been looking for an antispam plugin worth my while for quite some time :]
  8. Offline


    I suffered a total raid failure 2 days ago. Trying hard to recover all my files. might be a few days till i can provide updates again
  9. Offline


    ...but what is a jail? How does one define one?

    Edit: Ok I get it now, this plugin requires Essentials to work. That's very bad. I'll look for another plugin.
  10. Offline


    I'm using Essentials. When I type "/unpunish" it only umutes the player and I have to write "/togglejail <name>" get them out of jail.
    [INFO] Player unmuted.
    [INFO] Person is already in jail null
    Oh also, having "ALL_CAPS_SPAM_CHECK: true" you can write numbers in the chat because it counts as capslock letters or something, kinda weird :)
  11. Offline


    arn't you an admin on mau5ville?
  12. Offline


    I am a level lower then admin, but I still help out with admin tasks
  13. Offline


    i cant used chat for login (used AuthDB)
  14. Offline


    Aww Essentials only? Any chance of improving on that? If not, might I suggest mentioning it in your post.
  15. Offline


    2011-08-13 21:52:14 [SEVERE] Error occurred while enabling SpamControl v0.16 (Is it up to date?): com/sk89q/bukkit/migration/PermissionsResolverManager
    java.lang.NoClassDefFoundError: com/sk89q/bukkit/migration/PermissionsResolverManager
        at com.HaxtorMoogle.SpamControl.SpamControl.onEnable(SpamControl.java:136)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.sk89q.bukkit.migration.PermissionsResolverManager
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 11 more
  16. Offline



    I got 3 problems.

    1st probelm is that "?" is symbolised as a Capital Letter, so if someone says it by itself they get warned.
    2nd problem is a spammer got kicked and muted yet they couldn't spam but they could still speak.
    3rd problem the spammer messages still appeared after the warning.
  17. Offline


    I have a request, how about making it auto detect certain spam patterns too? It's easy to bypass some spam filters by just doing something like this:

    CoolOppo: z
    CoolOppo: x
    CoolOppo: z
    CoolOppo: x

    But not all patterns are every other message, they could be 8 different things that it spams, please fix it, thanks!
  18. Offline


    I got that too
  19. Offline


    @ Admins who use SpamControl or HaxtorMoogle - Does this work with Craftbukkit Release #1137? I love the features it has and it also support ALL CAPs spam. I hope this is updated or it still works! TY HaxtorMoogle for making this!
  20. Offline


    Can you please tell me when myplot is gonna be released . And how mutch it is gonna be.

Share This Page