The minecraft-text library does not seem to parse chat messages in my "unmodded" (no plugins) Purpur (a Paper/Spigot/CraftBukkit fork), this may be due to the strange format it uses (note that everything useful is inside of "with"):
{"translate":"chat.type.text","with":[{"text":"wnuke","clickEvent":{"action":"suggest_command","value":"/tell wnuke "},"hoverEvent":{"action":"show_entity","contents":{"type":"minecraft:player","id":"6eae0039-8396-3cb1-b63b-c6a62be747d9","name":"wnuke"}},"insertion":"wnuke"},"hello"]}
This is the Json given by the getOriginal()
method, however toRawString()
and getText()
do not include the message ("hello"), they are empty/blank strings.
However parsing works fine when I use the same server jar on a server using my custom chat plugin/mod which gives the following json:
{"text":"","extra":["<notfunnydidntask","> hello"]}
and gives the correct message "<notfunnydidntask> hello
".
Same thing occurs with with /tell or /say messages, they work on the "modded" server but not on the "unmodded" server.
The code can be seen here.