gBan
Have you ever wanted a global banning solution in minecraft? Yes, yes you have. You can't deny it. Stop lying to yourself. With gBan, not only can you now integrate it into your website, but it is the latest and #1 solution for banning and muting across your server network!
Information
gBan utilizes the great power of MySQL; this allows you to ban and mute players across all your servers by connecting them to just one of your MySQL servers. You can have unlimited amount of servers, but only need one MySQL database.
Web Integration
We now have integrated a very great feature, web integration! If you host or own a website, you can upload less than 10 files to have a beautiful ban and mute page. Featuring a stylish black and white design, you will always have the visitors attention! Click here to get started with web integration.
Getting Started
To get started with gBan, please download the latest file from the right. Once you have downloaded it, please put it into your plugin directory (server/plugins/). Now, run the server for the first time. Once the server has started, it will create the config and disable the plugin . Navigate to your plugins directory, and select the gBan folder. Within this folder, please open up the config.yml (server/plugins/gban/config.yml). Now you have done this, please edit the file so it can connect to your mysql server. It should look something like this:
This config is for 2.0; it applies to 2.2 and 2.5.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # +----------------------------------------------------+ # < gBan Config File > # < Version 2.0 > # < Created By Tayler King > # +----------------------------------------------------+ # This is the host address for your MySQL server. # Note: If your MySQL server is not local, you must set it to # allow external connections. host: jdbc:mysql://localhost:3306/ # This is the database name for your MySQL server. We highly # suggest you use gBan, but it is up to you. database: gBan # This is the user name for your database. We highly # suggest you avoid using root, but it is up to you. username: root # This is the password for your database. We highly # suggest you use gBan, but it is up to you. password: password |
Once you have finished editing this file, please save and close it. You can now reload the server. If there are no errors, you are good to go.
Commands And Permissions
Permission | Syntax | Usage |
---|---|---|
gban.ban | /gban <player> [reason] | Globally bans [player] (Optional: [reason]) |
gban.unban | /gunban <player> | Globally unbans [player] |
gban.banlist | /gbanlist | Shows list of all banned players |
gban.tempban | /gtempban <player> [time] [reason] | Globally bans [player] (Optional: [time] [reason]) |
gban.mute | /gmute <player> <time> | Globally mutes [player] for [time] |
gban.unmute | /gunmute <player> | Globally unmutes [player] |
Metrics
This plugin utilises Hidendra’s plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server’s version of Java
- Whether the server is in offline or online mode
- The plugin’s version
- The server’s version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
If you wish to disable this feature (me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
Source
99 Downloads! Just within the space of 14 hours! Thanks very much guys, you're all great. If you find any bugs or have suggestions, don't forget to drop them down in the comments!
Oh, and tempbanning is in v1.9!
@TheEntropy
Just added command prefix [g] to all the gban commands (/gban, /gunban, /glist). Just waiting for bukkit staff to accept the file.. A few minor fixes as well.
@strohutruffy13
I removed the login message by checking if the player was banned; but thanks anyway!
@TheEntropy Thanks very much for the feedback! Yes, it currently does. Of you would like, I could make a version with different commands for essentials compatibility?
This is an excellent plugin for a group of servers (so that way you don't have to ban that player individually). One concern I have is, will this override the Essentials /ban command?
dude a tip for you you can remove player join/kick messages simply dont use the PlayerJoinEvent use the PlayerLoginEvent :)