Inactive [ADMN/CHAT/GEN] SpamGuard v0.5 - Fully configurable chat & spam prevention [1.2.5-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by Chrono7, Dec 27, 2011.

  1. [​IMG]

    BukkitDev Page|Download|Help|Setup and Installation

    SpamGuard's purpose is to prevent spam through the use of real-time chat monitoring. SpamGuard uses methods such as disallowing more than 1 message per every x seconds, as well as counting a user's total messages for 10 seconds and flagging them if the message count is higher than a certain number. Featuring several configurable options, SpamGuard is an excellent way to keep your server's chat clean of spam.

    How does SpamGuard check for spam?
    • Word blacklisting
    • Number of messages (you can set this number) sent within a certain number of seconds
    • Caps lock detection
    • Repetitive message detection
    • More coming soon!
    How does SpamGuard prevent spam?
    • SpamGuard features a message cooldown time (configurable), so if a spam bot comes on, you won't even see 90% of the spam!
    • A Command cooldown time will prevent spamming of commands like "/me" to bypass a normal message-only spam filter.
    • If a player is flagged for sending spam-like messages, they are given a warning. If a player receives 3 (configurable) warnings, they will be kicked from the game.
    • If a player is kicked 3 (configurable) times, they will be auto-banned. SpamGuard now uses its own banning system, so it won't conflict with other ban-changing plugins.

    • Custom cooldown setting to prevent a player from sending more than 1 message or command per 0.25 (configurable) second.
    • Kicks spambots within milliseconds.
    • Only 1 message from a spambot will enter the chat, not 15+
    • Warning feature that tracks how many times a player has been flagged for spam.
    • Auto-Kick will automatically remove a player from the game if they have received a specific number of warnings.
    • Caps Lock detection will determine the percentage of upper-caps letters in a message, and flag it if it contains a high enough percentage.
    • Removes annoying message filled with numbers or symbols!
    • Word filtering will check every message against a defined list of blacklisted words, and flag the message if it contains a blacklisted word.
    • Message repeat detection will compare a player's message to their previous message, and flag it if the message is repeated a certain number of times.
    • Distance Calculating determines how similar one message was to the last and flags it!
    • Flagged messages will not be seen in the chat, and the sender will receive a warning as well as a description of the rule broken.
    Video Description:

    Have a suggestion? Read this:


    Feel free to click below to donate if you like the plugin!


    TODO List

    Check out the official SpamGuard TODO list:


    • Added message distance checking:
    • Fixed /reload
    • Tweaked cooldown settings
    • Removed Kick for x messages in x seconds - cooldowns are faster and more effective!
    • Cooldown time is now in milliseconds!
    • CapsLock blocking can now cover numbers and symbols in addition to uppercase
    • And More!
    View older versions here:
    bobbysmithyy likes this.
  2. Hmm, that confirms that I included a sort of incorrect jar file.

    As for the error, it's probably a problem with it trying to check factions when you don't have it...
    However, it could be caused by having SpamGuard installed twice, for instance having both SpamGuard_v0.3.jar and SpamGuard_v0.3.1.jar in the plugins folder at the same time. If that is the case, please have only 1 SpamGuard jar at a time.

    I'll re-upload now :D
  3. Can I see one of the full stack traces? (the whole error message, if you don't know)
    There appears to be an error with the factions checking code, I'll re-upload in a minute. Look for my edit below when it is ready.

    As for the towny support, sadly it does matter, I need to hook into each chat-altering plugin manually and change settings for each different plugin. I'll let you know when I have a version that supports towny.
  4. Offline


    loaded up 3.1 back up just to get you the error :)

    (paste expires in 24 hours).

    Awesome plugin so far. It's so close to perfection, it really is.

    edit: 1 more request, could you please add something to "add a warning" for players who use 200 thousand ? or !

    example: Hey???????????????????????????????????????????????
  5. Ok, it's what I suspected. The new, fixed version of 0.3.1 is awaiting approval from the Bukkit staff at the moment.
  6. Offline


    It randomly kicking all my users for spamming, they aren't even spamming -.-
  7. It kicked all of your users? Literally all of them? Also, it prevents you from seeing most of the messages anyway, so they may have actually been spamming.
  8. Offline


    Also, it loads up but most things fail to operate correct with multiverse loaded. Not a huge deal but for some people it will.
  9. Offline


    Didn't Kick all of them once they joined slowly all got kicked think it may be fixed :confused:, Anyways Maybe add feature in config disallow to see messages when users kicked/banned, Thanks :)
  10. Offline


    <3 good plugin, just got it to work
  11. Sure, Ill add that in 0.4
    Good to hear it!
  12. Offline


    Could u add feature to set how long will bans be or to use mute instead of ban? Configurable messages would also be nice :)

    btw. im getting error when plugin loads - its nothing important, but still:

    //edit: another thing is that bans doesnt work for "Kick for more than x messages per y seconds:"
  13. That error normally appears when enabling SpamGuard for the first time, you shouldn't see it again unless there is a problem.

    For the feature, I will consider it.
  14. Offline


    What should I do If I don not want people to get banned? "Kicks before ban: x"? What should I do?
  15. Offline


    very nice plugin
  16. Offline


    Is there a reason why spamguard uses an extreme amount of cpu? When I tested spamguard on my server, the cpu went up by 70% and my host staff confirmed that spamguard was the cause of the 70% increase as the cpu reduced by 70% when spamguard was removed. It is a pity as spamguard is such a good plugin.
  17. A dev build for 0.4 will be out in the near future, however it will not include reputations.

    I apologize for the lack of frequent updates; I am extremely busy with midterms, getting my black belt next week, the robotics team, and others. Please understand this!

    Thanks for the patience!
    o0AzzA0o likes this.
  18. Offline


    You said it has its own bannign system. Does that mean it takes over /ban ?
  19. Offline


    I get this error:
    22:46:10 [SEVERE] Could not pass event org.bukkit.event.player.PlayerChatEvent t
    o SpamGuard
    java.lang.NumberFormatException: For input string: "45,7"
    at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.lang.Double.valueOf(Unknown Source)
    at com.chrono7.spamguard.playerListener.messageAllowed(playerListener.ja
    at com.chrono7.spamguard.playerListener.onPlayerChat(
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j

    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet3Chat.handle(
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(
    at net.minecraft.server.MinecraftServer.w(

    I think this has something to do with the decimal separator (comma,period),
    but I'm not sure.. any suggestions?
  20. Offline


    Just added this plugin to my server, hopefully everything works out okay. From the looks of it you have things down pretty well here, I'm putting my trust into this one! Keep up the great work!
  21. Offline


    Hello, is there a way to configure how many characters are allowed to be capitalized? I've been searching the configuration file and have come to no avail. Help would be great! Thanks!
  22. Offline


    On the reputation thing, there should be a command that lists the rep of other players. Your rep decreases for every time you are kicked. If your rep hits 0 in a specific catagory, you are banned. The lower your rep gets, the more stringently it should check the player. I would suggest a different set of coding for each reputation range, 10-8 should be one 7-5 5-4 and 3-1. For each time it goes to the next rank down you are warned "you are now in 7-5 range, 5-4." etc. For each rank down the time between checks for each player should go down (yes I agree with that part of the survey.) The rep should be for different catagories, like swearing, caps lock, commands, etc. It should check more for each one the less rep you have in that catagory. If you have 5-4 rep in swearing, it will check you with more stringent and focused checks. Just a suggestion. Good luck, I know it wouldn't be easy to program, but it would really help the effectiveness of the plugin. No disrespect to the way it is. I really like the plugin. It works very well.
  23. Offline


    Ive seen this before with groupmanager. It is certainly a syntax error in the config. You have added an unneeded comma. Please post the config, so I can take a look at it.
  24. Offline


    "Try setting x to -1. It may give you a syntax error message, if so, then go back to what you were using before." Appologies, this does not work. It reads it like positive one. You will be banned after spamming once.
  25. Offline


    can you add translation
  26. Offline


    Message Cooldown:
    Enabled: true
    Message Cooldown Time: 1
    Command Cooldown:
    Enabled: true
    Command Cooldown Time: 3
    CoolDown Kicking:
    Enabled: true
    Kick after _ cooldown warnings: 5
    Warnings to kick: 3
    Kicks before ban: 3
    Kicks expire after _ minutes: 60
    Kick for more than _ messages per x seconds: 4
    Kick for more than x messages per _ seconds: 3
    Word Filter:
    Enabled: false
    Give Warning if blocked: true
    Filtered Words:
    - list removed for obvious reasons
    Block CapsLock:
    Enabled: true
    Disallow more than _ percent uppercase characters: 50
    Disallow more than _ message repeats: 3
    Custom ban message: 'SpamGuard: You have been banned for spamming!'
    AutoSave every _ minutes: 60
  27. Offline


    It would be nice if there was a "Word whitelist" too. My Factions plugin reads chat like "f claim" (making it act like the command "/f claim"), but to SpamGuard is just looks like spam if used a lot in quick succession.
  28. Hey everyone, updated for CB 1.2.3-R0.1 / Minecraft 1.2.3
    I finally got some more free time after getting my blackbelt, doing well on midterms, several orchestra concerts, etc.
    No big changes, just updated to the new events system and fixed some performance issues. I might put reputations on hold or cancel it, I don't find it too important at this point.
  29. Offline


    omg im getting this right now!!! thank you!

Share This Page