Solved BlockBreakEvent not running

Discussion in 'Plugin Development' started by TopTobster5, May 12, 2014.

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

    TopTobster5

    Hi. I've been making a plugin and the player selects a block in it. I have done this by getting the block a player breaks and saving its location, and then cancelling the event. However, the event does not seem to be running. Here is my code: http://pastebin.com/ywjDsdyX

    I can't see any obvious errors, my other events are running but this is simply not being called. I know it's not running because I have a debug message on line 78 which is not running. Am I using the wrong event?

    Thanks in advance for any help received.
     
  2. Offline

    thecrystalflame

    you have'nt set the annotaion @EventHandler above your BlockBreakEvent method.
     
    TopTobster5 likes this.
  3. Offline

    TopTobster5

    thecrystalflame Good spot. Thanks again, I could of been there for hours looking for that :p
     
Thread Status:
Not open for further replies.

Share This Page