Check if region is protected?[Solved]

Discussion in 'Plugin Development' started by Celeixen, Sep 28, 2011.

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

    Celeixen

    I am trying to stop my plugin from messing with protected regions but i am using onblockdamage, and i don't think many protection plugins cancel this event, so i cant use if(event.cancelled())....

    I would prefer if i could get this to work with most of the protection plugins but if thats not possible i'll just use world edit regions. Hopefully you understand what i am asking :p

    Thanks

    Don't Worry i worked it out myself :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  2. Offline

    jonah876

    @Celeixen Can you post how you did it please?
     
  3. Offline

    Celeixen

    Create a new blockbreakevent with the parameters of the original event then call that new "BlockBreakEvent" event.
     
Thread Status:
Not open for further replies.

Share This Page