1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-24 21:46:16 +00:00

change auto update tip...

This commit is contained in:
j502647092
2015-05-30 23:42:35 +08:00
parent 36d6cb7a9d
commit bf99304cde

View File

@@ -37,10 +37,14 @@ public class VersionChecker {
br.close(); br.close();
if (!newVersion.equals(currentVersion)) { if (!newVersion.equals(currentVersion)) {
String[] msg = new String[] { String[] msg = new String[] {
ChatColor.GREEN + "领地插件最新版本已更新到 v" + newVersion + "!", ChatColor.GREEN + "领地插件最新版本 v" + newVersion,
ChatColor.RED + "服务器运行版本: " + currentVersion, ChatColor.RED + "服务器运行版本: v" + currentVersion,
ChatColor.GOLD + "点击此链接下载最新版本: " + ChatColor.BLUE ChatColor.GOLD + "插件更新网站: " + ChatColor.BLUE
+ plugin.getDescription().getWebsite() }; + plugin.getDescription().getWebsite(),
ChatColor.YELLOW
+ "查看最新修改: "
+ ChatColor.BLUE
+ "http://ci.citycraft.cn:8800/jenkins/job/Residence-Fix/changes" };
if (player != null) { if (player != null) {
player.sendMessage(msg); player.sendMessage(msg);
} else { } else {
@@ -48,7 +52,7 @@ public class VersionChecker {
} }
} }
} catch (IOException e) { } catch (IOException e) {
plugin.getLogger().warning("自动更新版本检查失败!"); plugin.getLogger().warning("版本更新检查失败!");
} }
} }
}); });