mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 18:53:43 +01:00 
			
		
		
		
	Create fixborders.js
This commit is contained in:
		
							
								
								
									
										35
									
								
								Core/src/main/resources/fixborders.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								Core/src/main/resources/fixborders.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
/*
 | 
			
		||||
Need to script something quick with PlotSquared?
 | 
			
		||||
/plot debugexec runasync fixborder.js <id>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
The following utility classes are usable:
 | 
			
		||||
 - PS
 | 
			
		||||
 - TaskManager
 | 
			
		||||
 - TitleManager
 | 
			
		||||
 - ConsolePlayer
 | 
			
		||||
 - SchematicHandler
 | 
			
		||||
 - ChunkManager
 | 
			
		||||
 - BlockManager
 | 
			
		||||
 - SetupUtils
 | 
			
		||||
 - EventUtil
 | 
			
		||||
 - UUIDHandler
 | 
			
		||||
 - DBFunc
 | 
			
		||||
 - HybridUtils
 | 
			
		||||
 - IMP ( BukkitMain or SpongeMain)
 | 
			
		||||
 - MainCommand
 | 
			
		||||
 - MainUtil
 | 
			
		||||
 - Settings
 | 
			
		||||
 - StringMan
 | 
			
		||||
 - MathMan
 | 
			
		||||
 - C ( use C_ )
 | 
			
		||||
 - Permissions ( use Permissions_ )
 | 
			
		||||
 
 | 
			
		||||
 For more information see: https://github.com/IntellectualSites/PlotSquared/wiki/Scripting
 | 
			
		||||
*/
 | 
			
		||||
var plots = PS.sortPlotsByTemp(PS.getPlots());
 | 
			
		||||
PS.class.static.log("Attempting to fix border for " + plots.size() + " plots");
 | 
			
		||||
for (var i = 0; i < plots.size(); i++) {
 | 
			
		||||
    var plot = plots.get(i);
 | 
			
		||||
    plot.setComponent("border", "%s0");
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user