
EvtRealTime is called async
erenkarakal opened this issue ยท 0 comments
Skript/Server Version
[Skript] Server Version: Paper 1.21.8 #53 (704107c)
[Skript] Skript Version: 2.12.1 (selfbuilt-unknown)
[Skript] Installed Skript Addons:
- skript-io v1.0.0
- SkCheese v1.7
- skript-reflect v2.6.1 (https://github.com/SkriptLang/skript-reflect)
[Skript] Installed dependencies: None
Bug Description
The real time event is called asynchronously
Expected Behavior
It should be called on the main thread
Steps to Reproduce
command a:
trigger:
broadcast "works"
at 23:44 in real time:
execute console command "/a"
Errors or Screenshots
[23:41:00 ERROR]: Thread EvtSystemTime-Tasks failed main thread check: Command Dispatched Async: switch
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:9) ~[paper-1.21.8.jar:1.21.8-53-704107c]
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:980) ~[paper-1.21.8.jar:1.21.8-53-704107c]
at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:1116) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.Skript.dispatchCommand(Skript.java:1731) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.effects.EffCommand.execute(EffCommand.java:84) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.lang.Effect.run(Effect.java:42) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:40) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.lang.Trigger.execute(Trigger.java:33) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.events.EvtRealTime.execute(EvtRealTime.java:102) ~[Skript-2.12.1.jar:?]
at Skript-2.12.1.jar/ch.njol.skript.events.EvtRealTime$1.run(EvtRealTime.java:73) ~[Skript-2.12.1.jar:?]
at java.base/java.util.TimerThread.mainLoop(Timer.java:566) ~[?:?]
at java.base/java.util.TimerThread.run(Timer.java:516) ~[?:?]
[23:41:00 WARN]: java.lang.IllegalStateException: Asynchronous Command Dispatched Async: switch!
[23:41:00 WARN]: at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:10)
[23:41:00 WARN]: at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:980)
[23:41:00 WARN]: at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:1116)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.Skript.dispatchCommand(Skript.java:1731)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.effects.EffCommand.execute(EffCommand.java:84)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.lang.Effect.run(Effect.java:42)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:40)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:67)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.lang.Trigger.execute(Trigger.java:33)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.events.EvtRealTime.execute(EvtRealTime.java:102)
[23:41:00 WARN]: at Skript-2.12.1.jar//ch.njol.skript.events.EvtRealTime$1.run(EvtRealTime.java:73)
[23:41:00 WARN]: at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[23:41:00 WARN]: at java.base/java.util.TimerThread.run(Timer.java:516)
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.