Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Resetting plot biomes

NotMyFault edited this page Jul 7, 2019 · 4 revisions

This guide is for PlotSquared versions <= 1.12.2

Download: https://www.dropbox.com/s/axvgoqd9swoe8m1/setbiomes.js?dl=0

/*
This script will reset all biomes in claimed plots
/plot debugexec runasync setbiomes.js Forest
*/
var plots = PS.sortPlots(PS.getPlots());
for (var i = 0; i < plots.size(); i++) {
    var plot = plots.get(i);
    if (!plot.isMerged() || plot.getBottomPlot().equals(plot)) {
        plot.setBiome("%s0", null);
        PS.class.static.log('&cSetting biome for: ' + plot);
    }
    java.lang.Thread.sleep(1000);
}
Clone this wiki locally