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

    HaydenCappadona

    OMG! AWSOME!

    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

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

    grandwazir

    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

    N0z

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

    Trollkemada

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

    grandwazir

    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

    Spl1tz

    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

    grandwazir

    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

    N0z

    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

    Trollkemada

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

    NotYetRated

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

    grandwazir

    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

    Jazed

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

    P_S

    Can you add Ip bans?
     
  16. Offline

    grandwazir

    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

    vovven6

    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
    banhammer.*
    Help it dont work!
     
  19. Offline

    Trollkemada

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

    Chrispm84

    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

    HaydenCappadona

    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

    uncannyvalley

    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

    connorcpu

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

    question42rus

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

    MetalMadness

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

    ThatBox

    Are you using /pardon ?
     
  27. Offline

    MetalMadness

    no /unban but i'l try
     
  28. Offline

    ThatBox

    Yeah, the command is /pardon.
     
  29. Offline

    grandwazir

    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

    NotoriousCraft

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

    Yoogoo

Share This Page