From 7ee4ff9dcdcbc4358dc81cf108a07f834bbea8d0 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Mon, 21 Sep 2015 15:18:03 +0800 Subject: [PATCH] add delete plugin tip... Signed-off-by: 502647092 --- src/main/java/cn/citycraft/Yum/commands/CommandDelete.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/citycraft/Yum/commands/CommandDelete.java b/src/main/java/cn/citycraft/Yum/commands/CommandDelete.java index b1efea2..7dcccb2 100644 --- a/src/main/java/cn/citycraft/Yum/commands/CommandDelete.java +++ b/src/main/java/cn/citycraft/Yum/commands/CommandDelete.java @@ -32,7 +32,10 @@ public class CommandDelete extends BaseCommand { String pluginname = args[0]; Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname); if (plugin != null) - YumManager.plugman.deletePlugin(sender, plugin); + if (YumManager.plugman.deletePlugin(sender, plugin)) + sender.sendMessage("§c删除: §a插件 " + pluginname + " 已从服务器卸载并删除!"); + else + sender.sendMessage("§c删除: §c插件 " + pluginname + " 卸载或删除时发生错误 删除失败!"); else sender.sendMessage("§c插件 " + pluginname + " 不存在或已卸载!"); };