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

    datwerd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    just to clarify the idea is
    admins banhammer.weight.heavy
    moderators banhammer.weight.medium

    if moderators have banhammer.moderation
    they cant ban admins only lower groups
    correct?
  4. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Heavier weights beat lighter weights. In the case of a tie nobody wins, so yes you have the right idea.
  5. Offline

    datwerd

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    very nice ill use this on my server
  6. Offline

    xMopx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This isn't working for me - whatever command I type just returns the usage info (as if I had entered no args). I'm on bukkit 1000.

    This post has been edited 1 time. It was last edited by xMopx Aug 1, 2011.
  7. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get this error every time I kick someone (kicking works fine, it just decides to poop on me or something).
    Code:
    2011-08-01 19:12:59 [SEVERE] Could not pass event PLAYER_QUIT to PermissionsBukkit
    java.lang.IllegalArgumentException: Attachment cannot be null
        at org.bukkit.permissions.PermissibleBase.removeAttachment(PermissibleBase.java:134)
        at org.bukkitcontrib.player.ContribCraftPlayer.removeAttachment(ContribCraftPlayer.java:140)
        at com.platymuus.bukkit.permissions.PermissionsPlugin.unregisterPlayer(PermissionsPlugin.java:137)
        at com.platymuus.bukkit.permissions.PlayerListener.onPlayerQuit(PlayerListener.java:24)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
        at net.minecraft.server.NetServerHandler.disconnect(NetServerHandler.java:117)
        at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:135)
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.kickPlayer(BanHammerCommandManager.java:319)
        at name.richardson.james.banhammer.commands.BanHammerCommandManager.onCommand(BanHammerCommandManager.java:105)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        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)
    Running CB1000 with BH v1.3.1

    Greetings,
    MasterMe.
  8. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Plugin has most likely not loaded at all. This sometimes happens if you update the plugin and do a server reload instead of a restart. Look in your server.log for some clues.

    @MasterMeNL I get the same error but it isn't my error. It is an error in PermmisionsBukkit instead.
  9. Offline

    MasterMeNL

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    PermissionsBukkit has quite some bugs here, and lacks some functions I think.
    Definitely liked the old permissions more.
    I also found some sort of bug.
    If a players name is test12345, you could use /kick test griefing or something like that.
    But the plugin will say in the chat:
    "Player test12345 left the game"
    "Player test has been kicked"
    "Reason: griefing"
    Also, you think you could hook into mChat to also display prefixes and things like that?

    Greetings,
    MasterMe.
  10. Offline

    xMopx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I did restart the whole server when I added it.
  11. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll need the error from the server log then to help you further.
  12. Offline

    JAC

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How do u make it say the ban hammer has spoken
  13. Offline

    xMopx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    2011-08-04 22:19:59 [INFO] [BanHammer] Using permissions system: Permissions v2.7.2
    2011-08-04 22:19:59 [INFO] [BanHammer] Loaded 0 banned name(s) into memory
    2011-08-04 22:19:59 [INFO] [BanHammer] BanHammer v1.2.3 is enabled!
    
    This is the only BanHammer related info printed to my server.log.
  14. Offline

    phondeux

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm having the exact same issue on the same server build - banning doesn't work at all as it doesn't recognize the player names. There are no error messages at all.
  15. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This sounds odd. Try disabling all other plugins and just enable BanHammer and see if it works correctly then. Also do all commands appear not to work, or just /ban and /kick
    Try exactly the same thing I suggested to phondeux and see if that works.
  16. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Could you make msg on ban and kick totally customizable? So i can translate that :))

    Thanks for the plugin, i have not tried yet, but soon, looks great.
  17. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @grandwazir
    Ouch! I just saw 'Multiple language support.' But... how can I enable it? Plugin didn't create files on his directory.
  18. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks! Do not worry about where to put it - I'll add your translation to the next release.
  19. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wops, i was just deleting my plugins cause i just found how to do that, i just put that in place on my .jar file :-P
    Thanks anyway ^^
  20. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The mesagges showed to banned people are not translated D:
  21. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    They should be - I'll have a look at this on Sunday.
  22. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Also, i have downloaded it so many times, and in /v BanHammer still say "version 1.2.3" is that right?
  23. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No - should be version 1.3.1 - are you sure you are using the correct download link?
  24. Offline

    Trollkemada

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

    Kiipa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can you make the broadcasting of "Player ... kicked reason" and same for ban? I've been searching for a plug-in that doesn't broadcast a message like that every time I ban or kick. Or for just some groups, so only like admins can see the broadcast. :D
  26. Offline

    Trollkemada

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

    This post has been edited 1 time. It was last edited by Trollkemada Aug 14, 2011.
  27. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is the right link but it was not redirecting correctly to the latest version. It has now been fixed. Download again and you will get 1.3.1. There also appears to be a bug with Chrome in that it will download old versions of the plugin for no reason at all - even when using the correct link. Using wget or another browser works fine.

    I don't quite understand what you mean. You want to be able to choose who receives the messages when you kick and ban?

    I'll add it to the list of known issues.

    This post has been edited 1 time. It was last edited by grandwazir Aug 15, 2011.
  28. Offline

    Kiipa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ahm I meant that it would broadcast to a few players, like admins only. Or people with like banhammer.notify.

    Essentials always broadcast a message to everyone when ever I kick and ban someone, wich I don't want.
    Let's say I do /ban Bannedplayer griefing. Then it'll just say Bannedplayer left the game. For normal players, but for OP's:

    Kiipa banned Bannedplayer. Reason: griefing.

    If you can do that I will... do something big

    This post has been edited 1 time. It was last edited by Kiipa Aug 15, 2011.
  29. Offline

    dirkson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Trying to ban someone with -f

    06:25:16 [WARNING] [BanHammer] Unable to check in built permissions for Agentsmith2011's weight because they are offline.
    06:25:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'ban' in plugin BanHammer v1.3.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.lang.NullPointerException
    at ru.tehkode.permissions.compat.PermissionHandler.permission(PermissionHandler.java:70)
    at ru.tehkode.permissions.compat.PermissionHandler.has(PermissionHandler.java:43)
    at name.richardson.james.banhammer.commands.BanHammerCommandManager.getPlayerWeight(BanHammerCommandManager.java:399)
    at name.richardson.james.banhammer.commands.BanHammerCommandManager.isPlayerValidTarget(BanHammerCommandManager.java:368)
    at name.richardson.james.banhammer.commands.BanHammerCommandManager.banPlayer(BanHammerCommandManager.java:58)
    at name.richardson.james.banhammer.commands.BanHammerCommandManager.onCommand(BanHammerCommandManager.java:106)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
  30. Offline

    dirkson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In a likely related problem, I can't seem to give out the permissions to actually use any of banhammer's command. I hand out the banhammer.ban node, and yet no one can use it.
  31. Offline

    Trollkemada

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @grandwazir

    I'm now using 1.3.2 and, if I try to kick/ban someone it tell me that i don't have permissios. I have -'*' node and OP.
    The start seems right:

    18:35:14 [INFO] [BanHammer] External permissions system found (Permissions v2.7.7)
    18:35:14 [INFO] [BanHammer] Cargados 0 nombre(s) baneado(s) a memoria
    18:35:14 [INFO] [BanHammer] BanHammer v1.3.2 is enabled!

    I'm ussing #1060 and PermissionsEX 1.13, if you need more info just ask ^^
  32. Offline

    grandwazir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @dirkson @Trollkemada Thanks for reporting this issue. I don't test against PermissionsEX, it's compatibility wrapper behaves in a slightly different way to the one I test against.

    This issue is fixed with the latest version of BanHammer (1.3.3). Download it to fix the problem.

    This post has been edited 2 times. It was last edited by grandwazir Aug 17, 2011.

Share This Page