!event.isCanceled() no working?

Discussion in 'Plugin Development' started by runedog48, Aug 30, 2012.

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

    runedog48

    So I have a plugin I developed and I use it for anti griefing and I noticed that on WorldGuard protected area's it still detects the blocks being broken meaning I can't ban them because I don't have proof because it wasn't actually destroyed. And it automatically demotes people who use nuker. So if they use nuker ina world guard area it demotes them and I can't ban them and they leave because they know "Oh shit I has to much heat!". I used for the BlockBreak event
    Code:
        if( !event.isCancelled() )
        
    and the code still runs. Any help?

    NVM I think I found out the problem. Worldguard has it's own fuckery I have to deal with :L

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

    bartboy8

    thats saying if the event isnt cancelled. if u want to call it on event cancel delete the !
     
  3. Offline

    runedog48

    I know what I put :L I have the code I want to execute if it's not canceled inside the if statement. WorldGuard has it's own API crap I have to deal with.
     
  4. Offline

    nala3

    Also @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
     
Thread Status:
Not open for further replies.

Share This Page