Skip to content

fix(fake-op): 修复 26.1+ 非混淆服务端 EntityPlayer 类查找失败#695

Merged
Bkm016 merged 1 commit into
TabooLib:dev/6.3.0from
CoderKuo:fix/fake-op-26.1
May 19, 2026
Merged

fix(fake-op): 修复 26.1+ 非混淆服务端 EntityPlayer 类查找失败#695
Bkm016 merged 1 commit into
TabooLib:dev/6.3.0from
CoderKuo:fix/fake-op-26.1

Conversation

@CoderKuo
Copy link
Copy Markdown
Contributor

26.1+ 非混淆服务端的 Spigot/Paper 映射表为空,nmsClass("EntityPlayer") 会拼成 不存在的 net.minecraft.EntityPlayer。改为在 isUnobfuscated 分支直接使用 Mojang Deobf 全限定名 net.minecraft.server.level.ServerPlayer。

修复 Paper 26.1.2 上调用 dispatchCommandAsOp 抛 ClassNotFoundException 的问题。

26.1+ 非混淆服务端的 Spigot/Paper 映射表为空,nmsClass("EntityPlayer") 会拼成
不存在的 net.minecraft.EntityPlayer。改为在 isUnobfuscated 分支直接使用
Mojang Deobf 全限定名 net.minecraft.server.level.ServerPlayer。

修复 Paper 26.1.2 上调用 dispatchCommandAsOp 抛 ClassNotFoundException 的问题。
@Bkm016 Bkm016 merged commit 5880b4c into TabooLib:dev/6.3.0 May 19, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants