mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
add delete plugin tip...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
45d4a9f1ff
commit
7ee4ff9dcd
@ -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 + " 不存在或已卸载!");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user