fix update...

This commit is contained in:
502647092 2015-09-01 13:13:31 +08:00
parent d9c5446ecd
commit 18fe06b1cc

View File

@ -36,7 +36,7 @@ public class CommandUpdate extends BaseCommand {
public void run() { public void run() {
PluginInfo pi = main.repo.getPlugin(pluginname); PluginInfo pi = main.repo.getPlugin(pluginname);
if (pi != null) if (pi != null)
if (main.download.run(sender, pi.getMavenUrl())) { if (main.download.run(sender, pi.getMavenUrl(), main.plugman.getPluginFile(plugin))) {
if (main.plugman.unload(sender, plugin)) { if (main.plugman.unload(sender, plugin)) {
main.plugman.load(sender, pluginname); main.plugman.load(sender, pluginname);
} }