版本更新至 4.05

修复:更新检测失效
修复:TLocale 载入语言文件的语法错误导致资源浪费的问题
新增:拥有 "taboolib.update.notify" 权限的玩家进服将会收到更新提醒
This commit is contained in:
坏黑
2018-05-23 22:12:59 +08:00
parent fb38ef8977
commit 8a20fb7edb
8 changed files with 62 additions and 27 deletions

View File

@@ -141,7 +141,7 @@ public class TLocaleLoader {
}
private static YamlConfiguration getLocaleAtStream(Plugin plugin, File localeFile) {
InputStream localeInputSteam = FileUtils.getResource("lang/" + localeFile.getName());
InputStream localeInputSteam = FileUtils.getResource(plugin, "lang/" + localeFile.getName());
try {
String yamlText = new String(IO.readFully(localeInputSteam), Charset.forName("utf-8"));
YamlConfiguration yaml = new YamlConfiguration();