Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Ditch the wandEnabled option in the config #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RickyB98
Copy link

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.

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.
@Steffion
Copy link
Owner

I don't understand why you would remove this?

@RickyB98
Copy link
Author

Because it is redundant. All BlockHunt commands except 'wand' have their own checks, while 'wand' has this extra check in the config. When the plugin is loaded, /bh wand does not work, the console says that the command does not exist. Removing this check enables this function, which can be disabled from the already present "commandEnabled" block in the config. (for the record, I couldn't fix the error without recompiling the plugin with this change)

@RickyB98
Copy link
Author

My bad, the "wandEnabled" option is present in the config, but it is still redundant, because there's also "commandEnabled: wand: true", which is overridden by wandEnabled.

@Steffion
Copy link
Owner

Not only the command gets disabled with wandEnabled, but it also disables the fact that you have to set corner positions. commandEnabled only disables the command itself, while wandEnabled also disables setting points and moving out of the arena.

@RickyB98
Copy link
Author

RickyB98 commented Jun 23, 2016

I might not be an expert user of this plugin (in fact, I'm the back-end guy in our server), but I don't understand what the point is in keeping corner setting on without turning the command to get the wand on too...

@Steffion
Copy link
Owner

wandEnabled disables the corner setting and the command. commandEnabled only disables the command. So there is a difference in usage.

I don't think I will merge this request, sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants