Rothes / ProtocolStringReplacer

A Spigot plugin that allows you to edit the String in packet sends to players.
GNU General Public License v3.0
43 stars 10 forks source link

Can not replace chat-type on 1.19 #31

Closed ghost closed 1 year ago

ghost commented 2 years ago

Describe the bug Chat 类型无法替换,不知道是插件的问题还是 ProtocolLib 改了什么。

To Reproduce Steps to reproduce the behavior:

  1. Replacers 里设置 Listen-Types: Chat
  2. 在聊天里发送关键字
  3. 内容未被替换并产生报错

Expected behavior 内容应当被替换。

Stacktrace https://pastebin.com/mG0d54zC

Server Informations

juzijun233 commented 2 years ago

你在bungee上有VentureChat吗?

Rothes commented 2 years ago

初步确定为 Spigot 的 Bungee-Chat API 的问题,未能正常处理一些特殊的(可能不合规范的) JSON。

Rothes commented 2 years ago

临时解决方案:尝试在Json替换中将"action":"",替换为空白,这样可以让其正确解析Common替换。