From 15f42fb2bc83319ce92bbbdb2d5f6d0543e156c9 Mon Sep 17 00:00:00 2001 From: IzzelAliz Date: Sun, 8 Mar 2020 01:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java b/src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java index 51ce9ac..77f4c0c 100644 --- a/src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java +++ b/src/main/scala/io/izzel/taboolib/loader/ScalaLoader.java @@ -1,5 +1,6 @@ package io.izzel.taboolib.loader; +import io.izzel.taboolib.module.dependency.Dependency; import io.izzel.taboolib.module.dependency.TDependency; import org.yaml.snakeyaml.Yaml; @@ -7,13 +8,13 @@ import java.lang.reflect.Field; import java.util.Map; +@Dependency(maven = "org.scala-lang:scala-library:2.13.1", mavenRepo = "https://maven.aliyun.com/repository/central") public class ScalaLoader extends BasePlugin { private ScalaPluginInterface scalaMain; @Override public void onLoading() { - TDependency.requestLib("org.scala-lang:scala-library:2.13.1",TDependency.MAVEN_REPO,""); InputStream stream = getClass().getResourceAsStream("/plugin.yml"); Object load = new Yaml().load(stream); String main = (String) ((Map) load).get("scalaMain");