perf: 简化代码

This commit is contained in:
2024-03-18 17:13:14 +08:00
parent e6cb7efe77
commit 9bcf8a28dd
4 changed files with 23 additions and 23 deletions

View File

@@ -124,7 +124,7 @@ public class HamsterCorePlugin extends JavaPlugin {
}
try (InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) {
YamlConfig config = YamlConfig.load(reader);
UpdateCheckUtils.showUpdate(plugin.getName(), config, Bukkit.getConsoleSender()::sendMessage);
UpdateCheckUtils.checkUpdate(plugin.getName(), config);
}
} catch (Exception e) {
e.printStackTrace();