ProtocolStringReplacer
注意:如果你试图在 ReplacerConfig 中替换颜色,请使用 '§'(原版 Minecraft 颜色字符)而不是 '&'(Bukkit 颜色字符)。例如使用 §3§l 而不是 &3&l
摘要
ProtocolStringReplacer 是一个允许你通过处理网络数据包来编辑消息的插件。
它致力于优化效率并提供更多功能。
由于我们处理的是发送给玩家的数据包,因此不会影响服务器和插件的实际处理逻辑。
特性
- 修复 Log4j 0day CVE 漏洞
- 提供
/psr capture命令,让你轻松复制原始文本。 - 编辑 1.19.0-1.19.2 ChatPreview 组件
- 编辑物品完整 NBT、DisplayName 和 Lore
- 编辑 TabComplete 字符串
- 编辑战斗死亡(死亡屏幕)消息
- 编辑踢出断开连接消息
- 编辑书籍内容 / 作者
- 编辑 Boss-Bar 文本
- 编辑告示牌完整 NBT、4/8 行文本
- 编辑 ScoreBoard 文本
- 编辑控制台消息
- 编辑标题消息
- 编辑聊天消息
- 编辑窗口标题文本
- 编辑实体名称
- 支持将 PLAYER_CHAT 数据包转换为 SYSTEM_CHAT 数据包,以确保在 1.19 版本中的替换生效。 (副作用:客户端无法检测发送消息的玩家。例如:无法通过聊天举报玩家)
- 支持替换字符串,或者直接阻止该数据包!
- 使用 Aho-Corasick 算法进行字符串替换!速度极快!
- 不会增加服务器的带宽压力!所有替换都在原始数据包上进行处理。
- 支持编辑 Json,并对 Json 进行智能处理,
- 不会破坏消息中的任何额外内容(例如 HoverEvent)。
- ItemMeta 缓存系统,处理窗口中的 ItemStacks 仅需 1ms。
- 在游戏中编辑替换和阻止规则。
- 你可以创建多个 replacer 配置以提高可读性。
- 安全的占位符替换系统。
- 完全支持热加载和热卸载。
- 过滤系统(客户端区域设置、权限等)。
…… 以及更多。
命令
/psr help - 列出所有命令
/psr edit - 游戏中的 Replacer 配置编辑器
/psr parse - 测试替换字符串
/psr capture - 捕获数据包中的内容
/psr reload - 重新加载 replacer 配置
权限
protocolstringreplacer.command.edit - 允许使用编辑命令
protocolstringreplacer.command.parse - 允许使用解析命令
protocolstringreplacer.command.reload - 允许使用重载命令
protocolstringreplacer.command.capture - 允许使用捕获命令
protocolstringreplacer.feature.usermetacache - 当收到来自玩家的数据包时恢复原始 itemstack,以避免创造模式下的错误。
protocolstringreplacer.feature.usermetacache.noncreative - 同上,但适用于其他游戏模式。通常用于避免由其他插件引起的错误。
[ 广告 ]
寻找能增强服务器 QOL 体验的插件?
查看我们的新插件:ESU
支持
有关文档,请检查 Config.yml 和 Replacers/Example.yml 。
文件中的注释解释了我们几乎所有的功能。我们目前还没有维护维基。
如需讨论和支持,你可以加入我们的 Discord 服务器。
如果遇到任何错误,请在 GitHub 上报告。用英文或中文撰写问题。
示例配置
Replacer 配置示例内置于插件 jar 中,并在首次运行插件时创建。
bStats
ProtocolStringReplacer
Notice: If you are trying to replace colors in your ReplacerConfig, use '§'(Vanilla Minecraft color character) instead of '&'(Bukkit color character). e.g. §3§l instead of &3&l
Abstract
ProtocolStringReplacer is a plugin that allows you to edit the messages by processing network packets.
It is committed to optimizing efficiency and providing more functions for use.
Since we are handling the packets sent to the player, it will not affect the actual processing in the server, and plugins.
Features
- Fix Log4j 0day CVE vulnerability
- We have a
/psr capturecommand to let you easily copy the original texts. - Edit 1.19.0-1.19.2 ChatPreview Component
- Edit Item full NBT, DisplayName and Lore
- Edit TabComplete Strings
- Edit Combat Died(Death Screen) Message
- Edit Kick Disconnect Message
- Edit Book Contents / Author
- Edit Boss-Bar Texts
- Edit Sign full NBT, 4/8 Text Lines
- Edit ScoreBoard Texts
- Edit Console Messages
- Edit Title Messages
- Edit Chat Messages
- Edit Window-Title Texts
- Edit Entity name
- Support Convert PLAYER_CHAT packets to SYSTEM_CHAT packets, to make sure replacements on 1.19. (Side Effect: Clients cannot detect the player who sent the messages. E.g. cannot report players via chat)
- Support Replace strings, or just block that packet!
- Use Aho-Corasick Algorithm for string replace! It's crazy fast!
- Will not increase the bandwidth pressure of the server! All replacements are processed on the original packet.
- Support editing Json , and Intelligent processing of Json,
- Will not break any extra contents(e.g. HoverEvent) in messages.
- ItemMeta cache System, only needs 1ms for processing ItemStacks in a window.
- Edit the replaces and blocks in game.
- You can create multiple replacer configs for greater legibility.
- Safe placeholder replacement system.
- Full hot-load and hot-unload support.
- Filter System(Client locale, permission and many else).
…… And more.
Commands
/psr help - List all the commands
/psr edit - Replacer configs editor in game
/psr parse - Test replacing strings
/psr capture - Capture contents in packets
/psr reload - Reload replacer configs
Permissions
protocolstringreplacer.command.edit - Allow to use edit commands
protocolstringreplacer.command.parse - Allow to use parse commands
protocolstringreplacer.command.reload - Allow to use reload commands
protocolstringreplacer.command.capture - Allow to use capture commands
protocolstringreplacer.feature.usermetacache - Restore original itemstack when receive packet from player to avoid errors in Creative gamemode.
protocolstringreplacer.feature.usermetacache.noncreative - Same with above, but for other gamemodes. To avoid errors caused by other plugins usually.
[ Advertising ]
Looking for plugins that enhances your server QOL experience?
Check our new plugin: ESU
Support
For docs, please check Config.yml and Replacers/Example.yml .
The comments in the files explain almost all the features we have. We don't have a maintaining wiki right away.
For discussing, supporting you can join our Discord Server.
If you met any bug, please report it on GitHub. Write the issue in English or Chinese.
Example Configs
Replacer Config Examples are built in the plugin jar, and will be created the first time you run the plugin.
bStats
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ProtocolStringReplacer
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
支持在 1.20.5+ 版本中悬停查看物品
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧