1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-12-24 06:58:51 +00:00

feat: 使用默认的类加载器

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2017-04-18 00:43:04 +08:00
parent 94f134ddf9
commit 6fd7848d56

View File

@ -3,9 +3,14 @@ package pw.yumc.YumCore.engine;
import java.io.Reader;
import java.util.HashMap;
import javax.script.*;
import pw.yumc.YumCore.bukkit.P;
import javax.script.Bindings;
import javax.script.Invocable;
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;
static {
manager = new ScriptEngineManager(P.getPlugin().getClass().getClassLoader());
manager = new ScriptEngineManager();
}
public static void setBindings(Bindings bindings) {