mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2025-09-07 23:16:57 +00:00
modify pom and use resource filtering...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
@ -112,7 +112,12 @@ public class DownloadManager {
|
||||
public boolean update(CommandSender sender, Plugin plugin) {
|
||||
String pluginname = plugin.getName();
|
||||
String filename = PluginsManager.getPluginFile(plugin).getName();
|
||||
return run(sender, getUrl(pluginname), new File("plugins/update", filename));
|
||||
URL url = getUrl(pluginname);
|
||||
if (url == null) {
|
||||
sender.sendMessage("§4错误: §cURL地址解析失败!");
|
||||
return false;
|
||||
}
|
||||
return run(sender, url, new File("plugins/update", filename));
|
||||
}
|
||||
|
||||
public boolean yum(CommandSender sender, String pluginname) {
|
||||
|
Reference in New Issue
Block a user