mirror of
				https://e.coding.net/circlecloud/Yum.git
				synced 2025-11-04 05:06:02 +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) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,8 @@
 | 
			
		||||
name: Yum
 | 
			
		||||
main: cn.citycraft.Yum.Yum
 | 
			
		||||
website: http://ci.citycraft.cn:8800/jenkins/job/Yum/
 | 
			
		||||
version: 1.3
 | 
			
		||||
name: ${project.artifactId}
 | 
			
		||||
main: ${project.groupId}.${project.artifactId}.${project.artifactId}
 | 
			
		||||
website: http://ci.citycraft.cn:8800/jenkins/job/${project.artifactId}/
 | 
			
		||||
version: ${project.version}
 | 
			
		||||
 | 
			
		||||
commands:
 | 
			
		||||
  yum:
 | 
			
		||||
    description: MC插件仓库
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user