This commit is contained in:
dordsor21
2021-09-07 14:47:37 +01:00
parent 8e5e33eec2
commit 732f79bbfc
5 changed files with 14 additions and 7 deletions

View File

@ -91,7 +91,7 @@ public class Setup extends SubCommand {
}
process = new SetupProcess();
metaDataAccess.set(process);
this.setupUtils.updateGenerators();
this.setupUtils.updateGenerators(false);
SetupStep step = process.getCurrentStep();
step.announce(player);
displayGenerators(player);

View File

@ -34,8 +34,12 @@ import java.util.HashMap;
public abstract class SetupUtils {
public static HashMap<String, GeneratorWrapper<?>> generators = new HashMap<>();
// static {
// generators.put(PlotSquared.platform().pluginName(),
// (HybridGen) PlotSquared.platform().injector().getInstance(IndependentPlotGenerator.class));
// }
public abstract void updateGenerators();
public abstract void updateGenerators(final boolean force);
public abstract String getGenerator(final PlotArea plotArea);