install plugin name to plugin name...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-10-27 10:08:53 +08:00
parent f52a1bc35f
commit 0fae10c772
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
</build>
<properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;a移除对纯净1.7.10的支持&amp;c(去怪7老板= =) &amp;3修复一个迭代错误...</update.description>
<update.description>&amp;3修复一个迭代错误 &amp;a安装插件时命名为插件名称...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>

View File

@ -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))) {
if (download.run(sender, pi.getMavenUrl(version), new File("plugins", pi.plugin.name))) {
return plugman.load(sender, pluginname);
}
}