mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Added hard disable option
This commit is contained in:
parent
eb31e777bd
commit
13df35a22b
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user