GBan
With this plugin you can ban people on multiple Servers via a MySQL
connection!
java.lang.RuntimeException: No Connection
at com.lethe.sqlglobalban.Manager.SQLBanManager.createTable(SQLBanManager.java:103)
at com.lethe.sqlglobalban.main.SqLBan.onEnable(SqLBan.java:22)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Then you dont have a MySQL connection!
How to use the plugin:
- Download the Plugin.
- Put the Plugin in your plugin folder.
- Restart/Reload the Server.
- Edit the Config file und Paste your MySQL Data (Important: All the servers need to connect to the same Database!)
Commands:
/gban [Player] [Reason]: Use this command to ban Player. /gunban [Player]: Use this command to unban Player.Permissions:
gban.ban: You can ban and unban People.Config:
firstuse: '0' !!!Don't Change!!! user: [MySQL Username] port: '3306' database: [MySQL Database Name] host: [Hostname from the MySQL-Server(localhost)] password: [MySQL Password]Screens:
Changelog:
Version 0.1: Ban and Unban / Automatic Table Creation in the MySQL DatabaseMySQL Error:
When you have this Error: [SEVERE] Error occurred while enabling GlobalBan vAlpha 0.1 (Is it up to date?)java.lang.RuntimeException: No Connection
at com.lethe.sqlglobalban.Manager.SQLBanManager.createTable(SQLBanManager.java:103)
at com.lethe.sqlglobalban.main.SqLBan.onEnable(SqLBan.java:22)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Then you dont have a MySQL connection!
This plugin doesn't work, and is clearly not maintained, please support or remove.
Plugin keeps saying stuff like this:
2013-05-14 20:21:06 [INFO] MosesT No Entry
Even tho I have ZERO bans done.
Awesome! Any chance of adding IP bans?
Now enhance this Plugin to connect to a global database, which other Servers are able to connect to.
so if someone is banned from ServerA, he is banned on all other Servers which are connected to the Database, too.
So unbans can only allowed by the Server, which has initiated the ban. Or by the Databaseowner or Admins, which has Access to the Database. U can create a webinterface to manage the Bans.
Database entry like this:
And for Serverowners and Admins u can do a permission, to override the ban. So if i want to ban me for testing, that i am not really banned.
If Playername = AdminName then dont ban.
i have nearly the whole php script in my mind *g*
but its your plugin, and this is just a suggestion....
@CraftThatBlock
Thanks and the download is now online! ^ ^
Any release date? I will most likely use this until BungeeCord has it intergraded! :)