更换阿里云镜像,加速下载
This commit is contained in:
parent
84bcdaa7b3
commit
17fcc8d837
@ -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 仓库寻找
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user