Change command setup to true per default

This commit is contained in:
Magnus Ulf 2019-01-31 10:38:20 +01:00
parent 89b47da78b
commit 1bb7d5e53b
4 changed files with 7 additions and 1 deletions

View File

@ -193,7 +193,7 @@ public class MassiveCommand implements Active, PluginIdentifiableCommand
// === SETUP === // === SETUP ===
// Determines whether the smart setup process will be used, works for most of commands // Determines whether the smart setup process will be used, works for most of commands
protected boolean setupEnabled = false; protected boolean setupEnabled = true;
// A base prefix such as "CmdFactions" that all names of commands in a plugin start with. // A base prefix such as "CmdFactions" that all names of commands in a plugin start with.
// Used for finding the right permission. // Used for finding the right permission.

View File

@ -28,6 +28,7 @@ public class MassiveCommandHelp extends MassiveCommand
// Other // Other
this.setDesc(""); this.setDesc("");
this.setSetupEnabled(false);
} }
// -------------------------------------------- // // -------------------------------------------- //

View File

@ -35,6 +35,8 @@ public class MassiveCommandVersion extends MassiveCommand
// Priority // Priority
this.setPriority(-1); this.setPriority(-1);
this.setSetupEnabled(false);
} }
// -------------------------------------------- // // -------------------------------------------- //

View File

@ -54,6 +54,9 @@ public class CommandEditAbstract<O, V> extends MassiveCommand
this.addRequirements(RequirementEditorUse.get()); this.addRequirements(RequirementEditorUse.get());
this.addRequirements(settings.getPropertyRequirements()); this.addRequirements(settings.getPropertyRequirements());
this.addRequirements(property.getRequirements()); this.addRequirements(property.getRequirements());
// Does not use standard setup
this.setSetupEnabled(false);
} }
// -------------------------------------------- // // -------------------------------------------- //