mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-23 12:06:15 +01:00
Console notifications
This commit is contained in:
parent
550cf87adf
commit
6c096b8528
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user