mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-12-23 05:08:47 +00:00
修复卸载插件错误...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
599c3e9a30
commit
551029310d
@ -587,10 +587,10 @@ public class PluginsManager {
|
||||
}
|
||||
result = true;
|
||||
sender.sendMessage("§6升级: §a开始升级 " + name + " 插件!");
|
||||
if (plugin != null && !unload(plugin)) {
|
||||
if (!unload(sender, name)) {
|
||||
FileUtil.copy(file, new File(Bukkit.getUpdateFolderFile().getParentFile(), File.separatorChar + file.getName()));
|
||||
}
|
||||
load(name);
|
||||
load(sender, name);
|
||||
} catch (final InvalidDescriptionException e) {
|
||||
sender.sendMessage("§4异常: §c" + e.getMessage());
|
||||
sender.sendMessage("§4文件: §c" + file.getName() + " 的plugin.yml文件存在错误!");
|
||||
|
Loading…
Reference in New Issue
Block a user