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

    grandwazir

    [​IMG]

    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.

    Features
    • 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.
    Requirements
    • Bukkit Persistence needs to be configured in bukkit.yml
    • If using MySQL for Persistence, you need a MySQL database
    Installation

    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.

    Configuration
    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

    TheMadMan697

    Thank you very much. That code worked for me.
    I'll play around with it some more tomorrow. I might post the php code here later if anyone wants it.
    If someone hasnt made better one by then that is :p
     
  3. Offline

    DVecc

    Ah hopefully this should work. I had taken the format from the permissions example they linked to on their thread. EDIT: Works Thank you so much xD
     
  4. Offline

    metalozedex

    hey there, I can't get this to work, I mean when I want to ban/kick or whatever it tells me I don't have the permission to do that but when I try the command /pr metalozedex has banhammer.kick it says I have the permissions.... here's my files

    <Edit by Moderator: Redacted mediafire url>

    incase you want to snoop around see if everything is in order
    I'm using permissions 3.1.6
    thank you for your time I find this a good plugin and I really want it for my server.
    there should be a video on setting this up :S


    EDIT: to top that off, I got the - '*' and it still doesn't work
     
    Last edited by a moderator: Nov 27, 2016
  5. Offline

    Acester

    Hey, it's me again..

    I switched over to PermissionsBukkit (Or superperms, or whatever the heck you wana call it) and it works fine now.
    It's a very nice system. Thank you for it.
     
  6. Offline

    grandwazir

    If you are using Permissions 3.1.6 you should leave your permissions.yml blank.

    I do not have time to have a look at it tonight but I will look at it tomorrow for you.

    I'm glad it works well for you now.

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

    khazoids

    Hey i've had a problem where this plugin wouldnt load at all, I try the command ingame nothing happens, and it doesnt say anything about banhammer either in the CMD
     
  8. Offline

    oglop

    hello, I'm using AuthDB plugin as authorisation
    and I have it connected to my CMS (joomla) users database
    How does this plugin work? will it interfer with my users database or I'm able to hook it to another database

    I mean ... If I ban player from game, I won't ban him from website right?

    bukkit.yml
    database: username: minecraft isolation: SERIALIZABLE driver: com.mysql.jdbc.Driver password: PASSWORD url: jdbc:mysql://localhost:3306/minecraft_game

    and
    AuthDB setup

    database:
    type: mysql # Database type/driver to use. Current options are MySQL and eBean (Bukkit persistence).
    host: localhost # MySQL server hostname, domain, IP, or localhost for local connections. MySQL only.
    port: 3306 # Port used for connecting to your MySQL server. This is usually 3306. MySQL only.
    username: UsersDB # Username used to connect to your database. Only valid for MySQL.
    password: password # Password used to connect to your database. MySQL only.
    name: UsersDB

    I hope you'll understand my question.
    Thank you
     
  9. Offline

    grandwazir

    It will only stop a player from logging into the server. All the bans are stored in bh_bans by default.

    Going to need more information than that to help you. Check your server log for errors.

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

    FaeDine

    Would it be possible to add an option or permission node for people who see the resultant messages from BanHammer?

    On my server there are a lot of players that seem to kind of "freak out" whenever someone gets banned for anything (they'll start removing them from their protected areas and what not). The way I see it, often the temp ban that's put in place is "punishment" enough and I post the bans elsewhere with a full explanation of why.
     
  11. Offline

    khazoids

    no errors, It just doesn't read the plugin at all, it doesnt say anything about it
     
  12. Offline

    metalozedex

    alright thanks, take your time brethren.
     
  13. Offline

    blitzer88

    Hi I'm using group manager and i have a problem. when the op use the ban command it works but when the mods use it they get an error message like you do not have permission. they have the permission node to use that command ban hammer.ban. do you guys know what the problem is ?
     
  14. Offline

    grandwazir

    Have you made sure you have assigned your moderators a weight as well?
     
  15. Offline

    blitzer88

    yes


    Moderator:
    default: false
    permissions:
    - banhammer.ban
    - banhammer.weight.medium

    it did work one time but after one ban it did not work after.. you do not have permission. MOD can type /ban and they see ban (purke,history,ban) and that stuff but when they type /ban blitzer88 you get you do not have permissions
     
  16. Offline

    kalstrams

    I have no permissions to do anything on my server.
    • bukkit 980
    • BanHammer 1.4.2
    • MineQuest,RemoteBukkit,Permissions,Wilderness,AntiHack,Residence,Cenotaph,Spout,BanHammer,Stackable,Fruitful,LWC
    Code:
    users:
        kalstrams:
            permissions:
                banhammer.weight.heavy: true
                banhammer.*: true
                permissions.*: true
                MineQuest.Mayor: true
                MineQuest.Command.Merc: true
                MineQuest.Command.Debug: true
            groups:
            - user
     
  17. Offline

    grandwazir

    That would make sense. They would not be allowed to ban you since you have a higher weight than them. Try getting them to ban a random name instead.
    You are running a very old version of BanHammer. Unless there is a specific reason you really should upgrade to the latest recommended build (#1060). I am not able to support older versions of BanHammer since it is likely the new version has fixed the issue you are having.
     
  18. Offline

    uncannyvalley

    Is it possible to import all of the bans from this to the default banned-players.txt? My servers gone pure survival with no bukkit and Id like retrieve the bans that were made using your plugin to add to the banned-players.txt. Thanks!
     
  19. Offline

    TheMaa

    I get this error when I use /ban or /kick.
    Unhandled exception executing command 'ban' in plugin BanHammer v1.4.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key logPlayerBanned
    at java.util.ResourceBundle.getObject(Unknown Source)
    at java.util.ResourceBundle.getString(Unknown Source)
    at name.richardson.james.banhammer.commands.BanCommand.execute(BanCommand.java:63)
    at name.richardson.james.banhammer.commands.Command.onCommand(Command.java:47)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    Plugin works as it should, I think ... But is just annoying to get the error every time I use /ban or /kick.
    Btw, nice plugin!
     
  20. I think using this with essentials does nothing. Essentials just takes over.
     
  21. Offline

    Trollkemada

    Any update for #1185 ?
     
  22. Offline

    grandwazir

    It works fine on the new version without any updates.
     
  23. Offline

    Trollkemada

    Okey, i saw there was new methods for banning and so, and i though it would need update :)
     
  24. Offline

    grandwazir

    There are a few methods for adding people to the built in ban list in Minecraft but this doesn't allow for ban history or reasons so I'll stick with my system for now.
     
  25. Offline

    The Wizard

    /ban partial name ... doesn't work
    if i ban someone using partial name, that person is kicked, but in the database at "player" is partial name, not the full name. player can enter the server.
     
  26. Offline

    josho3

    It says "I do not have permission to do this" when i try to kick someone
     
  27. Offline

    grandwazir

    Make sure you have given yourself a weight.
     
  28. Offline

    HaydenCappadona

    will this be updated to the new recommended build 1185#?
    Because it looks great :)

    Thanks,
    Hayden
     
  29. Offline

    grandwazir

    Thanks! Works fine on the latest build just not updated the title.
     
  30. Offline

    HaydenCappadona

    Ok, Cool awesome, Id recommend changing that tho :)
    Also, I know that it may be allot of work, but do you tnink you could add some kind of website support through mysql, saves bans in a mysql or something? So I can add a page on my site showing, bans reasons, time, time left, Now that would Make my Month :)
    Thanks,
    Hayden
     
  31. Offline

    grandwazir

    It already gives you the option to save to MySQL - check out my website armathia.net for an example of what you are asking. It is under utilities.
     

Share This Page