mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Console notifications
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user