From 17fcc8d837784287a0a131b702e43ce246f1b375 Mon Sep 17 00:00:00 2001 From: Izzel_Aliz Date: Sun, 29 Jul 2018 14:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E9=95=9C=E5=83=8F=EF=BC=8C=E5=8A=A0=E9=80=9F=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ilummc/tlib/dependency/TDependency.java | 2 +- src/main/java/me/skymc/taboolib/plugin/PluginUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ilummc/tlib/dependency/TDependency.java b/src/main/java/com/ilummc/tlib/dependency/TDependency.java index 50d7494..2954b70 100644 --- a/src/main/java/com/ilummc/tlib/dependency/TDependency.java +++ b/src/main/java/com/ilummc/tlib/dependency/TDependency.java @@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean; 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 仓库寻找 diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java b/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java index 30d3a53..dafbbd6 100644 --- a/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java +++ b/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java @@ -82,7 +82,7 @@ public class PluginUtils { } 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 getPluginNames(boolean fullName) {