Skip to content

Instantly share code, notes, and snippets.

@boy0001
Created May 17, 2018 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boy0001/4ae8b8c2be7482e95c8ed34b45f0c3ff to your computer and use it in GitHub Desktop.
Save boy0001/4ae8b8c2be7482e95c8ed34b45f0c3ff to your computer and use it in GitHub Desktop.
/*
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")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment