PluginConfigs/PlotSquared/scripts/fixborders.js

11 lines
319 B
JavaScript
Raw Normal View History

2019-09-30 07:13:25 +00:00
/*
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");
}