add delete plugin tip...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-09-21 15:18:03 +08:00
parent 45d4a9f1ff
commit 7ee4ff9dcd

View File

@ -32,7 +32,10 @@ public class CommandDelete extends BaseCommand {
String pluginname = args[0]; String pluginname = args[0];
Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname); Plugin plugin = Bukkit.getServer().getPluginManager().getPlugin(pluginname);
if (plugin != null) 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 else
sender.sendMessage("§c插件 " + pluginname + " 不存在或已卸载!"); sender.sendMessage("§c插件 " + pluginname + " 不存在或已卸载!");
}; };