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



    Ok, its kinda a big ask, but do you think you could please give me the code you made for perm and temp bans lists? Its perfect, Id change them up abit tho, Its just I have know Idea how to link the database information to my site.
    I Will Love you forever and ever! :)
    Ohh and BTW, if you made that site yourself, your amazing, Great job bro :)

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


    In the new version it will be possible for other plugins to use BanHammer to handle their bans. I've added this to install anti chat spam protection on my own server. I'll be releasing it this weekend along with the documentation.
    HaydenCappadona likes this.
  4. Offline


    Add a config to edit ban messages. Please i would love that!
  5. Offline


    I still have problems with permissionsEX Could you fix it? :S :S
  6. Offline


    Did I not look at this and fix it a while back?

    What locale is java set to run with on your server?

    This will be fixed in the next version.

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


    There are a lot of idiots raiding my server trying to make it lag with their spam macro and grief, whenever i ban them they are able to re-enter the server! With the same name. I am also using xAuth and it does nothing so i think they return with the same acc.
    How can i solve this?
  8. Offline


    Type thier complete name when you ban them for the time being. I'd suggest you turn on the whitelist as well until things calm down.
  9. Offline


    So are we gona get that configurable ban message?

    Great plugin!

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


    Seems like not working for me on PEX 1.15 :S
  11. Offline


    I get this when trying to start my server.
    CB 1317
    BH 1.4.2

    2011-10-12 21:02:53 [SEVERE] not found
    2011-10-12 21:02:53 [INFO] DataSourcePool [BanHammer] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-10-12 21:02:53 [SEVERE] FATAL: DataSourcePool [BanHammer] is down!!!
    2011-10-12 21:02:53 [INFO] Reseting DataSourcePool [BanHammer] min:2 max:20 free:0 busy:0 waiting:0 highWaterMark:0 waitCount:0 hitCount:0
    2011-10-12 21:02:53 [INFO] Busy Connections:
    2011-10-12 21:02:53 [SEVERE] Could not load 'plugins/BanHammer.jar' in folder 'plugins':
    com.avaje.ebeaninternal.server.lib.sql.DataSourceException: java.sql.SQLException: Access denied for user 'minecraft'@'' (using password: YES)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.getDataSource(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourceGlobalManager.getDataSource(
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.getDataSourceFromConfig(
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.setDataSource(
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(
    at com.avaje.ebean.EbeanServerFactory.create(
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.(
    at net.minecraft.server.ServerConfigurationManager.(
    at net.minecraft.server.MinecraftServer.init(
    Caused by: java.sql.SQLException: Access denied for user 'minecraft'@'' (using password: YES)
    at com.mysql.jdbc.SQLError.createSQLException(
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(
    at com.mysql.jdbc.MysqlIO.secureAuth411(
    at com.mysql.jdbc.MysqlIO.doHandshake(
    at com.mysql.jdbc.ConnectionImpl.coreConnect(
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(
    at com.mysql.jdbc.ConnectionImpl.createNewIO(
    at com.mysql.jdbc.ConnectionImpl.(
    at com.mysql.jdbc.JDBC4Connection.(
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    at java.lang.reflect.Constructor.newInstance(
    at com.mysql.jdbc.Util.handleNewInstance(
    at com.mysql.jdbc.ConnectionImpl.getInstance(
    at com.mysql.jdbc.NonRegisteringDriver.connect(
    at java.sql.DriverManager.getConnection(
    at java.sql.DriverManager.getConnection(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createUnpooledConnection(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createConnectionForQueue(
    at com.avaje.ebeaninternal.server.lib.sql.PooledConnectionQueue.ensureMinimumConnections(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.initialise(
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.(
    ... 17 more 

      spawn-radius: 1
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
      - version
      username: minecraft
      isolation: SERIALIZABLE
      driver: com.mysql.jdbc.Driver
      password: ******
      url: jdbc:mysql://

    I have the SQL database set up correct, I know this because I use MySQL in MANY other plugins and all other databases are working properly. My SQL database is hosted on 190, and my MC server on 197.... ideas??
  12. Offline


    Interesting - try removing other plugins and just run BanHammer and see if that resolves the issue. That will help narrow down if it is a BanHammer bug or something else.
  13. Offline


    Support for custom message after the reason? like appeal at /website/
  14. Can you add reasons on tempbans?
  15. Offline


    Can you add Ip bans?
  16. Offline


    Issue with this is the amount of text you can send to a player when they are banned. It is already possible to cause a issue if you type in a really long reason. When I resolve that problem I can look into it.

    They are already supported, just not displayed to players when they try to login. You can show them to players by using a web page for example.

    I can't really add any value to this over the normal minecraft ip ban system except add reasons so this is unlikely at the moment.
  17. Hmm this looks nice. Can you provide with a link or tutorial for making a page like the one you provided. It would make my job a lot easier.
  18. Offline


    Help When i try kick Someone Its Stand you dont have permission to do this but i have added Permissions
    Weight heave banhammer.weight.heavy
    Help it dont work!
  19. Offline


    This is a great plugin, but if only you could make it work properly with PEX... :(
  20. Offline


    If you added IP banning support, I'd definitely switch to this! I know I can do it separately, but it's nice to just ban a user and any IP he's ever connected from. Saves me time and that's always nice! Looks good, though.
  21. Offline


    Hey, Do you think you could add a sql and sqlLite to the plugin itself? because this is the only plugin I nee to connect to a online database and because it using the bukkit settings I can only use sqlLite or Sql for everything. But if its to big of a job I understand.
    If you can do this tho Massive Thanks :D

    Regards Hayden.
  22. Offline


    Is there a way to read all the usernames that have been banned using this? When MC updates come out I run my server without bukkit so Id like to import all the people Ive banned using this to the default MC ban list until I get back on bukkit. Thanks!
  23. Offline


    Is there a way to import the banned-players.txt? If so, I'll switch to it
  24. Offline


    Some players are not allowed to play on server with reason "The Ban Hammer has spoken!", these players are not banned
  25. Offline


    Pex+essentials=can't unban?
  26. Offline


    Are you using /pardon ?
  27. Offline


    no /unban but i'l try
  28. Offline


    Yeah, the command is /pardon.
  29. Offline


    New version released. Includes Developer API and several bug fixes. Well worth updating.

    There is a way to do this by editing the bukkit.yml file, but I forget where I saw it. Try having a look on the Bukkit wiki.

    Not currently from the plugin no. I'll add it as a feature request for next version.

    Yes if you are willing to write a script to do it yourself. Otherwise I will add a way to do this when I add the export feature in the new version.
  30. Offline


    This look's like a great plugin. I'll be sure to try it out once you update too 1.0!
  31. Offline


Share This Page