mirror of
https://github.com/CarmJos/UltraDepository.git
synced 2026-06-05 00:58:22 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d52e001e7c | |||
| e5efd0d1b2 | |||
| 0fcbd1d8f1 | |||
| 8f500e3ff0 | |||
| baeee39d07 |
@@ -15,7 +15,7 @@
|
||||
<groupId>cc.carm.plugin</groupId>
|
||||
<artifactId>ultradepository</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.3.4</version>
|
||||
<version>1.3.8</version>
|
||||
|
||||
<name>UltraDepository</name>
|
||||
<description>超级仓库插件,支持设定不同物品的存储仓库。</description>
|
||||
|
||||
@@ -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.log("检查完成,当前已是最新版本。");
|
||||
} else if (behindVersions > 0) {
|
||||
plugin.log("发现新版本! 目前已落后 " + behindVersions + " 个版本。");
|
||||
plugin.log("最新版下载地址 " + downloadURL);
|
||||
} else {
|
||||
if (behindVersions > 0) {
|
||||
plugin.log("检查更新完成,当前已落后 " + behindVersions + " 个版本。");
|
||||
plugin.log("最新版本下载地址&e " + GithubReleases4J.getLatestReleaseURL("CarmJos", "UltraDepository"));
|
||||
} else {
|
||||
plugin.log("检查更新完成,当前已是最新版本。");
|
||||
}
|
||||
plugin.error("检查更新失败! 当前版本未知,请您使用原生版本以避免安全问题。");
|
||||
plugin.error("最新版下载地址 " + downloadURL);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user