Always register WorldGuard shop flag (Fixes #230)

The configuration isn't loaded yet when the plugin loaded and the flag initialised so we can't check that there. The config option is checked at the point where the flag is handled though so there is no difference from the intended functionality when registering the flag anyways. The only downside is that this could be a tiny bit confusing to the user in the end but I think that is a small price to pay when it wouldn't be working at all otherwise.
This commit is contained in:
Phoenix616 2019-05-13 00:16:57 +01:00
parent 17e7ab781b
commit 26daa4531d
1 changed files with 1 additions and 3 deletions

View File

@ -41,9 +41,7 @@ public class Dependencies {
switch (dependency) {
//Terrain protection plugins
case WorldGuard:
if (Properties.WORLDGUARD_USE_FLAG) {
WorldGuardFlags.ENABLE_SHOP.getName(); // force the static code to run
}
WorldGuardFlags.ENABLE_SHOP.getName(); // force the static code to run
break;
}