Added hard disable option

This commit is contained in:
Auxilor 2021-04-15 18:37:34 +01:00
parent eb31e777bd
commit 13df35a22b
2 changed files with 11 additions and 1 deletions

View File

@ -162,6 +162,11 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
}
this.update();
if (!this.isEnabled() && this.getPlugin().getConfigYml().getBool("advanced.hard-disable.enabled")) {
return;
}
EcoEnchants.addNewEcoEnchant(this);
}

View File

@ -124,4 +124,9 @@ advanced:
aggressive: false
# Aggressive mode converts all items in all inventories whenever revealed.
# This may impact performance.
force: false # If **all** items should have hide enchants removed - absolute last ditch effort, most likely to break other things.
force: false # If **all** items should have hide enchants removed - absolute last ditch effort, most likely to break other things.
hard-disable:
# Fixes potential problems with other plugins where the enchantments are still present when disabled.
# Enabling this prevents the enchantments from being registered with the server at all when disabled.
# There may be some unknown problems with this, but will fix bugs with plugins such as Slimefun.
enabled: false