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

    Xx_LeetGamer_xX

    This is what I'm currently using:

    Code:
    BlockBreakEvent e = new BlockBreakEvent(l.getBlock(), p);
    Bukkit.getServer().getPluginManager().callEvent(e);
    
    Nothing happens, no exceptions, nothing. Any ideas?
     
  2. Offline

    Mattredsox

    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

    Alex5657

    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