测试:
keys:
- "重载客户端资源"
interval: 100
trigger:
- "让玩家发送消息{message = 自定义按键测试}"
- "玩家OP执行命令{command = arcartx reload true}"
-------------------------------------------------------------------------------
绑定按钮触发此脚本后,报错,正常使用/arcartx reload true无此问题
-------------------------------------------------------------------------------
[09:23:19] [Server thread/INFO]: ♦ ArcartX | 错误: 来自 [处理发包发生异常]
[09:23:19] [Server thread/WARN]: 错误日志
java.lang.IllegalStateException: The Context is already closed.
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineException.closedException(PolyglotEngineException.java:139) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosedOrDisposing(PolyglotContextImpl.java:1257) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotContextImpl.enterThreadChanged(PolyglotContextImpl.java:808) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineImpl.enterCached(PolyglotEngineImpl.java:2047) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineImpl.enterIfNeeded(PolyglotEngineImpl.java:1975) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotValueDispatch.hostEnter(PolyglotValueDispatch.java:1228) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotValueDispatch$InteropValue.isBoolean(PolyglotValueDispatch.java:2549) ~[?:?]
at priv.seventeen.artist.arcartx.lib.org.graalvm.polyglot.Value.isBoolean(Value.java:1037) ~[?:?]
at priv.seventeen.artist.arcartx.script.ScriptManager.executeScript(ScriptManager.kt:122) ~[?:?]
at priv.seventeen.artist.arcartx.script.ScriptManager.executeScript(ScriptManager.kt:127) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.packet.client.CPackKeyGroupPress.handle(CPackKeyGroupPress.kt:24) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.packet.PacketBase.run(PacketBase.kt:19) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.NetWorkManager.onPluginMessageReceived(NetWorkManager.kt:107) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[spigot-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:3085) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.game.PacketPlayInCustomPayload.a(SourceFile:38) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.game.PacketPlayInCustomPayload.a(SourceFile:7) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1151) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1130) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1123) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:139) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1107) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1018) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
keys:
- "重载客户端资源"
interval: 100
trigger:
- "让玩家发送消息{message = 自定义按键测试}"
- "玩家OP执行命令{command = arcartx reload true}"
-------------------------------------------------------------------------------
绑定按钮触发此脚本后,报错,正常使用/arcartx reload true无此问题
-------------------------------------------------------------------------------
[09:23:19] [Server thread/INFO]: ♦ ArcartX | 错误: 来自 [处理发包发生异常]
[09:23:19] [Server thread/WARN]: 错误日志
java.lang.IllegalStateException: The Context is already closed.
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineException.closedException(PolyglotEngineException.java:139) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosedOrDisposing(PolyglotContextImpl.java:1257) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotContextImpl.enterThreadChanged(PolyglotContextImpl.java:808) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineImpl.enterCached(PolyglotEngineImpl.java:2047) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotEngineImpl.enterIfNeeded(PolyglotEngineImpl.java:1975) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotValueDispatch.hostEnter(PolyglotValueDispatch.java:1228) ~[?:?]
at priv.seventeen.artist.arcartx.lib.com.oracle.truffle.polyglot.PolyglotValueDispatch$InteropValue.isBoolean(PolyglotValueDispatch.java:2549) ~[?:?]
at priv.seventeen.artist.arcartx.lib.org.graalvm.polyglot.Value.isBoolean(Value.java:1037) ~[?:?]
at priv.seventeen.artist.arcartx.script.ScriptManager.executeScript(ScriptManager.kt:122) ~[?:?]
at priv.seventeen.artist.arcartx.script.ScriptManager.executeScript(ScriptManager.kt:127) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.packet.client.CPackKeyGroupPress.handle(CPackKeyGroupPress.kt:24) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.packet.PacketBase.run(PacketBase.kt:19) ~[?:?]
at priv.seventeen.artist.arcartx.internal.network.NetWorkManager.onPluginMessageReceived(NetWorkManager.kt:107) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[spigot-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:3085) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.game.PacketPlayInCustomPayload.a(SourceFile:38) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.game.PacketPlayInCustomPayload.a(SourceFile:7) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.network.protocol.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:31) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.TickTask.run(SourceFile:18) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.d(SourceFile:156) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(SourceFile:23) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1151) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:1) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.x(SourceFile:130) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.bg(MinecraftServer.java:1130) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1123) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.util.thread.IAsyncTaskHandler.c(SourceFile:139) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.p_(MinecraftServer.java:1107) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1018) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
最后编辑: