mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2024-10-31 22:38:48 +00:00
change auto update tip...
This commit is contained in:
parent
36d6cb7a9d
commit
bf99304cde
@ -37,10 +37,14 @@ public class VersionChecker {
|
||||
br.close();
|
||||
if (!newVersion.equals(currentVersion)) {
|
||||
String[] msg = new String[] {
|
||||
ChatColor.GREEN + "领地插件最新版本已更新到 v" + newVersion + "!",
|
||||
ChatColor.RED + "服务器运行版本: " + currentVersion,
|
||||
ChatColor.GOLD + "点击此链接下载最新版本: " + ChatColor.BLUE
|
||||
+ plugin.getDescription().getWebsite() };
|
||||
ChatColor.GREEN + "领地插件最新版本 v" + newVersion,
|
||||
ChatColor.RED + "服务器运行版本: v" + currentVersion,
|
||||
ChatColor.GOLD + "插件更新网站: " + ChatColor.BLUE
|
||||
+ plugin.getDescription().getWebsite(),
|
||||
ChatColor.YELLOW
|
||||
+ "查看最新修改: "
|
||||
+ ChatColor.BLUE
|
||||
+ "http://ci.citycraft.cn:8800/jenkins/job/Residence-Fix/changes" };
|
||||
if (player != null) {
|
||||
player.sendMessage(msg);
|
||||
} else {
|
||||
@ -48,7 +52,7 @@ public class VersionChecker {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
plugin.getLogger().warning("自动更新版本检查失败!");
|
||||
plugin.getLogger().warning("版本更新检查失败!");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user