SirBlobman / CombatLogX

A modular Spigot plugin that prevents players from logging out during combat and has many expansions for extra features.
https://www.spigotmc.org/resources/31689/
GNU General Public License v3.0
154 stars 52 forks source link

Error in console on Folia #735

Open roggy666 opened 1 year ago

roggy666 commented 1 year ago

Server Implementation

Folia

Server Version

1.20.1

Describe the bug

[19:28:02 ERROR]: Could not pass event PlayerTeleportEvent to CombatLogX v11.4.0.1.1193 java.lang.UnsupportedOperationException: Must use teleportAsync while in region threading at org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer.teleport(CraftPlayer.java:1311) ~[folia-1.20.1.jar:git-Folia-"372d479"] at org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer.teleport(CraftPlayer.java:1260) ~[folia-1.20.1.jar:git-Folia-"372d479"] at org.bukkit.craftbukkit.v1_20_R1.entity.CraftEntity.teleport(CraftEntity.java:574) ~[folia-1.20.1.jar:git-Folia-"372d479"] at combatlogx.expansion.compatibility.region.world.guard.listener.ListenerWorldGuard.onTeleport(ListenerWorldGuard.java:53) ~[?:?] at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor461.execute(Unknown Source) ~[?:?] at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[folia-api-1.20.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[folia-api-1.20.1-R0.1-SNAPSHOT.jar:git-Folia-"372d479"] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[folia-api-1.20.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[folia-1.20.1.jar:git-Folia-"372d479"] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[folia-1.20.1.jar:git-Folia-"372d479"] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[folia-api-1.20.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.teleport(ServerGamePacketListenerImpl.java:1819) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.teleport(ServerGamePacketListenerImpl.java:1788) ~[?:?] at net.minecraft.server.level.ServerPlayer.stopSleepInBed(ServerPlayer.java:1938) ~[?:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerCommand(ServerGamePacketListenerImpl.java:2780) ~[?:?] at net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket.handle(ServerboundPlayerCommandPacket.java:37) ~[?:?] at net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket.handle(ServerboundPlayerCommandPacket.java:13) ~[?:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:52) ~[?:?] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:75) ~[?:?] at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:173) ~[folia-1.20.1.jar:git-Folia-"372d479"] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1523) ~[folia-1.20.1.jar:git-Folia-"372d479"] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:360) ~[folia-1.20.1.jar:git-Folia-"372d479"] at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[folia-1.20.1.jar:git-Folia-"372d479"] at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[folia-1.20.1.jar:git-Folia-"372d479"] at java.lang.Thread.run(Thread.java:833) ~[?:?]

Reproduction Steps

Idk, fix it pls

Expected behaviour

No errors in the console

Screenshots / Videos

No response

latest log file (if applicable)

No response

CombatLogX Version

[19:29:12 INFO]: CombatLogX by SirBlobman [19:29:12 INFO]: Local Version: 11.4.0.1.1193 [19:29:12 INFO]: Remote Version: Not Available [19:29:12 INFO]: Enabled Expansions (5): [19:29:12 INFO]: - Action Bar v17.3 [19:29:12 INFO]: - Boss Bar v17.1 [19:29:12 INFO]: - Cheat Prevention v17.6 [19:29:12 INFO]: - WorldGuard Compatibility v17.2 [19:29:12 INFO]: - Logger v17.2

Anything else?

No response