You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NotMyFault edited this page Feb 16, 2020
·
5 revisions
/*This is an example script that will auto merge all plots/plot debugexec runasync automerge.js <removeroads>*/varplots=PS.sortPlotsByTemp(PS.getPlots());PS.class.static.log("Attempting to auto merge "+plots.size()+" plots");if("%s0"==="true"){for(vari=0;i<plots.size();i++){varplot=plots.get(i);plot.autoMerge(-1,250000,plot.owner,true);}}elseif("%s0"==="false"){for(vari=0;i<plots.size();i++){varplot=plots.get(i);plot.autoMerge(-1,250000,plot.owner,false);}}else{C_COMMAND_SYNTAX.send(PlotPlayer,"/plot debugexec automerge.js <removeroads>");MainUtil.class.static.sendMessage(PlotPlayer,"$1<removeroads> is true or false if you want to remove roads when auto merging");}