diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 21b9c3a2e..e8039edc5 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -294,6 +294,14 @@ public class BlockListener implements Listener { Block block = event.getBlock(); Material material = block.getType(); + FakeBlockBreakEvent fakeEvent = new FakeBlockBreakEvent(block, player); + mcMMO.p.getServer().getPluginManager().callEvent(fakeEvent); + + if(fakeEvent.isCancelled()) + return; + else + fakeEvent.setCancelled(true); + Config configInstance = Config.getInstance(); Permissions permInstance = Permissions.getInstance();