PluginConfigs/PlotSquared/scripts/addsigns.js
Chromachine bec87662a0 New config files for v5 - with the changes
Job configuration isn't preserved
2019-08-19 00:20:14 +00:00

12 lines
342 B
JavaScript

/*
This script will fix all signs in the world.
*/
var plots = PS.sortPlotsByTemp(PS.getPlots());
for (var i = 0; i < plots.size(); i++) {
var plot = plots.get(i);
if (!plot.isMerged() || !plot.getMerged(0)) {
plot.setSign();
PS.class.static.log('&cSetting sign for: ' + plot);
}
java.lang.Thread.sleep(10);
}