From e13b20e55a41cb3e92672ff7abdbfc2ede6abffa Mon Sep 17 00:00:00 2001 From: Riccardo Bello Date: Wed, 22 Jun 2016 16:22:08 +0200 Subject: [PATCH] Ditch the wandEnabled option in the config The option 'wandEnabled' has been removed from the default config, adding it does not enable the command, and it's the only command that still has that check (which is already performed by W.config.get(ConfigC.commandEnabled_wand)). Removing the if clause. --- src/nl/Steffion/BlockHunt/BlockHunt.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/nl/Steffion/BlockHunt/BlockHunt.java b/src/nl/Steffion/BlockHunt/BlockHunt.java index 5cbc1c9..4543141 100644 --- a/src/nl/Steffion/BlockHunt/BlockHunt.java +++ b/src/nl/Steffion/BlockHunt/BlockHunt.java @@ -192,12 +192,11 @@ BlockHuntCMD, new CMDhelp(), (Boolean) W.config.get(ConfigC.commandEnabled_start), BlockHuntCMD, new CMDstart(), "/BlockHunt "); - if (W.config.getFile().getBoolean("wandEnabled")) { - CMDwand = new CommandM("BlockHunt WAND", "BlockHunt", "wand", "w", - Permissions.create, ConfigC.help_wand, - (Boolean) W.config.get(ConfigC.commandEnabled_wand), - BlockHuntCMD, new CMDwand(), "/BlockHunt "); - } + CMDwand = new CommandM("BlockHunt WAND", "BlockHunt", "wand", + "w", Permissions.create, ConfigC.help_wand, + (Boolean) W.config.get(ConfigC.commandEnabled_wand), + BlockHuntCMD, new CMDwand(), + "/BlockHunt "); CMDcreate = new CommandM("BlockHunt CREATE", "BlockHunt", "create", "c", Permissions.create, ConfigC.help_create, (Boolean) W.config.get(ConfigC.commandEnabled_create),