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

13 lines
363 B
JavaScript
Raw Normal View History

/*
This script will reset all biomes in claimed plots
*/
2019-04-12 04:11:03 +02:00
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.setBiome("%s0", null);
PS.class.static.log('&cSetting biome for: ' + plot);
}
java.lang.Thread.sleep(1000);
}