MohistMC / Banner

The Bukkit/Spigot/Paper API implementation for Fabric
GNU General Public License v3.0
238 stars 29 forks source link

[1.20.1] 飞行状态切换错误导致错误 #200

Open windy664 opened 11 months ago

windy664 commented 11 months ago

请确认您已完成以下几件事

Banner 版本

507

Java 版本 | 操作系统

openjdk version 19

相关 Mod/插件 的名称及版本

ESS,banner

错误描述

具体表现为玩家飞行状态切换错误,出现了 java.lang.RuntimeException,并提示了一系列异常信息。错误发生在玩家尝试切换飞行状态时,导致了能力异常的问题。异常堆栈显示问题涉及到了 bStats Metrics 类的检查和玩家飞行能力的切换。

复现步骤

No response

报错信息

[07:49:30] [Server thread/WARN]: Player ability minecraft:mayfly was updated externally (expected disabled, was enabled). java.lang.RuntimeException: stacktrace at io.github.ladysnake.pal.impl.PalInternals.logTamperWarning(PalInternals.java:63) ~[playerabilitylib-1.8.0-4683a0cc11f08713.jar:?] at io.github.ladysnake.pal.impl.VanillaAbilityTracker.checkConflict(VanillaAbilityTracker.java:71) ~[playerabilitylib-1.8.0-4683a0cc11f08713.jar:?] at net.minecraft.server.level.ServerPlayer.handler$dpo000$playerabilitylib$checkAbilityConsistency(ServerPlayer.java:15063) ~[server-intermediary.jar:?] at net.minecraft.server.level.ServerPlayer.onUpdateAbilities(ServerPlayer.java:1323) ~[server-intermediary.jar:?] at org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer.setAllowFlight(CraftPlayer.java:1825) ~[banner-1.20.1-507.jar:?] at com.earth2me.essentials.commands.Commandfly.togglePlayer(Commandfly.java:36) ~[?:?] at com.earth2me.essentials.commands.EssentialsToggleCommand.handleToggleWithArgs(EssentialsToggleCommand.java:31) ~[?:?] at com.earth2me.essentials.commands.Commandfly.run(Commandfly.java:22) ~[?:?] at com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:170) ~[?:?] at com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:820) ~[?:?] at com.earth2me.essentials.Essentials.onCommand(Essentials.java:723) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[banner-1.20.1-507.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:157) ~[banner-1.20.1-507.jar:?] at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:874) ~[banner-1.20.1-507.jar:?] at org.bukkit.craftbukkit.v1_20_R1.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:51) ~[banner-1.20.1-507.jar:?] at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:841) ~[brigadier-1.1.8.jar:?] at net.minecraft.commands.Commands.redirect$zki000$architectury$performCommand(Commands.java:2045) ~[server-intermediary.jar:?] at net.minecraft.commands.Commands.performCommand(Commands.java:287) ~[server-intermediary.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:3061) ~[server-intermediary.jar:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:1321) ~[server-intermediary.jar:?] at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:67) ~[server-intermediary.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-intermediary.jar:?] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:156) ~[server-intermediary.jar:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:782) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:164) ~[server-intermediary.jar:?] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:130) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:764) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:758) ~[server-intermediary.jar:?] at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:743) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:2134) ~[server-intermediary.jar:?] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:265) ~[server-intermediary.jar:?] at java.lang.Thread.run(Thread.java:1589) ~[?:?]

复现用压缩包下载链接(可选)

No response

Mgazul commented 3 months ago

playerabilitylib mod