PlotSquared/Core/src/main/resources/fixborders.js

11 lines
319 B
JavaScript
Raw Normal View History

2019-07-06 01:24:15 +02:00
/*
Fixes border around plots
/plot debugexec runasync fixborder.js <Plot ID>
2019-07-06 01:24:15 +02:00
*/
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");
}