mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +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();
|
Block block = event.getBlock();
|
||||||
Material material = block.getType();
|
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();
|
Config configInstance = Config.getInstance();
|
||||||
Permissions permInstance = Permissions.getInstance();
|
Permissions permInstance = Permissions.getInstance();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user