Console notifications

This commit is contained in:
boy0001 2015-04-12 15:48:32 +10:00
parent 550cf87adf
commit 6c096b8528

View File

@ -2,6 +2,7 @@ package com.intellectualcrafters.plot.listeners.worldedit;
import java.util.HashSet; import java.util.HashSet;
import com.intellectualcrafters.plot.PlotSquared;
import com.intellectualcrafters.plot.config.Settings; import com.intellectualcrafters.plot.config.Settings;
import com.intellectualcrafters.plot.object.RegionWrapper; import com.intellectualcrafters.plot.object.RegionWrapper;
import com.sk89q.worldedit.Vector; import com.sk89q.worldedit.Vector;
@ -71,6 +72,7 @@ public class ProcessedWEExtent extends AbstractDelegateExtent {
BScount++; BScount++;
if (BScount > Settings.CHUNK_PROCESSOR_MAX_BLOCKSTATES) { if (BScount > Settings.CHUNK_PROCESSOR_MAX_BLOCKSTATES) {
BSblocked = true; BSblocked = true;
PlotSquared.log("&cPlotSquared detected unsafe WorldEdit: " + (location.getBlockX()) + "," + (location.getBlockZ()));
} }
} }
} }
@ -88,6 +90,7 @@ public class ProcessedWEExtent extends AbstractDelegateExtent {
Ecount++; Ecount++;
if (Ecount > Settings.CHUNK_PROCESSOR_MAX_ENTITIES) { if (Ecount > Settings.CHUNK_PROCESSOR_MAX_ENTITIES) {
Eblocked = true; Eblocked = true;
PlotSquared.log("&cPlotSquared detected unsafe WorldEdit: " + (location.getBlockX()) + "," + (location.getBlockZ()));
} }
if (WEListener.maskContains(mask, location.getBlockX(), location.getBlockZ())) { if (WEListener.maskContains(mask, location.getBlockX(), location.getBlockZ())) {
return super.createEntity(location, entity); return super.createEntity(location, entity);