mirror of https://e.coding.net/circlecloud/Yum.git
parent
56058007b5
commit
599c3e9a30
|
@ -587,7 +587,7 @@ public class PluginsManager {
|
||||||
}
|
}
|
||||||
result = true;
|
result = true;
|
||||||
sender.sendMessage("§6升级: §a开始升级 " + name + " 插件!");
|
sender.sendMessage("§6升级: §a开始升级 " + name + " 插件!");
|
||||||
if (!unload(plugin)) {
|
if (plugin != null && !unload(plugin)) {
|
||||||
FileUtil.copy(file, new File(Bukkit.getUpdateFolderFile().getParentFile(), File.separatorChar + file.getName()));
|
FileUtil.copy(file, new File(Bukkit.getUpdateFolderFile().getParentFile(), File.separatorChar + file.getName()));
|
||||||
}
|
}
|
||||||
load(name);
|
load(name);
|
||||||
|
|
Loading…
Reference in New Issue