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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [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.

    This post has been edited 35 times. It was last edited by grandwazir Feb 5, 2012.
    klarnet, PatrickFreed and fromgate like this.
  2.  
  3. Offline

    TheMaa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!

    This post has been edited 1 time. It was last edited by TheMaa Sep 14, 2011.
  4. Offline

    Abdulaziz Zaatut

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I think using this with essentials does nothing. Essentials just takes over.
  5. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Any update for #1185 ?
  6. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It works fine on the new version without any updates.
  7. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Okey, i saw there was new methods for banning and so, and i though it would need update :)
  8. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  9. Offline

    The Wizard

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    /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.
  10. Offline

    josho3

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It says "I do not have permission to do this" when i try to kick someone
  11. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make sure you have given yourself a weight.
  12. Offline

    HaydenCappadona

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    will this be updated to the new recommended build 1185#?
    Because it looks great :)

    Thanks,
    Hayden
  13. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! Works fine on the latest build just not updated the title.
  14. Offline

    HaydenCappadona

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  15. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  16. Offline

    HaydenCappadona

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  17. Offline

    HaydenCappadona

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 :)
    Regards,
    Hayden

    This post has been edited 1 time. It was last edited by HaydenCappadona Sep 29, 2011.
  18. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  19. Offline

    N0z

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Add a config to edit ban messages. Please i would love that!
  20. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I still have problems with permissionsEX Could you fix it? :S :S
  21. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Did I not look at this and fix it a while back?
  22. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What locale is java set to run with on your server?

    This will be fixed in the next version.

    This post has been edited 1 time. It was last edited by grandwazir Oct 8, 2011.
  23. Offline

    Spl1tz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?

    This post has been edited 1 time. It was last edited by Spl1tz Oct 9, 2011.
  24. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  25. Offline

    N0z

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    So are we gona get that configurable ban message?

    This post has been edited 1 time. It was last edited by N0z Oct 9, 2011.
  26. Offline

    N0z

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great plugin!
  27. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Seems like not working for me on PEX 1.15 :S
  28. Offline

    NotYetRated

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get this when trying to start my server.
    CB 1317
    BH 1.4.2

    Code:
    2011-10-12 21:02:53 [SEVERE] ebean.properties 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'@'192.168.0.197' (using password: YES)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.(DataSourcePool.java:210)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.getDataSource(DataSourceManager.java:210)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourceGlobalManager.getDataSource(DataSourceGlobalManager.java:63)
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.getDataSourceFromConfig(DefaultServerFactory.java:427)
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.setDataSource(DefaultServerFactory.java:388)
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:168)
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
    at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:219)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:177)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.sql.SQLException: Access denied for user 'minecraft'@'192.168.0.197' (using password: YES)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
    at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794)
    at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createUnpooledConnection(DataSourcePool.java:401)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createConnectionForQueue(DataSourcePool.java:607)
    at com.avaje.ebeaninternal.server.lib.sql.PooledConnectionQueue.ensureMinimumConnections(PooledConnectionQueue.java:205)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.initialise(DataSourcePool.java:248)
    at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.(DataSourcePool.java:208)
    ... 17 more 


    Code:
    settings:
      spawn-radius: 1
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
    aliases:
      icanhasbukkit:
      - version
    database:
      username: minecraft
      isolation: SERIALIZABLE
      driver: com.mysql.jdbc.Driver
      password: ******
      url: jdbc:mysql://192.168.0.190:3306/mc1_bukkit
    

    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??
  29. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  30. Offline

    Jazed

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Support for custom message after the reason? like appeal at /website/
  31. Offline

    Abdulaziz Zaatut

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you add reasons on tempbans?
  32. Offline

    P_S

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you add Ip bans?

Share This Page