Page 1 of 1

MCBans hook-in?

Posted: Sun May 06, 2012 9:21 pm
by offluffy
I'd like to warn admins (or people with a perm node) if a user that joins is on the MCBans list. Any clue how to hook into that list? Hopefully without actually downloading the plugin or an extra library and such. Maybe this isn't your specialty, but I'm hoping you have some direction on this, it'd be a nice addition to mah plugin XD

Re: MCBans hook-in?

Posted: Mon May 07, 2012 3:35 pm
by jacek
You can make a request to their API from your plugin they have some laughably bad API docs here http://support.mcbans.com/index.php?/Kn ... tion-contd you would have to make work out how to make the request not block the main server thread if you were to do this. You can also look at the source of the mcbans plugin and see how lookups are done there and just do that.

You could also forget mcterrible and use Minebans which has awesome documentation https://github.com/betterphp/MineBans/wiki/Plugin-API (I'm not bitter)

Re: MCBans hook-in?

Posted: Tue May 08, 2012 3:25 am
by offluffy
Thanks XD If I can figure out MCBans, I might add that and the others. Just to be thorough. Whatever I can get to work would be nice.