More Configurability

This commit is contained in:
Driftay
2020-03-23 16:31:33 -04:00
parent 606e82c890
commit 4dec162d46
3 changed files with 20 additions and 1 deletions

View File

@@ -184,6 +184,7 @@ public class FCmdRoot extends FCommand implements CommandExecutor {
public Boolean internalFTOPEnabled = false;
public Boolean fWildEnabled = false;
public Boolean fAuditEnabled = false;
public Boolean fStrikes = false;
public FCmdRoot() {
super();
@@ -292,7 +293,6 @@ public class FCmdRoot extends FCommand implements CommandExecutor {
this.addSubCommand(this.cmdChest);
this.addSubCommand(this.cmdSetBanner);
this.addSubCommand(this.cmdCorner);
this.addSubCommand(this.cmdStrikes);
this.addSubCommand(this.cmdFGlobal);
this.addSubCommand(this.cmdViewChest);
this.addSubCommand(this.cmdConvertConfig);
@@ -355,6 +355,11 @@ public class FCmdRoot extends FCommand implements CommandExecutor {
fAuditEnabled = true;
}
if(Conf.useStrikeSystem){
this.addSubCommand(this.cmdStrikes);
fStrikes = true;
}
//Other
if (FactionsPlugin.getInstance().getConfig().getBoolean("Wild.Enabled", false) && !fWildEnabled) {
this.addSubCommand(this.cmdWild);