From 6c4811218c1dbe1b4a6a1c2f1b2dba8f901c620a Mon Sep 17 00:00:00 2001 From: 502647092 Date: Fri, 30 Oct 2015 10:15:16 +0800 Subject: [PATCH] fix install error... Signed-off-by: 502647092 --- src/main/java/cn/citycraft/Yum/manager/YumManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/citycraft/Yum/manager/YumManager.java b/src/main/java/cn/citycraft/Yum/manager/YumManager.java index b29e5e5..16134a8 100644 --- a/src/main/java/cn/citycraft/Yum/manager/YumManager.java +++ b/src/main/java/cn/citycraft/Yum/manager/YumManager.java @@ -34,7 +34,7 @@ public class YumManager { public static boolean install(final CommandSender sender, final String pluginname, final String version) { final PluginInfo pi = repo.getPlugin(pluginname); if (pi != null) { - if (download.run(sender, pi.getMavenUrl(version), new File("plugins", pi.plugin.name))) { + if (download.run(sender, pi.getMavenUrl(version), new File("plugins", pi.plugin.name + ".jar"))) { return plugman.load(sender, pluginname); } }