mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 22:38:46 +00:00
install plugin name to plugin name...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
f52a1bc35f
commit
0fae10c772
2
pom.xml
2
pom.xml
@ -55,7 +55,7 @@
|
|||||||
</build>
|
</build>
|
||||||
<properties>
|
<properties>
|
||||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
||||||
<update.description>&a移除对纯净1.7.10的支持&c(去怪7老板= =) &3修复一个迭代错误...</update.description>
|
<update.description>&3修复一个迭代错误 &a安装插件时命名为插件名称...</update.description>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -34,7 +34,7 @@ public class YumManager {
|
|||||||
public static boolean install(final CommandSender sender, final String pluginname, final String version) {
|
public static boolean install(final CommandSender sender, final String pluginname, final String version) {
|
||||||
final PluginInfo pi = repo.getPlugin(pluginname);
|
final PluginInfo pi = repo.getPlugin(pluginname);
|
||||||
if (pi != null) {
|
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);
|
return plugman.load(sender, pluginname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user