private Translator loadTranslations(String fileName) {
File file = new File(getDataFolder(), fileName);
Configuration config = YamlConfiguration.loadConfiguration(file);
config.addDefaults(getJarConfig(Config.DEFAULT_TRANSLATIONS_FILE));
ConfigTranslator translator = new ConfigTranslator(config);
if (translator.needsSave()) {
getLogger().info("Saving translations");
try {
translator.save(file);
} catch (IOException e) {
getLogger().log(Level.SEVERE, "Failed to save translation file", e);
}
}
return translator;
}
BlockLockerPluginImpl.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:BlockLocker
作者:
评论列表
文章目录