mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Cleaned up hard disable option
This commit is contained in:
parent
13df35a22b
commit
a29fa8c7e7
@ -161,12 +161,14 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.update();
|
enabled = config.getBool("enabled");
|
||||||
|
|
||||||
if (!this.isEnabled() && this.getPlugin().getConfigYml().getBool("advanced.hard-disable.enabled")) {
|
if (!this.isEnabled() && this.getPlugin().getConfigYml().getBool("advanced.hard-disable.enabled")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.update();
|
||||||
|
|
||||||
EcoEnchants.addNewEcoEnchant(this);
|
EcoEnchants.addNewEcoEnchant(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,4 +129,5 @@ advanced:
|
|||||||
# Fixes potential problems with other plugins where the enchantments are still present when disabled.
|
# 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.
|
# 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.
|
# There may be some unknown problems with this, but will fix bugs with plugins such as Slimefun.
|
||||||
|
# Hard disabled enchantments will not update on /ecoreload. You will have to restart your server.
|
||||||
enabled: false
|
enabled: false
|
Loading…
Reference in New Issue
Block a user