Fixed talisman init

This commit is contained in:
Auxilor
2021-01-25 09:26:59 +00:00
parent 2537134b01
commit f7fb80753e

View File

@@ -139,7 +139,7 @@ public abstract class Talisman implements Listener, Watcher {
@NotNull final Prerequisite... prerequisites) {
this.strength = strength;
this.key = this.getPlugin().getNamespacedKeyFactory().create(key + "_" + strength.name().toLowerCase());
this.configName = key.replace("_", "");
this.configName = this.key.getKey().replace("_", "");
TalismansConfigs.addTalismanConfig(new TalismanConfig(this.configName, this.strength, this.getClass()));
this.config = TalismansConfigs.getTalismanConfig(this.configName);