1
mirror of https://github.com/CarmJos/UltraDepository.git synced 2024-09-19 19:55:45 +00:00

[v1.3.6] 修改更新介绍

This commit is contained in:
Carm Jos 2022-01-23 11:16:44 +08:00
parent af82d64ab1
commit baeee39d07

View File

@ -13,16 +13,19 @@ public class UpdateChecker {
plugin.getDescription().getVersion()
);
String downloadURL = GithubReleases4J.getReleasesURL("CarmJos", "UltraDepository");
if (behindVersions == null) {
plugin.error("检查更新失败,请您定期查看插件是否更新,避免安全问题。");
plugin.error("插件下载地址&e " + GithubReleases4J.getReleasesURL("CarmJos", "UltraDepository"));
plugin.error("下载地址 " + downloadURL);
} else if (behindVersions == 0) {
plugin.error("检查完成,当前已是最新版本。");
} else if (behindVersions > 0) {
plugin.error("发现新版本! 目前已落后 " + behindVersions + " 个版本。");
plugin.error("最新版下载地址 " + downloadURL);
} else {
if (behindVersions > 0) {
plugin.log("检查更新完成,当前已落后 " + behindVersions + " 个版本。");
plugin.log("最新版本下载地址&e " + GithubReleases4J.getLatestReleaseURL("CarmJos", "UltraDepository"));
} else {
plugin.log("检查更新完成,当前已是最新版本。");
}
plugin.error("检查更新失败! 当前版本未知,请您使用原生版本以避免安全问题。");
plugin.error("最新版下载地址 " + downloadURL);
}
});