packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

clientbound/minecraft:system_chat

Open AxDevv opened this issue 10 months ago • 10 comments

Describe the bug https://pastebin.com/DsSzjR02

Software brand 5.4.0-SNAPSHOT-739 packetevent 2.7.1+2a137b005-SNAPSHOT

How To Reproduce I use the plugin TypeWriter

AxDevv avatar Feb 01 '25 16:02 AxDevv

Experiencing the same issue, the "dialogue" box from typewriter wouldn't exit and just stays in the chat, sending that error message

Toshiii35 avatar Feb 02 '25 11:02 Toshiii35

could you please provide a clear way to reproduce this issue?

booky10 avatar Feb 28 '25 21:02 booky10

could you please provide a clear way to reproduce this issue?

Hey! This happens with typewriter plugin, usually happens (at least in my case) when a dialogue goes in the chat and there are "options" you need to select and when you choose one, the dialogue SHOULD go out/be cleared, but it doesn't and sends this error instead.

Toshiii35 avatar Mar 02 '25 02:03 Toshiii35

@booky10, author of Typewriter here 👋. I've seen this issue come up multiple times.

For most users, it is likely that another plugin is sending messages with the show_item hover component type.

This error occurs because Typewriter listens for system chat packets and attempts to read their content.

Caused by: java.lang.IllegalArgumentException: There is no data holder converter registered to convert from a class com.github.retrooper.packetevents.util.adventure.AdventureNBTSerializer$NbtComponentValue instance to a class io.papermc.paper.adventure.PaperAdventure$DataComponentValueImpl (on field minecraft:lore)

I don't think this is something I can change myself; it needs to be fixed in packetevents.

gabber235 avatar Mar 16 '25 15:03 gabber235

packetevents reads and writes components from/to serialized nbt, so im not how this class cast exception happens

I didn't do much investigation on this issue yet - do you happen to send components read via packetevents through the paper api? this would probably cause this error, as paper expects their own show_item classes and casts to them @gabber235

booky10 avatar Mar 16 '25 16:03 booky10

Typewriter is not the plugin sending the messages. We have a PacketListener that monitors system messages. It intercepts packets and reads their contents using the corresponding wrapper, and this process causes the exception.

Someone on the Typewriter Discord mentioned that Triton might be the cause. I have not verified this myself, but it might give you a lead.

gabber235 avatar Mar 17 '25 04:03 gabber235

I can say that it's not because of Triton because I have no idea about it since I don't use/have it.

Toshiii35 avatar Mar 19 '25 05:03 Toshiii35

I use the triton plugin which is a message translation plugin, I removed all the plugins from my server, added the typewriter and its dependencies, and to test why it was failing I first added Triton, as soon as I added it, the dialog messages stopped appearing and I got an error with the chat management, now I removed that plugin and it works fine for me.

Ferxs09 avatar Mar 19 '25 21:03 Ferxs09

Hi, I have a similar issue. I don't use Triton; I use the EssentialsChat plugin along with Typewriter and its dependencies. I noticed this problem in my chat In Game at the end of a cinematic sequence using Typewriter.

I can't replicate it consistently, but it only occurs when i launched a cinematic followed by sending a message at the end of the cinematic.

Image

FurrO2 avatar Apr 20 '25 12:04 FurrO2

Confirming; this issue appears for me and we do not run Triton. Seemingly a PE bug then?

JosTheDude avatar Nov 21 '25 02:11 JosTheDude