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

    grandwazir

    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.
     
  3. Offline

    MasterMeNL

    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.
     
  4. Offline

    xMopx

    I did restart the whole server when I added it.
     
  5. Offline

    grandwazir

    I'll need the error from the server log then to help you further.
     
  6. Offline

    JAC

    How do u make it say the ban hammer has spoken
     
  7. Offline

    xMopx

    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.
     
  8. Offline

    phondeux

    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.
     
  9. Offline

    grandwazir

    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.
     
  10. Offline

    Trollkemada

    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.
     
  11. Offline

    Trollkemada

    @grandwazir
    Ouch! I just saw 'Multiple language support.' But... how can I enable it? Plugin didn't create files on his directory.
     
  12. Offline

    grandwazir

    Thanks! Do not worry about where to put it - I'll add your translation to the next release.
     
  13. Offline

    Trollkemada

    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 ^^

    The mesagges showed to banned people are not translated D:

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

    grandwazir

    They should be - I'll have a look at this on Sunday.
     
  15. Offline

    Trollkemada

    Also, i have downloaded it so many times, and in /v BanHammer still say "version 1.2.3" is that right?
     
  16. Offline

    grandwazir

    No - should be version 1.3.1 - are you sure you are using the correct download link?
     
  17. Offline

    Trollkemada

  18. Offline

    Kiipa

    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
     
  19. Offline

    Trollkemada

  20. Offline

    grandwazir

    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.
     
  21. Offline

    Kiipa

    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
     
  22. Offline

    dirkson

    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

    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.

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

    Trollkemada

    @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 ^^
     
  24. Offline

    grandwazir

    @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.
     
  25. Offline

    dirkson

    Happy I could help, and thanks for the fix!
     
  26. Offline

    Trollkemada

    @grandwazir is not working with 1.3.3, still it sais I have no permissions. Now i get:

    09:41:56 [ADVERTENCIA] [BanHammer] Unable to check in built permissions for someone's weight because they are offline.
     
  27. Offline

    grandwazir

    It is a warning you can safely ignore it. Your permissions are working fine. It is just there to remind people that weight can not be checked for offline players.
     
  28. Offline

    Trollkemada

    @grandwazir but i cannot ban :S I have -'*' node and OP and i cannot ban (If you'd rather like, we can chat by Gmail, IRC, Xfire, Skype... )
     
  29. Offline

    KillFce

    why you say brodcasts actions to all players you mean something like this correct?

    player was banned, by player. reason [griefing]
     
  30. Offline

    grandwazir

    Correct.
     
  31. Offline

    Trollkemada

    Don't know if you know why is not working :S But 1.3.3 is not working for me :S Could you fix it?
     

Share This Page