mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Fix the serialized config loader
This commit is contained in:
parent
bde66ee4e1
commit
68f6fea66a
@ -2,12 +2,13 @@ package com.gmail.nossr50.config;
|
||||
|
||||
import com.gmail.nossr50.config.hocon.SerializedConfigLoader;
|
||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.util.StringUtils;
|
||||
|
||||
public class SkillConfigFactory {
|
||||
|
||||
protected static SerializedConfigLoader initSkillConfig(PrimarySkillType primarySkillType, Class<?> clazz) {
|
||||
return new SerializedConfigLoader(clazz,
|
||||
protected static SerializedConfigLoader initSkillConfig(mcMMO pluginRef, PrimarySkillType primarySkillType, Class<?> clazz) {
|
||||
return new SerializedConfigLoader(pluginRef, clazz,
|
||||
primarySkillType.toString().toLowerCase() + ".conf",
|
||||
StringUtils.getCapitalized(primarySkillType.toString()),
|
||||
null);
|
||||
|
Loading…
Reference in New Issue
Block a user