/**
* Reloads the content from the fileSystem
*/
@Override
public void reload() {
this.engineContainers.clear();
this.plugin.reloadConfig();
final Map<String, Object> data = ((MemorySection) this.plugin.getConfig().get("engines")).getValues(false);
for (final String key : data.keySet()) {
final Map<String, Object> content = ((MemorySection) this.plugin.getConfig().get("engines." + key)).getValues(true);
try {
this.engineContainers.add(new EngineData(Integer.parseInt(key), content));
} catch (final Exception e) {
PetBlocksPlugin.logger().log(Level.WARNING, "Failed to add content " + key + '.', e);
}
}
}
EngineConfiguration.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:PetBlocks
作者:
评论列表
文章目录