CobbleSword / NachoSpigot

NachoSpigot is a fork of TacoSpigot 1.8.9 that offers several enhancements to performance as well as bug fixes.
GNU General Public License v3.0
237 stars 86 forks source link

Tellraw loss some message parts #330

Closed caoli5288 closed 2 years ago

caoli5288 commented 2 years ago

Observed Behavior

Tellraw loss some message parts. See Steps To Reproduce

Expected Behavior

See Steps To Reproduce

Steps To Reproduce

Run commands below

tellraw @a ["",{"text":"§6[§aworld§6]","clickEvent":{"action":"run_command","value":"/tpa y1wan"},"hoverEvent":{"action":"show_text","value":"§6当前所在位置:\n§6世界: §dworld\n§6坐标: §aX:-136 Y: 64 Z: -183\n\n§c点击即可TP我!"}},{"text":"§fy1wan","clickEvent":{"action":"suggest_command","value":"/m y1wan"},"hoverEvent":{"action":"show_text","value":"§6玩家名称: §by1wan\n\n§c点击与我聊天"}},{"text":": "},{"text":"aaa"}]

Shown 图片 in nacho, it's wrong.

Shown 图片 in origin spigot, it's okay.

Plugin List

Plugins (13): SimpleORM, PlaceholderAPI, iConomy, ViaVersion, Vault, VexView, LogManager, ProtocolLib, VexWrapper, Teams2, CMILib, Residence, QuickShop

Server Version

This server is running NachoSpigot version git-NachoSpigot-"c901193" (MC: 1.8.8) (Implementing API version 1.8.8-R0.2-SNAPSHOT)

Other

No response

Agreements

sadcenter commented 2 years ago

https://github.com/CobbleSword/NachoSpigot/commit/200fb393a8cfe5107313948b531bfedd354fe9fd

IChatBaseComponent var5 = ChatSerializer.a(var4);

Seems that the security patch from SportPaper could have messed up.

ghost commented 2 years ago

200fb39

IChatBaseComponent var5 = ChatSerializer.a(var4);

Seems that the security patch from SportPaper could have messed up.

After reverting this commit, the text shows correctly so it is caused by this commit.