Problem manually calling this event

Discussion in 'Plugin Development' started by Xx_LeetGamer_xX, Jul 26, 2013.

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


    This is what I'm currently using:

    BlockBreakEvent e = new BlockBreakEvent(l.getBlock(), p);
    Nothing happens, no exceptions, nothing. Any ideas?
  2. Offline


    Why are you calling the block break event? It isn't great practice to be doing so if the player isn't actually breaking a block.
  3. Offline


    Are you trying to remove a block? If so, just set the type of it to Material.AIR
    What this does is tell all the plugins that an event was called, not actually break the block
Thread Status:
Not open for further replies.

Share This Page