mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 06:18:46 +00:00
修复空指针报错...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
56058007b5
commit
599c3e9a30
@ -587,7 +587,7 @@ public class PluginsManager {
|
||||
}
|
||||
result = true;
|
||||
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()));
|
||||
}
|
||||
load(name);
|
||||
|
Loading…
Reference in New Issue
Block a user