From 8933afeb7130dc19dc349581888597ea7217ed81 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Sun, 19 Jan 2020 01:57:50 +0800 Subject: [PATCH] fix: Plugin Resources get error Signed-off-by: MiaoWoo --- src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java b/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java index f25d7a6..27ebba7 100644 --- a/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java +++ b/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java @@ -15,6 +15,7 @@ public class MiaoScriptBungee extends Plugin { @Override @SneakyThrows public void onEnable() { + Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); engine = new ScriptEngine(getDataFolder().getCanonicalPath(), getLogger(), this); engine.enableEngine(); }