mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +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.config.hocon.SerializedConfigLoader;
|
||||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
import com.gmail.nossr50.util.StringUtils;
|
import com.gmail.nossr50.util.StringUtils;
|
||||||
|
|
||||||
public class SkillConfigFactory {
|
public class SkillConfigFactory {
|
||||||
|
|
||||||
protected static SerializedConfigLoader initSkillConfig(PrimarySkillType primarySkillType, Class<?> clazz) {
|
protected static SerializedConfigLoader initSkillConfig(mcMMO pluginRef, PrimarySkillType primarySkillType, Class<?> clazz) {
|
||||||
return new SerializedConfigLoader(clazz,
|
return new SerializedConfigLoader(pluginRef, clazz,
|
||||||
primarySkillType.toString().toLowerCase() + ".conf",
|
primarySkillType.toString().toLowerCase() + ".conf",
|
||||||
StringUtils.getCapitalized(primarySkillType.toString()),
|
StringUtils.getCapitalized(primarySkillType.toString()),
|
||||||
null);
|
null);
|
||||||
|
Loading…
Reference in New Issue
Block a user