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/
Problem : I cant change what the ban message is (for broadcasting) like say the default is (name) was banned. and i wanted to change it to (name) was banned by (admin), sadly i cant do this. Any suggestions, maybe a fix or something?!?!?
Could you add a permission, that player with this permission can't be kicked or banned, please?
I installed the 1.2.3-r0.2 to the bukkit version 1.3.1 and it works just fine :)
@CLGREEN
No, it just crashed for me. It doesn't work like a dream. Maybe you're just lucky. ;)
@javoris767
Why there is nothing wrong with the plugin it still works like a dream.
Hey, could you please add a permission to exempt someone from being banned?
@javoris767
When? I love that plugin :D
I'll take over :D. I'll have to right it from scratch tho.
can anyone take over this plugin and update it?
@javoris767
Do you have a updated version of this plugin?
If so, can you please release a ''unofficial'' version? I don't think the plugin developer is around any more.
This plugin is outdated and might not work with the current bukkit version. I keep it updated for my server :/
I have the same problem as MrCyberMonkey with IP ban.
And I have another problem:
I translated the messages in the config to Dutch, but two messages always return to default (broadcast - ban // user - ban).
-herboy8
can i use it with 2 servers on 2 vps with one base? after sql database setyp i stiil need too ban on each servers...
banip doesn't seem to be functioning right
http://pastebin.com/7gkDa9sy
I would like to make a suggestion:
My server has two ranks which allow to ban/kick/warn. The admins and moderators.
But, we don't allow moderators to permanently ban, or to ban for more than 30 days. as for now, we have to trust our mods that they will obey the rules. But it would be much better for us (the owners) if they weren't able to ban permanently/more than 30days.
What would be really great, and versatile for other servers if there was like a separate permission node for moderators, and a line in the config where i can set the maximum of moderators.
I, and the whole team of my server, really appreciate your work, and we hope that this function could be included in a next build.
Adrian
@drumming102
You need to disable the conflicting commands in essentials im using it and i dont have any problems
@mysticmagicuser
That to looks like you have a problem with your SQL not the plugin
@rmsy
Works for me dude! are you sure you are running the most uptodate version ?
I have a problem with connecting to mySQL my console gives me this when i try: 2012-05-05 09:44:33 [INFO] [BanReport] Enabling BanReport v2.41 2012-05-05 09:44:38 [SEVERE] Unable to retreive connection com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) at com.mysql.jdbc.Util.getInstance(Util.java:382) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927) at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2239) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2168) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) 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(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at me.mahoutsukaii.plugins.banreport.MySQLDatabase.getSQLConnection(MySQLDatabase.java:66) at me.mahoutsukaii.plugins.banreport.MySQLDatabase.initialise(MySQLDatabase.java:91) at me.mahoutsukaii.plugins.banreport.BanReport.onEnable(BanReport.java:134) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (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.connectWithRetries(ConnectionImpl.java:2186) ... 25 more 2012-05-05 09:44:38 [SEVERE] [BanReport] Could not establish SQL connection. Disabling BanReport 2012-05-05 09:44:38 [INFO] [BanReport] Disabling BanReport v2.41 2012-05-05 09:44:38 [INFO] BanReport v2.41 is now disabled! 2012-05-05 09:44:38 [SEVERE] Error occurred while enabling BanReport v2.41 (Is it up to date?) org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register me.mahoutsukaii.plugins.banreport.BanReportPlayerListener@1aaa4ab while not enabled at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:486) at me.mahoutsukaii.plugins.banreport.BanReport.onEnable(BanReport.java:137) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:371) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:358) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
and my config looks like this: use-mysql: true max-warnings: 5 mysql-database: jdbc:mysql://localhost:3306/banreport mysql-user: root mysql-password: root
@rmsy
Seems to work for me?