fix: Plugin Resources get error

Signed-off-by: MiaoWoo <admin@yumc.pw>
dev
MiaoWoo 2020-01-19 01:57:50 +08:00
parent 0b0cea9e50
commit 8933afeb71
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}