mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 13:05:41 +01:00
Resolve TODOs
This commit is contained in:
parent
b6f1610a7e
commit
033b87deb5
@ -72,7 +72,6 @@ public class Setup extends SubCommand {
|
||||
SetupProcess process = player.getMeta("setup");
|
||||
if (process == null) {
|
||||
if (args.length > 0) {
|
||||
// TODO use old behaviour?
|
||||
MainUtil.sendMessage(player, Captions.SETUP_NOT_STARTED);
|
||||
return true;
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ import com.plotsquared.core.plot.PlotArea;
|
||||
import com.plotsquared.core.plot.PlotId;
|
||||
import com.plotsquared.core.plot.SetupObject;
|
||||
import com.plotsquared.core.queue.ScopedLocalBlockQueue;
|
||||
import com.plotsquared.core.setup.PlotAreaBuilder;
|
||||
import com.plotsquared.core.setup.SetupProcess;
|
||||
|
||||
/**
|
||||
@ -83,9 +84,9 @@ public abstract class IndependentPlotGenerator {
|
||||
* If any additional setup options need to be changed before world creation.
|
||||
* - e.g. If setup doesn't support some standard options
|
||||
*
|
||||
* @param setupProcess the setup process to modify
|
||||
* @param builder the area builder to modify
|
||||
*/
|
||||
public void processSetup(SetupProcess setupProcess) { }
|
||||
public void processAreaSetup(PlotAreaBuilder builder) { }
|
||||
|
||||
/**
|
||||
* It is preferred for the PlotArea object to do most of the initialization necessary.
|
||||
|
@ -73,8 +73,8 @@ public enum CommonSetupSteps implements SetupStep {
|
||||
if (builder.settingsNodesWrapper() == null) {
|
||||
builder.plotManager(builder.generatorName());
|
||||
builder.settingsNodesWrapper(CommonSetupSteps.wrap(builder.plotManager()));
|
||||
// TODO reimplement SetupUtils.generators.get(object.plotManager).getPlotGenerator()
|
||||
// .processSetup(process);
|
||||
SetupUtils.generators.get(builder.plotManager()).getPlotGenerator()
|
||||
.processAreaSetup(builder);
|
||||
}
|
||||
return builder.settingsNodesWrapper().getFirstStep();
|
||||
} else {
|
||||
@ -82,8 +82,8 @@ public enum CommonSetupSteps implements SetupStep {
|
||||
builder.plotManager(builder.generatorName());
|
||||
builder.generatorName(null);
|
||||
builder.settingsNodesWrapper(CommonSetupSteps.wrap(builder.plotManager()));
|
||||
// TODO reimplement SetupUtils.generators.get(object.plotManager).getPlotGenerator()
|
||||
// .processSetup(process);
|
||||
SetupUtils.generators.get(builder.plotManager()).getPlotGenerator()
|
||||
.processAreaSetup(builder);
|
||||
} else {
|
||||
builder.plotManager(PlotSquared.imp().getPluginName());
|
||||
MainUtil.sendMessage(plotPlayer, Captions.SETUP_WRONG_GENERATOR);
|
||||
|
Loading…
Reference in New Issue
Block a user