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


    odd. for some reason my admins with the '*' permissions cannot ban or kick or mute any members. neither can i and im the owner. i end up having to do it from the console
  3. Offline


    What permission system are you using?

    I am going to have a look at it tonight for you.

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


    Okay, thanks :)
  5. Offline


    aww bloddy hell. permissions is inactive now. nevermind. i need to figure out how to use a built in permissions syste? since Permissions 3.1.6 is dead... and just after i thought i figured it out too...
  6. Offline


    It is easy to configure. If you have a look at the examples in the main post for configuring permissions you can setup BanHammer so it automatically gives permission to people who are operators.

    I have added a permission wildcard to the latest version which will be released shortly. You will just need to give your groups the banhammer.* permission for it to work. Also if you copy what is on the wiki about permissions into your permissions.yml you will be able to ban as an operator regardless.

    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 am Op and i have banhammer.* permission node, and it is still saying i have no permissions.

    I have double check everythink.

    Now using:
    BanHammer 1.4.1
    Bukkit #1060
    PermissionsEX 1.13

    And with no other plugins loaded (just permissions and BanHammer)
  8. Offline


    I think you have setup your permissions incorrectly. Post it here and any errors in your server log so I can help you.
  9. Offline


    PermissionsEx config.yml:
    PermissionsEx permissions.yml
    Server Log:

    Just in case you want test it quickly, here is the server itself:

    Server itself (just 9.43Mb):

    Thanks for trying to solve the issue, if you need whatever data, I'm around :)
  10. Offline


  11. Offline


    Still does not work :(

    This is the permissions.yml i used this time:
  12. Offline


  13. Offline


  14. Offline


    Actually looking at it again I know why you have to do that. I'll fix it in the next release.
  15. Offline


    All right, then :D

    Many thanks :D
  16. Offline


    Do I have to set up "Bukkit Persistance" ? Ive set up the permissions and everything works fine but nobody can ban only teampban even when im an op.
  17. Offline


    If the plugin loads and you can use it - you have set it up right. Have you given weights to your admin groups/users?
  18. Offline


    I am having issues with this plugin and I am not sure why! I am using Permissions 3.1.6, and I am an "admin" and am in the admin group, which has the permission node '*'. If I try to kick or ban or anything, I get "You do not have permission to do that", as do my mods which have the permission nodes:
    banhammer.ban banhammer.check banhammer.history banhammer.kick

    I looked at the server log and I don't see any [WARNING] or [SEVER] tags from banhammer. Help! :p
    If you need anything more, like the log file or my permissions file just let me know. For all I know I could have it set up wrong, lol.

    edit: I am using build 1060 of bukkit!
  19. Offline


    You will need to add a weight to your moderators to enable them to ban. Currently they will have a weight of 0 the same as all other players so they won't be able to ban anyone.

    The other issue has been fixed in the latest version (version 1.4.2). You can download it from the main post.
  20. Offline


    I did try giving them a weight (medium) and even myself (heavy), but it still says that I don't have permission. :(
  21. Offline


    Are you using the latest version?
  22. Offline


    Yes, 1.4.2
  23. Offline


    I'll have a look at this tomorrow. In the meantime please try disabling all plugins but BanHammer (and permissions) and try it again.

    Also try assigning banhammer.* and see if that fixes the issue.
  24. Offline


    Okay, will do when I get the chance! I really appreciate this, you're a great dev. :)
    I'll post results here later.

    Edit: Okay, I just disabled all my plugins except for permissions + banhammer, and same results. I gave myself the permission 'banhammer.*' (even though I have the '*' permission node) and a weight of heavy, and I gave my mods a weight of medium and tried the separate nodes (kick, ban etc) with no luck. Then I tried giving them 'banhammer.*' as well with no luck, still the same error, "You do not have permission..."

    Maybe I should just be switching over to bukkit permissions, seeing how the older permissions is now inactive..
  25. Offline


    I can not duplicate this issue locally. The plugin works fine with Permissions 3.1.6 using the following users.yml and groups.yml. I would double check your permission setup to make sure you have the right permissions. You can use the inbuilt permissions commands to do this for you:

    /pr <name> has banhammer.ban
    This would tell you if that person had the banhammer.ban permission - that should help you to narrow it down. But saying that I would recommend you swap over to inbuilt permissions. Managers for it are getting better and better and I think it is easier to setup and maintain.
  26. Offline


    I seem to be having the same problem as @Acester
    I've tried adding both nodes banhammer.* and banhammer.weight.heavy to the bukkit permissions.yml as well as my user.yml and groups.yml (permissions 3.1.6) And nothing has worked. When I type
    pr DVecc has banhammer.ban
    into the console I receive this: no world specified reverting to default world. And then This user/Group does not have this permission. It's even interfering with the built in ban system as it won't let me use /kick or /ban.
  27. Offline


    Can you provide me with a zip file of your server (or a test server) where you can produce this problem? I can not seem to duplicate it locally. Also try using the group and user ymls in my last post and see if that solves the problem.
  28. Offline


    I'm running the sever off of the craftbukkitstarter.bat just to clarify

    <Edit by Moderator: Redacted mediafire url>
    (I hope that wasn't blocked)

    Also on a side note do you know how I can make a message appear to users when the log in to the server that tells them the rules or whatever message I define?
    Last edited by a moderator: Nov 27, 2016
  29. Offline


    What format is the time of ban and time that it expires stored?
    I’m using MySQL and trying to create a php script to show the ban list on my website. I got it working (very basic looking atm) but now I’m faced with the task of reformatting the output of the dates/times that are stored in the database to something that people will understand.

    For example i have a ban created at 1314304036674
    How can i make that show as a readable time and date like it does when a temp banned user tries to log into the server?
  30. Offline


    may i suggest a web interface to have a ban list of your server and for how long players are banned?

  31. Offline


    The time is in milliseconds since the Unix Epoch. You can convert it into seconds by dividing by 1000 which gives you an amount that most time functions will accept. For example the following bit of php code will convert time from milliseconds into a readable date.

    $expire_time = date('M j', $time / 1000));
    This would give you a date like this 'Sep 3'. You can play around with the formatting options to make any date you like. Have a look at my own banned player list for ideas.

    It isn't something I am keen to do myself as it would not be of any direct use for me (I already have a custom setup for my server). If anyone wanted to write a standard one though and contribute it, that would be great.

    The syntax of your permission files is all wrong. Permissions rather than throwing out an error is just ignoring them instead and never actually assigns the banhammer permissions. This is how your permissions should look like: (note the - in front of each permission). Also the indentation was double what it should be.

        default: true
            prefix: '&4'
            suffix: ''
            build: true
            - banhammer.*
            - banhammer.weight.heavy
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Nov 27, 2016

Share This Page