Solved WorldGuard and BreakEvent

Discussion in 'Plugin Development' started by To175, Dec 26, 2014.

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

    To175

    Hi, why player can break event if __global__ has flag build = deny ?
    There is not any error message :(
    First, read the code here : http://pastebin.com/FaQyHfy7
     
    Last edited: Dec 26, 2014
  2. Offline

    iMurder

    WorldGuard listens to the event on priority high, and cancels it there.
    I am going to assume that's where your issue is, as I am not 100% sure what you are trying to do.
     
    To175 likes this.
  3. Offline

    To175

    @iMurder
    Read my code before answer. Or explain.
     
  4. Offline

    JordyPwner

    set eventpriority to monitor
     
    To175 likes this.
  5. Offline

    To175

  6. Offline

    BlazingBroGamer

    @To175
    like he said, it's because of the world guard event priority.
     
  7. Offline

    JordyPwner

    i had same problem to when i made a plugin. when i setted eventpriority to monitor people couldnt break in worldguard anymore
     
  8. Offline

    iMurder

  9. Offline

    To175

  10. Offline

    BlazingBroGamer

    @To175
    Jeez, like he said, use EventPriority monitor
     
  11. Offline

    To175

    @BlazingBroGamer
    ok thx, I just see I pasted a line after @EventHandler, can it be the issue ?

    Thanks, this is solved :)
     
    Last edited by a moderator: Dec 26, 2014
  12. Offline

    JordyPwner

    Please dont double post use the edit button instead and please mark the thread as solved
     
Thread Status:
Not open for further replies.

Share This Page