Inactive [ADMN] BanHammer v2.0.2 Bans, kicks and records [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by grandwazir, Jun 26, 2011.

  1. Offline



    BanHammer is a plugin that allows adminstrators and other trusted users to ban and kick players. The basic idea is to have a lightweight banning solution that includes all the features you help manage your server. Additionally the plugin stores all bans using the Bukkit persistance system, using permissions for all commands and is simple to configure.

    • Simple and easy to configure.
    • Supports permenant as well as temporary bans.
    • Custom configurable limits to prevent moderators banning for too long.
    • Ban offline and online players.
    • Player name matching when kicking or banning players (no need to type every letter)
    • Can broadcast notifications to other players.
    • Review previous bans of a player, even after they have expired.
    • Review recent bans to see what has been happening while you have been away.
    • Banned names are cached for quick logins.
    • Reload the banned name cache on command (useful if you alter the database outside the plugin)
    • Uses Bukkit persistence for data storage; you choose what is best for you.
    • Supports built in Bukkit permissions, operators have all commands by default.
    • Command help system, simply type /bh.
    • Bukkit Persistence needs to be configured in bukkit.yml
    • If using MySQL for Persistence, you need a MySQL database

    Ensure you are using the latest recommended build.

    Before installing, you need to make sure you are running at least the latest recommended build for Bukkit. Support is only given for problems when using a recommended build. This does not mean that the plugin will not work on other versions of Bukkit, the likelihood is it will, but it is not supported.

    Getting BanHammer

    The best way to install BanHammer is to use the symbolic link to the latest version. This link always points to the latest version of BanHammer, so is safe to use in scripts or update plugins. Additionally you can to use the RSS feed provided by BukkitDev as this also includes a version changelog.

    Alternatively older versions are available as well, however they are not supported. If you are forced to use an older version for whatever reason, please let me know why by opening a issue on GitHub.

    1. Configure permissions if necessary.
    2. Optionally configure your ban limits (config.yml) and assign them to moderators.
    All documentation for BanHammer is available on the GitHub wiki, including example usage.

    Reporting issues

    If you encounter any problems using BanHammer, and you believe it is due to a bug in BanHammer, report the issue on the issue tracker. Please do not report issues in this thread as I will not see them as quickly as if you place them on the tracker.
    klarnet, PatrickFreed and fromgate like this.
  2. Offline

    The Wizard

    Yes, but also some of us want to be able to change the tabe name. I have something like this:
    and I would like to have mc_banlist.
  3. Offline


    IP bans?
  4. Offline

    Terry Tibbs

    You obviously didn't ban me. I've been around long before you created this masterpiece of a plugin.
  5. Offline

    The Wizard

    Very good plugin indeed, but to be a masterpice it must have a web interface.
  6. Offline


    With the bans all being in MySQL you can easily write one yourself. I have done a simple ban listing page for my server in about 15 lines of PHP code. Entering bans would be just as easy.

    I am aiming to get an new version released by Sunday.

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


    I like your Plugin but I have 1 Problem:
    When I ban someone in the database is the time in the table:
    created_at like that: 1310762987628
    When I use the php function date('d.m.Y ', $get->created_at)
    I get this date: 15.04.1995
    The Second Ban 2 mins later has the date: 16.04.1995 Whats wrong there?!
    Sry for bad English -.-
  8. Offline

    The Wizard

    You have to divide created_at(and/or expires_at) by 1000.
  9. Offline


    The time format stored in the database is in milliseconds and date expects a unix timestamp. To get one do as the wizard said and just divide by 1000.

    If you wanted to create a ban using php you would need to turn a timestamp into a date and then multiply it by 1000.
  10. Offline


    ok thanks for the fast answer!
    I will test it soon :)

    Edit: Thanks, it work, great plugin :D
  11. Offline


    This bug is now fixed in the latest version available from the main post in the thread. Upgrading is recommended as it features many speed improvements and fixes a couple of bugs. Weighted permissions will have to wait until next time as there was not enough time to do it in this release.

    Also it is now possible to translate BanHammer. If anyone is interested in translating it into their language please let me know.
  12. Offline


    I'm getting an error when trying to kick someone, tempban and ban seems to work fine.
    I attached 2 pictures with bukkit version and plugins and will post error code here.
    2011-07-18 12:25:40 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'kick' in plugin BanHammer v1.2.1
        at org.bukkit.command.PluginCommand.execute(
        at org.bukkit.command.SimpleCommandMap.dispatch(
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
        at net.minecraft.server.MinecraftServer.b(
        at net.minecraft.server.MinecraftServer.h(
    Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key kickedMessage
        at java.util.ResourceBundle.getObject(Unknown Source)
        at java.util.ResourceBundle.getString(Unknown Source)
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.kickPlayer(
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.onCommand(
        at org.bukkit.command.PluginCommand.execute(
        ... 6 more
    BukkitPlugins.png BukkitVersion.png
  13. Offline


    It just means I forgot to put in a translation for kicked message. I'll fix it tonight.

    Is fixed in the latest version.

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


    Also, I can confirm this works fine with Bukkit #1000 (at least v1.2.1 did, except the kicking ofcourse).
  15. Offline


    Kicking should work fine in 1.2.2 now. In other news I will be updating all my plugins to support inbuilt permissions this weekend.
  16. Offline


    Can't wait for Permissions support, my mods desperately need this!
  17. Offline


    It supports Permissions but not bukkit permissions at the moment. It is simple to do - I've just done it for my other plugin DimensionDoor. Once that is done I can work on this.
  18. Offline


    Aww sweet! I saw the list of commands but failed to see the permission nodes too. Thanks!
  19. Offline


    Could you please add IP-bans?
    For now I use the banned_ips.txt (or something like that).

  20. Offline


    How do i do so it shows player they get kick bye a player and if they got kick or tempban or ban it's only show diconnectet by server and reason
  21. Offline


    I'll look into it but it is not a priority as it is not something I really need for my server.

    Currently it is not possible to customise the kick messages to include the name of the admin who did the action.
  22. Offline


    damit :D
  23. Offline


    Just installed this plugin. Liking it so far but is it not supposed to create a text file with a log of who banned who and for what reason? I’m using MySQL and the plugins/banhammer folder is empty. No files at all.

    Also is it possible to change the message that a player gets when they are banned. E.g. i want to say. You are permanently banned. You can appeal your ban on the forum.
  24. Offline


    All bans are logged to the MySQL database so no it does not create a text file of who is banned for what. You can search the database for that information instead. Currently there is not meant to be any files in that folder.

    Adding customised messages is on my list of things to do for the next version.
  25. Offline


    o ok thanks for explaining that. looking forward to the custom messages thing. however i have another question. you say you can check ban history in the commends list ?

    But when you pardon a player all traces of them being banned is removed from the database and there are no records kept of them being banned? is this correct or am i missing somthing. i was under the impression that it kept a history of who has been banned even if the were unbanned until you purge the database.

    if it doesnt then it would be a nice feature to add so that even if the player is unbanned there is a log of it kept. either in the database or it to have it export a file to the plugin folder. I would use this to check up on a player if they wanted to be unbanned.
  26. Offline


    I would appreciate that, too. :)
  27. Offline


    just to clarify the idea is
    admins banhammer.weight.heavy
    moderators banhammer.weight.medium

    if moderators have banhammer.moderation
    they cant ban admins only lower groups
  28. Offline


    Heavier weights beat lighter weights. In the case of a tie nobody wins, so yes you have the right idea.
  29. Offline


    very nice ill use this on my server
  30. Offline


    This isn't working for me - whatever command I type just returns the usage info (as if I had entered no args). I'm on bukkit 1000.
  31. Offline


    I get this error every time I kick someone (kicking works fine, it just decides to poop on me or something).
    2011-08-01 19:12:59 [SEVERE] Could not pass event PLAYER_QUIT to PermissionsBukkit
    java.lang.IllegalArgumentException: Attachment cannot be null
        at org.bukkit.permissions.PermissibleBase.removeAttachment(
        at org.bukkitcontrib.player.ContribCraftPlayer.removeAttachment(
        at com.platymuus.bukkit.permissions.PermissionsPlugin.unregisterPlayer(
        at com.platymuus.bukkit.permissions.PlayerListener.onPlayerQuit(
        at org.bukkit.plugin.RegisteredListener.callEvent(
        at org.bukkit.plugin.SimplePluginManager.callEvent(
        at net.minecraft.server.ServerConfigurationManager.disconnect(
        at net.minecraft.server.NetServerHandler.disconnect(
        at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.kickPlayer(
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.onCommand(
        at org.bukkit.command.PluginCommand.execute(
        at org.bukkit.command.SimpleCommandMap.dispatch(
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
        at net.minecraft.server.NetServerHandler.handleCommand(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.Packet3Chat.a(
        at net.minecraft.server.NetworkManager.b(
        at net.minecraft.server.NetServerHandler.a(
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(
    Running CB1000 with BH v1.3.1


Share This Page