Inactive [ADMN/SEC/CHAT] SpamHammer v1.7b - Punish those spammers [1000]

Discussion in 'Inactive/Unsupported Plugins' started by dumptruckman, Jul 14, 2011.

  1. Offline


    SpamHammer - Lay down the law on spammers
    Version: v1.7b

    Detects people sending too many messages in short amounts of time (and optionally repeat messages). Mutes, kicks, and then bans players that spam the same message in that order. Server OPs are unaffected. The default settings that this installs with will only detect VERY fast messages... In other words, it will only really prevent automated spam. If you want to detect slower spam, try something like 5 messages in 3 seconds or something. Experiment!

    • Download the jar to your plugin folder and start your server.
    • Change the default settings if you want:
      • Message Limit is how many messages within the Message Period (seconds) before action is taken against the player. The default is 3 messages within 1 second.
      • *NEW* Add commands to
        that you might consider to be spam. By default /g, /general and /yell are added as examples.
    • Choose whether to use each action type. (Mute/Kick/Ban)
    • Configure the messages as you like them. Mute has a mute time to keep the player muted for. Use %t in the message to replace with the mute time.
    • Set a "cool-off" time for when to reset the action level of a player.
    • Note: all times are in seconds
    • Note: actions will always happen in order unless they are disabled. Mute, kick, then ban.
    • After the config is set to your liking, restart or reload the server.
    • You can now choose to disable all punishments and instead have SpamHammer simple rate limit messages.
    • spamunmute - unmutes a player muted by SpamHammer
    • spamunban - unbans a player banned by SpamHammer
    • spamreset - resets the punishment level of a player.
    SuperPerm nodes:
    • spamhammer.unban - allows access to /spamunban
    • spamhammer.unmute - allows access to /spamunmute
    • spamhammer.reset - allows access to /spamreset
    • spamhammer.ignore - makes player unaffected by SpamHammer
    • spamhammer.* - grants all above permissions
    Download latest version
    Source Code

    Version 1.7b
    • Now has option to not use permissions and instead use OP only for the commands. This will allow for greater compatability.
    Version 1.7a
    • No longer considers all commands for spam blocking by default. Added spammable command list to config where you should add commands that could be considered spam.
    Version 1.6
    • Added back repeat message block as a default option.
    Version 1.5a
    • Added bukkit permissions support.
    Version 1.4
    • Added config option (default: true) to prevent messages over the limit from appearing. This will allow for non-punishment solutions.
    Version 1.3b
    • Disabling certain punishments no longer breaks the ones still enabled.
    • Because this plugin could break features of BukkitContrib, players with the BC client mod on a server with the BC plugin will not be affected.
    Version 1.3a
    • SpamHammer now additionally picks up command usage to prevent using chat commands as a work-around.
    Version 1.2
    • Modified the way the plugin detects spam... Now works faster and more effectively.
    • Changed the config options.
    Mitsugaru and pandapipino like this.
  2. Offline


    Please update the plugin, it really helps my server from spammers. I was having this error though im using cb 1185.

    1. com.dumptruckman.spamhammer.SpamHammer.checkTimes(
    2. 2011-09-23 17:07:40 [SEVERE] at com.dumptruckman.spamhammer.SpamHammer$
    3. 2011-09-23 17:07:40 [SEVERE] at java.util.TimerThread.mainLoop(Unknown Source)
    4. 2011-09-23 17:07:40 [SEVERE] at Source)
    5. 2011-09-23 17:07:45 [SEVERE] java.lang.OutOfMemoryError: Java heap space
  3. Offline


    "java.lang.OutOfMemoryError" Seems like you're running out of memory.
  4. Offline


    Does this run on RB 1185?
  5. Offline


    This doesn't seem to work with RB #1185, and this was the best antispam plugin made.
  6. Offline


    Really? Can you paste the server log where there's errors? Or explain what isn't working?
  7. Offline


    someone spammed a shit load, and nothing happened lol. I'll look more into after i wake up. See if i find a log, or whats wrong with it. Good to see you're still around.
  8. Offline


    please update this plugin Thanks
  9. Offline


    No Log, just no action is taken at ALL!
  10. Offline


    Yesterday some of my players got banned innocently for some reason. I deleted their entries in banlist.yml and restarted the server. The strange thing is that they never did anything wrong.
  11. Offline


    Had this installed for a month or so now. works great! Althought just a few minutes ago it bugged the freak out. aprox. 3 hours ago 2 players where muted for spam within minutes of eachother for 30 seconds at a time, but they said nothing in chat. a little while later those same 2 players where kicked for spam after saying one thing in chat, an additional person was muted. a couple of minutes ago the 2 original players where banned for spamming, the 3rd one was kicked, and everyone onling (about 30 people) except admins where muted for 30 seconds, about a minute ago they where all kicked for spam. we disabled the plugin and it then started banning people, we then removed the plugin. I would like some feedback as to how the hell it banned people when the plugin was disabled, and why it would even start glitching like that all of the sudden? the onlyt hing that changed recently was we added a new vanishnopacket plugin about 5 hours ago, but other than that its the same as the past month. thanks ahead for any help. ~Khralen, NerdCraft Admin
  12. Offline


    I'm using herochat also. What can I do to stop spammer? they still seem to spam.
  13. Offline


    @dumptruckman I had this happen to me just now, no errors in the console. Just random bans for one message.
    Been using this plugin for months and months.
  14. Offline


    This Plugin is not compatible with newest update
    CB 1943 ( is the last version it works with plugin
    please update

    Show Spoiler

    Could not load 'plugins\SpamHammer.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(
        at org.bukkit.craftbukkit.CraftServer.<init>(
        at net.minecraft.server.ServerConfigurationManager.<init>(
        at net.minecraft.server.MinecraftServer.init(
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at Source)
        at Source)
        at$000(Unknown Source)
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.dumptruckman.spamhammer.SpamHammer.<init>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.player.PlayerListener
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 27 more
  15. Offline


    Please update
  16. Offline


    No longer works at all, outdated, we're fucked.
  17. Offline


    *sigh* Guess we must change plugins
  18. Offline


    I have an untested development version if people are desperate enough.
  19. Offline


    Sure, I'll test it
  20. Offline


    let me test to plz
    will give respond with all plugins and versions
  21. Offline


    The dev build doesn't stop spam. Here is the error it produces in the logs:
    Did you leave out a class when you compiled this?

    [INFO] [SpamHammer] Enabling SpamHammer v2.0-bUNKNOWN
    2012-03-06 14:32:31 [SEVERE] Error occurred while enabling SpamHammer v2.0-bUNKNOWN (Is it up to date?)
    at com.dumptruckman.spamhammer.pluginbase.config.BaseConfig$1.convertForGet(
    at com.dumptruckman.spamhammer.pluginbase.config.BaseConfig$1.convertForGet(
    at com.dumptruckman.spamhammer.pluginbase.config.AbstractYamlConfig.get(
    at com.dumptruckman.spamhammer.pluginbase.plugin.AbstractPluginBase.getMessager(
    at com.dumptruckman.spamhammer.pluginbase.plugin.command.PluginCommand.<init>(
    at com.dumptruckman.spamhammer.pluginbase.plugin.command.DebugCommand.<init>(
    at com.dumptruckman.spamhammer.pluginbase.plugin.AbstractPluginBase.registerCommands(
    at com.dumptruckman.spamhammer.pluginbase.plugin.AbstractPluginBase.onEnable(
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(
    at net.minecraft.server.MinecraftServer.t(
    at net.minecraft.server.MinecraftServer.a(
    at net.minecraft.server.MinecraftServer.init(
  22. Offline


    Plz update to 1.2.3
  23. Offline


    It's on

    Oh, for some reason I only just saw this o.o I'll look into it. Thanks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  24. Offline


    does the newer version 2.0 support HeroChat? If not can you please add it^^ :) Would be awesome!

  25. Offline


    looks nice !
    no error at startup or stop
    spam test was fine
    thx !

    #02082 (craftbukkit-1.2.3-R0.3-20120316.090555-20)
    dynmap essentials falsebook authme towny worldedit worldguard etc etc
  26. Offline


    Java exception has occured?? I'm new with Bukkit :) so how do I change the settings?

Share This Page