SigConfig
Custom config
Reason
Usage
@Getter
public class TestConfig extends SigConfig {
private String testString;
private final Map<Integer, Integer> testMap = new HashMap<>();
protected TestConfig() {
super("test_config.yml", SimplePlugin.getInstance());
}
@Override
public void init() {
testString = getString("test_string");
YamlNode testMap = getMap("test_map");
for (String key : test.keySet()) {
testMap.put(Integer.parseInt(key), testMap.getInteger(key, 0);
}
}
}Feature
SigConfigController
SigConfig Edit
Caution
Last updated