mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 11:45:19 +01:00
Updated Resetting plot biomes (markdown)
parent
4aa853e2cf
commit
82b1c3b072
@ -1,15 +1,11 @@
|
||||
## This guide is for PlotSquared versions <= 1.12.2
|
||||
Download: https://www.dropbox.com/s/axvgoqd9swoe8m1/setbiomes.js?dl=0
|
||||
|
||||
```javascript
|
||||
/*
|
||||
This script will reset all biomes in claimed plots
|
||||
/plot debugexec runasync setbiomes.js Forest
|
||||
*/
|
||||
var plots = PS.sortPlots(PS.getPlots());
|
||||
var plots = PS.sortPlotsByTemp(PS.getPlots());
|
||||
for (var i = 0; i < plots.size(); i++) {
|
||||
var plot = plots.get(i);
|
||||
if (!plot.isMerged() || plot.getBottomPlot().equals(plot)) {
|
||||
if (!plot.isMerged() || !plot.getMerged(0)) {
|
||||
plot.setBiome("%s0", null);
|
||||
PS.class.static.log('&cSetting biome for: ' + plot);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user