public static RootConfig from(String index) {
RootConfig config = rootConfigs.get(index);
if (config != null) {
return config;
}
config = new RootConfig();
config.index = index;
config.baseSection = CropControl.getPlugin().getConfig().getConfigurationSection(index);
if (config.baseSection != null) {
ConfigurationSection drops = config.baseSection.getConfigurationSection("drops");
if (drops != null) {
config.baseDrops = new ConcurrentHashMap<String, DropModifiers>();
for (String key : drops.getKeys(false)) {
DropConfig.byIdent(key); // preload it.
config.baseDrops.put(key, config.new DropModifiers(drops.getConfigurationSection(key)));
}
}
}
rootConfigs.put(index, config);
return config;
}
RootConfig.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:CropControl
作者:
评论列表
文章目录