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/
@cal
@calvinalx
Tell me about it :( we need a active plugin on your server kiwiadmin is Inactive :( and BanReport just lets all the people back in that we banned :(
@mahoutsukaii
Bukkit: 1529 Banreport: 2.0 Nothing at console ;S
@pryor94
If you are able to edit your *.db file found in /plugins/banreport/, execute this query:
Use this program to browse the *.db file if you don't have one already: http://sourceforge.net/projects/sqlitebrowser/
@Xarias09
What version of minecraft are you using, and what version of banreport?
Also, are there any errors in the console when this happens?
Error when temp ban: http://pastebin.com/XArhwSPz Error when the player that was temp ban re logs: http://pastebin.com/1vQMUXMk
Anyway to fix it? I can't temp ban at all.
Banning at newest version dont work :) i ban player, player has been disconnect and after some seconds come back...
Thankyou so much you are the best :D:D:D:D:D:D:D
@mahoutsukaii
No Error, everything run very smoothly.
@calvinalx
hmm.. is there an error report that goes with it?
@mahoutsukaii
The lastest versions (1.8) of course :)
@calvinalx
what version are you using?
I am hoping the memory leak was to do with the database, because I've just fixed that up. Tell me if it persists, and if it does, I shall rewrite it completely.
@8bitben Agree to you. Also, The ban system is actually not working, When I banned someone, they are able to reconnect. It just hides the Login/Logout Messages.
@mahoutsukaii
Unfortunately it seems I'm still testing! I believe the plugin has a memory leak. Before running it the server hovered around 1500MB of RAM in use with 25 players, now it's slowly increasing until crashes begin to occur. Could you look into the possibility of a memory leak somewhere? Thanks ;)
@8bitben
I apologise that it took so long to iron out the bugs. I thank you for testing it! :D
Thank you my friend for fixing the problems with this plugin! You are an excellent programmer and I've been loving this plugin now that it works. :)
@lawliet555
I will add who banned the player to /baninfo.
As for the db file, it is recommended that you set up a MySQL database instead, for ease of viewing banned players. However, I will create a function to output all the banned players into an html sheet, which would also make it easier to view.
expect these in 1.8!
In the /baninfo will it show who banned a player? If not can you make it so that it will show who banned a player. That will allow for much better control on moderating banning and working with a players ban appeal.
Would it also be possible to have a file server side that a server manager could go into and look at what players are banned, who banned them, when they where banned and why they where banned. Currently you have the .db for the storage of banned players but that is not the easiest file to modify and to read when you want to manually ban a player w/o having to be in game.
Thx
Sayomie
Accidentally broke the temp ban in 1.6 :( Fixed in 1.7.
@Xarias09
What version is that in?
2011-11-09 11:26:58 [SEVERE] Could not pass event PLAYER_LOGIN to BanReport java.lang.NullPointerException at jadon.mahoutsukaii.plugins.banreport.BanReportPlayerListener.onPlayerLogin(BanReportPlayerListener.java:32) at org.bukkit.plugin.java.JavaPluginLoader$13.execute(JavaPluginLoader.java:344) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:200) at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:88) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:80) at net.minecraft.server.Packet1Login.a(SourceFile:59) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46) at net.minecraft.server.NetworkListenThread.a(SourceFile:94) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)