MCBans hook-in?

Any help topics that don't fit in the current categories can go here.
Post Reply
User avatar
offluffy
Posts: 65
Joined: Tue Mar 20, 2012 7:04 am

MCBans hook-in?

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: MCBans hook-in?

Post 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)
Image
User avatar
offluffy
Posts: 65
Joined: Tue Mar 20, 2012 7:04 am

Re: MCBans hook-in?

Post 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.
Post Reply