diff --git a/fabric/src/main/java/cn/evole/mods/mcbot/McBot.java b/fabric/src/main/java/cn/evole/mods/mcbot/McBot.java index f7ae017..3fcb147 100644 --- a/fabric/src/main/java/cn/evole/mods/mcbot/McBot.java +++ b/fabric/src/main/java/cn/evole/mods/mcbot/McBot.java @@ -113,10 +113,10 @@ public void onServerStopping(MinecraftServer server) { UserBindApi.save(CONFIG_FOLDER); ChatRecordApi.save(CONFIG_FOLDER); CustomCmdHandler.INSTANCE.clear();//自定义命令持久层清空 + listenerFactory.stop();//分发器关闭 } public void onServerStopped(MinecraftServer server) { - listenerFactory.stop();//分发器关闭 service.stop(); messageThread.stop(); CQUtilsExecutor.shutdownNow();