更换阿里云镜像,加速下载

This commit is contained in:
Izzel_Aliz 2018-07-29 14:49:37 +08:00
parent 84bcdaa7b3
commit 17fcc8d837
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
public class TDependency { public class TDependency {
public static final String MAVEN_REPO = "http://repo.maven.apache.org/maven2"; public static final String MAVEN_REPO = "http://maven.aliyun.com/nexus/content/groups/public";
/** /**
* 请求一个插件作为依赖这个插件将会在所有已经添加的 Jenkins 仓库Maven 仓库寻找 * 请求一个插件作为依赖这个插件将会在所有已经添加的 Jenkins 仓库Maven 仓库寻找

View File

@ -82,7 +82,7 @@ public class PluginUtils {
} }
public static Plugin getPluginByName(String name) { public static Plugin getPluginByName(String name) {
return Arrays.stream(Bukkit.getPluginManager().getPlugins(), 0, Bukkit.getPluginManager().getPlugins().length).filter(plugin -> name.equalsIgnoreCase(plugin.getName())).findFirst().orElse(null); return Arrays.stream(Bukkit.getPluginManager().getPlugins()).filter(plugin -> name.equalsIgnoreCase(plugin.getName())).findFirst().orElse(null);
} }
public static List<String> getPluginNames(boolean fullName) { public static List<String> getPluginNames(boolean fullName) {