Closed markovav-official closed 3 years ago
getChatComponents uses vanilla components, not adventure components.
you want to create your own structure wrapper for accessing adventure components
How can I get the raw text (sent by plugin using adventure component) that is sent to the player?
get the adventure component from the packet and use a PlainTextSerializer https://docs.adventure.kyori.net/serializer/plain.html
Thanks, I will try to do this
Describe the bug I using this code: https://pastebin.com/EHKpRxYB When I send message to player using net.kyori.adventure.text.Component, I recieve null on packet.getChatComponents().getValues().get(0) How I can get this message anyway? I think it is incorrect behavior.
To Reproduce Steps to reproduce the behavior:
Expected behavior I want to recieve WrappedChatComponent but not null
Version Info https://pastebin.com/UV0i1Z1B
Error in console https://pastebin.com/Wcdv8w6Y