PluginConfigs/PlotSquared/scripts/fixborders.js
2019-09-30 07:13:25 +00:00

10 lines
319 B
JavaScript

/*
Fixes border around plots
/plot debugexec runasync fixborder.js <Plot ID>
*/
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");
}