Fixed talisman init
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user