mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-28 11:37:39 +01:00
Attempting to fix dupe bug with certain plugins and Super Breaker.
This commit is contained in:
parent
eebda74bb7
commit
4500c4d407
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user