diff --git a/pom.xml b/pom.xml index 24a9d37..03a0da3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 pw.yumc MiaoScript - 0.4.0 + 0.4.1 502647092 @@ -54,6 +54,7 @@ DEV + §620-04-03 §afeat: 优化 框架卸载逻辑; §620-03-31 §afeat: require 新增 内建 nodejs 模块; §620-03-03 §afeat: require 新增 淘宝镜像源拉取; §620-02-27 §afeat: 异步加载脚本引擎; diff --git a/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java b/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java index 27ebba7..d991e53 100644 --- a/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java +++ b/src/main/java/pw/yumc/MiaoScript/MiaoScriptBungee.java @@ -23,5 +23,6 @@ public class MiaoScriptBungee extends Plugin { @Override public void onDisable() { engine.disableEngine(); + engine = null; } } diff --git a/src/main/java/pw/yumc/MiaoScript/MiaoScriptNukkit.java b/src/main/java/pw/yumc/MiaoScript/MiaoScriptNukkit.java index 6ab3dbb..5be8e1d 100644 --- a/src/main/java/pw/yumc/MiaoScript/MiaoScriptNukkit.java +++ b/src/main/java/pw/yumc/MiaoScript/MiaoScriptNukkit.java @@ -20,5 +20,6 @@ public class MiaoScriptNukkit extends PluginBase { @Override public void onDisable() { engine.disableEngine(); + engine = null; } } diff --git a/src/main/java/pw/yumc/MiaoScript/MiaoScriptSponge.java b/src/main/java/pw/yumc/MiaoScript/MiaoScriptSponge.java index 53fd25d..392719a 100644 --- a/src/main/java/pw/yumc/MiaoScript/MiaoScriptSponge.java +++ b/src/main/java/pw/yumc/MiaoScript/MiaoScriptSponge.java @@ -19,7 +19,7 @@ import lombok.SneakyThrows; * @author 喵♂呜 * Created on 2017/10/25 20:35. */ -@Plugin(id = "miaoscript", name = "MiaoScript", version = "1.0", authors = "喵♂呜") +@Plugin(id = "miaoscript", name = "MiaoScript", version = "1.0", authors = "MiaoWoo") public class MiaoScriptSponge { private ScriptEngine engine; @Inject @@ -40,6 +40,7 @@ public class MiaoScriptSponge { @SneakyThrows public void onStop(GameStoppingServerEvent event) { engine.disableEngine(); + engine = null; } @Listener