Ban event?

Discussion in 'Plugin Development' started by confuserr, Jul 11, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    I searched around but couldn't find anything. Currently using my own sql based ban plugin. Is there a way I can see when other plugins like STAB bans a player?
  2. Offline

    Father Of Time

    The information in this post was incorrect, please see the following post.

    Another option may be to use the PlayerKickEvent
    This event has a function getReason() which returns a string; I would imagine that most plug-ins that auto ban use a static kick message, so you could simply use a string comparator to look for specific strings, and take different actions depending on what message was sent, I would think it's highly unlikely that two plug-ins that auto ban both have 100% identical ban messages.

    No idea if this will work, just throwing out ideas. :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 26, 2016
Thread Status:
Not open for further replies.

Share This Page