BanReport
BanReport
Summary
All this plugin does is force unwanted players to leave, either by banning them, kicking them, temporary banning them or IP-banning them. If you like, you can allow them to return by unbanning them.
This plugin will also report all the locations and notes an administrator has given on a banned player, and allows quick access to teleport to these locations to investigate (if required).
List of commands:
/ban [player] {-s} [reason] - Bans player [player] permanently from the server, and gives them a nice message each time they try to log in. If -s is added, the ban will be silent to the other players currently online. If a player is already banned, it will add additional information with [reason].
/tempban [player] {-s} [time] [reason] - Temporarily bans a player from the game. Time is given with an integer, followed by a unit, which is either s, m, h, or d. For example, /tempban nublet 30m spamming. Will ban player nublet for 30 minutes.
/kick [player] {-s} [reason] - kicks a player from the game with a friendly reason. The player will be able to instantly rejoin.
/banip [player] OR [IP] - blocks any account with a specific IP address from joining the game. /banip nublet will ban nublet, and ban his ip, whilst /banip 53.67.32.11 will block any accounts that try to sign in with 53.67.32.11 as their IP.
/warn [player] [reason] - warns a player about their actions, and saves it to the database.
/warnings {player} - if there is no argument for player, the person who executed the command's warnings will be shown. Otherwise it will be {player}'s
/baninfo [player] - Recalls information about banned player [player]. Will list the reason they were banned for, and any additional notes that have been added.
/addinfo [player] [information] - Adds additional information regarding a banned player. This will log the coordinates of where you are standing as well.
/removeinfo [player] [id] - removes an 'additional info' entry from the database. Useful if you make a mistake.
/bantp [player] [id] - Teleports you to the location of where the additional information with id [id] was made. Useful for investigations.
/banexport - Exports the database to banned-players.txt.
/banimport - Imports from banned-players.txt to the database.
Permissions:
Here are the permission nodes:
banreport.ban - required for /ban, /tempban
banreport.baninfo - required for /baninfo /addinfo, /removeinfo
banreport.bantp
banreport.io - required for /banexport and /banimport
banreport.kick
banreport.unban
banreport.banip
banreport.warn
banreport.warnings.own - is the player allowed to view their own warnings?
banreport.warnings.viewall - allow people to see any player's warnings.
Setting up:
BanReport runs off a MySQL database, and the query for the required table are here: http://dev.bukkit.org/paste/4259/
You can also use SQLite by setting useMySQL to false in the config.yml file.
Final notes:
- To update from 1.x to 2.x, see this page: http://dev.bukkit.org/server-mods/banreport/pages/updating-from-1-x-to-2-x/
@mahoutsukaii
Ok, I never ip ban anyway (Had the same banned.ips.txt for over a year now) :)
Btw, will you add any of my suggestion? I hope you add /removewarning [#] or something like that :P
@FackTheCampers
Derp silly me, forgot to check the string length.
Just a heads up though, the port number will not transfer over!
@mahoutsukaii
My banned-ips.txt has like 6 ip's :p
Here:
80.213.14.32:13306
79.161.158.27
78.26.16.152
84.202.188.245
79.160.185.87
85.166.201.24
Edit: Tested the latest version, get error when I use /banimport from the console.
Error: http://pastebin.com/S70QZvtn
But its nothing big, it does the job so :p
@FackTheCampers
I think I might have fixed your error, but I'm not sure. Might I be able to see your banned-ips.txt, or is that too invading?
@SilverTowers
I added a donation link at the top, but I'm not looking specifically for donations if that makes sense haha.
@FackTheCampers
Right now I am redoing the entire config, so it will be easier to modify etc.
@FackTheCampers
This would be awesome - please consider adding this feature.
Thank you for this plugin!
Get this error when I use /banimport
Thanks for the update, working great!!!
@mahoutsukaii
Thanks! Can you please make the reason for reaching the maximum amount of warnings customizable?
Edit: Maybe add default ban/kick reason customizable too :) You should have Id's to warnings, and have a /removewarning <ID>
@SilverTowers
Fixed that error!
@FackTheCampers
Added your suggestion for the warning system. It now defaults to 3! For those interested, to change this value, add this line to your config.yml
I might add your suggestions later, at the moment, I'm trying to clean up the code, as it is very messy, and there are heaps of deprecated methods :(
@mahoutsukaii
I love this plugin! Do you have a donation link anywhere? I'd love to throw a few bucks in for continued support.
I can also backup the break in the /baninfo command (bukkit #2032 1.2.3) and lastest dev version of ban report.
2012-03-05 03:41:33 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'baninfo' in plugin BanReport v2.22 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:818) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761) at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:117) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112) at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:60) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at jadon.mahoutsukaii.plugins.banreport.BanReport.banInfo(BanReport.java:301) at jadon.mahoutsukaii.plugins.banreport.BanReport.onCommand(BanReport.java:135) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 14 more
@mahoutsukaii
Get this when i use /baninfo
Thanks for update! :)
Some suggestions: Get ban time when using /baninfo <player> Warn time when using /warnings Autoban after x warnings Perm bans tp banned-players.txt option
Thanks, hope you look at the suggestions.
Going to be tinkering with this in hopes of being able to replace the "easyban" plugin, I look forward to seeing what you've done.
@SharkTankPure
Updated for 1.2.3 Dev build
@Elving21
I'm not going to support servers which are running in offline mode.
@mahoutsukaii
Please update.
This break with the latest build (1.2)
An update will be amazing.
@mahoutsukaii
Hi, why when i give some player Ipban and after this palyer change his nick and connect it give AutobBan and ban this name whith whoose he connected, can you make only kick palyer? Beacause this player can for example change his name to admin name and connect, and admin have ban? Sry for my english :P
Can you update the source at Github ? ;d
@mahoutsukaii