Fixed enchant configs not being updated on /ecoreload

This commit is contained in:
Auxilor 2021-04-09 14:28:41 +01:00
parent b2ae4d61d5
commit 445cc9e7e7

View File

@ -170,6 +170,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
* This can be overridden but may lead to unexpected behavior.
*/
public void update() {
config.update();
config.loadFromLang();
rarity = config.getRarity();
Validate.notNull(rarity, "Rarity specified in " + this.permissionName + " is invalid!");