ComBans

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

ComBans takes the use of MySQL connected API's on your website and uses them as a banning system, Allowing you to ban a single user across all your servers!

WARNING: YOU WILL NEED TO ADD BANS TO DATABASE MANUALLY UNTIL NEXT RELEASE!

Website-Side Script: Download

This is still in heavy development but I do have a basic working example which I show you below.

Current Features:


  • Unique server IDs which can be set in config.
  • All MySQL is done website side(MySQL info is not sent from the plugin nor does the plugin ever connect to the database itself.)
  • Provides the same reason across all servers provided.
  • API is password protected(Set in config and .php file)
  • More...

Future Features:


  • Add actual banning function
  • Allow choice of which servers they get banned on.
  • Add more security.

Q & A:
Q: Why does the plugin require a website-side API?
A 1: Because all the MySQL handling is done website-side, it speeds the plugin up. If the plugin done all of the MySQL handling, it would become laggy but it does not, all it does is send a simple http request to your website then your website handles the rest. Also, It then allows you to make a list on your website of which users are banned and on what servers(Make it look all cool and stuff.)

Q: How do I set up the API on my website?
A: Very simple, when I plan on releasing this plugin, I will provide a simple example script which you can use.

How it works:
Simple answer:
User logs in > plugin sends request to website API > API returns true|false(if banned or not) > if True > List the reason, remove them from server. if False > Allow them straight on.

More in-depth answer:
When a user connects to your server, it will trigger the OnPlayerJoinEvent in my plugin. From there the plugin sends a HTTP request to your website API(Which looks like > Http://example.com/banned.php?user=example&id=1&pass=example123 > btw.). The php script will then check if
that username is banned on the server with the ID of [1] then return true or false, Either allows them on the server or not.

How it all looks...

Banned Screen:
http://gyazo.com/5f72199a1ad76630def8dee5c8c13c22.png

API return:
http://i.imgur.com/qPVk3Jq.png

SQL table:
http://i.imgur.com/cc67rAO.png

^Adding alot more functionality to the database(add more servers to user, ect.)^

How to set it up:
1. add .jar to all your servers that you want to share banlist.
http://i.imgur.com/lNeagUq.png
2. Config them all the same BESIDES THE ID. Make sure the ID is Unique.
http://i.imgur.com/6j8RWvp.png

That is all server side, lets go to the website!

(The table names and field names are only if you are going to use my example scripts, these are customizable in the scripts!)
3.In your database, make a new table called "banned" with 3 fields(will change in later releases!)
http://i.imgur.com/fdxVAVD.png
4.Set the fields up like so
http://i.imgur.com/89vi0Lc.png

(WARNING: I have not added a banning function to the plugin as of yet so you will have to enter the bans manually, it will be implemented on next release!)
Done!


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit