Some BlockMultiPlaceEvent optimization

This commit is contained in:
nossr50 2020-11-02 14:10:17 -08:00
parent 094d57bce0
commit 1f3a2baa6b

View File

@ -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)