fix: 命令以真实玩家身份执行喵!ProtocolLib 转正为硬依赖~ - #208
Merged
Merged
Conversation
- executeCommand 改用 performCommand,服务器终于认得真玩家了喵,原版/插件命令都正常辣 - 删掉伪造替身的动态代理死代码,代码清爽喵 - 删斜杠逻辑注释化,命令原样下发,服务器自己会处理斜杠喵 - isRiskyCommand 内部补斜杠处理,YOLO 危险命令照样被拦住,安全不缩水喵 - 没装 ProtocolLib 直接报错+给下载链接并停止运行,ReloadService 也一起停掉喵 - config 过滤补充 say/title,测试顺手清了个无用导入喵
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
executeCommand改用performCommand,服务器终于认得真玩家了喵,原版/插件命令都正常辣isRiskyCommand内部补斜杠处理,YOLO 危险命令照样被拦住,安全不缩水喵say/title,测试顺手清了个无用导入喵Reviewer notes
setEnabled(false)直接停用插件。请确认部署环境都装了 ProtocolLib。performCommand与旧的Bukkit.dispatchCommand相比,会让命令以真实玩家身份执行(包括权限、玩家上下文),这修复了部分插件命令不识别执行者的问题。Test plan