fix can't update error...

This commit is contained in:
j502647092 2015-08-21 22:57:02 +08:00
parent 14e6281a56
commit 37876df9fd

View File

@ -54,6 +54,7 @@ public class Yum extends JavaPlugin {
break; break;
case "update": case "update":
if (plugin != null) { if (plugin != null) {
sender.sendMessage(PluginUtil.unload(plugin));
if (DownloadUtils.download(sender, args[1])) { if (DownloadUtils.download(sender, args[1])) {
sender.sendMessage(PluginUtil.load(args[1])); sender.sendMessage(PluginUtil.load(args[1]));
} }