fix: Plugin Resources get error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
0b0cea9e50
commit
8933afeb71
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user