From 8dd7efea9e004126adae8b25099311408c04d3bd Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 9 Dec 2015 12:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BE=93=E5=87=BA=E6=9D=A1?= =?UTF-8?q?=E7=9B=AE...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/cn/citycraft/Yum/api/YumAPI.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/cn/citycraft/Yum/api/YumAPI.java b/src/main/java/cn/citycraft/Yum/api/YumAPI.java index 2fa3df6..1de41a8 100644 --- a/src/main/java/cn/citycraft/Yum/api/YumAPI.java +++ b/src/main/java/cn/citycraft/Yum/api/YumAPI.java @@ -197,7 +197,8 @@ public class YumAPI { */ public static boolean update(final CommandSender sender, final Plugin plugin, final URL url) { if (download.run(sender, url, new File(Bukkit.getUpdateFolderFile(), plugman.getPluginFile(plugin).getName()))) { - sender.sendMessage("§6更新: §a已下载插件 " + plugin.getName() + " 到update文件夹 重启后自动更新(或使用upgrade直接升级)!"); + sender.sendMessage("§6更新: §e已下载 " + plugin.getName() + " 插件到服务器更新文件夹"); + sender.sendMessage("§6更新: §e插件将在重启后自动更新(或使用§b/yum upgrade§e直接升级)!"); return true; } return false; @@ -228,10 +229,12 @@ public class YumAPI { final Map updatelist = UpdatePlugin.getUpdateList(); if (updatelist.size() > 0) { for (final Entry updateplugin : UpdatePlugin.getUpdateList().entrySet()) { + sender.sendMessage("§d一键更新: §a开始更新" + updateplugin.getKey() + "!"); updatefromyum(sender, updateplugin.getValue(), null); } UpdatePlugin.clearList(); - sender.sendMessage("§6更新: §c已下载所有需要插件的插件到 到update文件夹 重启后自动更新(或使用/yum upgrade直接升级)!"); + sender.sendMessage("§d一键更新: §e已下载所有需要升级的插件到 服务器更新 文件夹"); + sender.sendMessage("§d一键更新: §e插件将在重启后自动更新(或使用§b/yum upgrade§e直接升级)!"); } else { sender.sendMessage("§6更新: §e未找到需要更新且可以用Yum处理的插件!"); } @@ -240,10 +243,12 @@ public class YumAPI { final Map updatelist = UpdatePlugin.getList(); if (updatelist.size() > 0) { for (final Entry updateplugin : UpdatePlugin.getList().entrySet()) { + sender.sendMessage("§d一键更新: §a开始更新" + updateplugin.getKey().getName() + "!"); updatefromyum(sender, updateplugin.getKey(), null); } UpdatePlugin.getList().clear(); - sender.sendMessage("§6更新: §c已下载所有需要插件的插件到 到update文件夹 重启后自动更新(或使用/yum upgrade直接升级)!"); + sender.sendMessage("§d一键更新: §e已下载所有需要升级的插件到 服务器更新 文件夹"); + sender.sendMessage("§d一键更新: §e插件将在重启后自动更新(或使用§b/yum upgrade§e直接升级)!"); } else { sender.sendMessage("§6更新: §e未找到需要更新且可以用Yum处理的插件!"); } @@ -282,7 +287,8 @@ public class YumAPI { final PluginInfo pi = repo.getPlugin(plugin.getName()); if (pi != null) { if (download.run(sender, pi.getMavenUrl(sender, version), new File(Bukkit.getUpdateFolderFile(), plugman.getPluginFile(plugin).getName()))) { - sender.sendMessage("§6更新: §a已下载插件 " + plugin.getName() + " 到update文件夹 重启后自动更新(或使用upgrade直接升级)!"); + sender.sendMessage("§6更新: §e已下载 " + plugin.getName() + " 插件到服务器更新文件夹"); + sender.sendMessage("§6更新: §e插件将在重启后自动更新(或使用§b/yum upgrade§e直接升级)!"); return true; } } else {