mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-24 02:08:48 +00:00
feat: 使用默认的类加载器
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
94f134ddf9
commit
6fd7848d56
@ -3,9 +3,14 @@ package pw.yumc.YumCore.engine;
|
|||||||
import java.io.Reader;
|
import java.io.Reader;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import javax.script.*;
|
import javax.script.Bindings;
|
||||||
|
import javax.script.Invocable;
|
||||||
import pw.yumc.YumCore.bukkit.P;
|
import javax.script.ScriptContext;
|
||||||
|
import javax.script.ScriptEngine;
|
||||||
|
import javax.script.ScriptEngineFactory;
|
||||||
|
import javax.script.ScriptEngineManager;
|
||||||
|
import javax.script.ScriptException;
|
||||||
|
import javax.script.SimpleBindings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 喵式脚本引擎
|
* 喵式脚本引擎
|
||||||
@ -19,7 +24,7 @@ public class MiaoScriptEngine implements ScriptEngine, Invocable {
|
|||||||
private ScriptEngine engine;
|
private ScriptEngine engine;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
manager = new ScriptEngineManager(P.getPlugin().getClass().getClassLoader());
|
manager = new ScriptEngineManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setBindings(Bindings bindings) {
|
public static void setBindings(Bindings bindings) {
|
||||||
|
Loading…
Reference in New Issue
Block a user