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);
}
/* WORLD BLACKLIST CHECK */
if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) {
return;
}
Player player = event.getPlayer();
if (!UserManager.hasPlayerDataKey(player)) {
return;
}
// /* WORLD BLACKLIST CHECK */
// if(WorldBlacklist.isWorldBlacklisted(event.getBlock().getWorld())) {
// return;
// }
//
// Player player = event.getPlayer();
//
// if (!UserManager.hasPlayerDataKey(player)) {
// return;
// }
}
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)