@Override
public void load(Config config) {
super.load(config);
Object object = config.get("event-key-loot");
if (object instanceof MemorySection) {
MemorySection section = (MemorySection) object;
for (String key : section.getKeys(false)) {
try {
Object value = config.get(section.getCurrentPath() + '.' + key);
if (value instanceof List<?>) {
List<?> list = (List<?>) value;
for (Object each : list) {
if (each instanceof String) {
inventories.put(key, InventorySerialisation.fromBase64((String) each));
}
}
}
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
}
EventKey.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:HCFCore
作者:
评论列表
文章目录