mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Some BlockMultiPlaceEvent optimization
This commit is contained in:
parent
094d57bce0
commit
1f3a2baa6b
@ -245,16 +245,16 @@ public class BlockListener implements Listener {
|
|||||||
mcMMO.getPlaceStore().setTrue(blockState);
|
mcMMO.getPlaceStore().setTrue(blockState);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WORLD BLACKLIST CHECK */
|
// /* WORLD BLACKLIST CHECK */
|
||||||
if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) {
|
// if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
Player player = event.getPlayer();
|
// Player player = event.getPlayer();
|
||||||
|
//
|
||||||
if (!UserManager.hasPlayerDataKey(player)) {
|
// if (!UserManager.hasPlayerDataKey(player)) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
|
Loading…
Reference in New Issue
Block a user