Replies: 3 comments 12 replies
-
Components are immutable. Calling |
Beta Was this translation helpful? Give feedback.
-
So how can I modify the content of the ClientboundSystemChatPacket? |
Beta Was this translation helpful? Give feedback.
-
Altho this librarry could be used. Protocollib has a working option. There for there needs to be made a work around to get this working. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In calling TextComponent#content(String) it appears to ignore the new content.
Context: I am using ProtocolLib and listening to ClientboundSystemChatPacket which has two fields, content and adventure$content. My goal is to edit these fields before the packet gets sent.
Before adventure, this was simple. Now I am trying to get the adventure$content field which works, but after setting its new content it appears not to work anymore.
The relevant code excerpt is here. Please note that the system.out prints out "ClientboundSystemChatPacket -> set to: " as if the new content is still empty even after it has been set.
Using Paper build 510.
Beta Was this translation helpful? Give feedback.
All reactions