#Send JSON message without building TextComponent
1 messages · Page 1 of 1 (latest)
Honestly I think that's a premature optimization. You might need to look into nms for this though. Also make sure you aren't using paper. Spigot doesn't require you to use text components you can use legacy text with most of the api
I'm optimizing because I need to send many messages to many players with slightly modified content per message
Also I need to use hover- & click-events and legacy text doesn't support them iirc
They do, you just need to include the proper tags.
Here's an example with tellraw:
/tellraw @a ["",{"text":"Welcome to "},{"text":"Minecraft Tools","clickEvent":{"action":"open_url","value":"https://google.com"}}]
Isn't that the newer JSON format?
It is
Does spigot accept that as legacy text?
AFAIK, it should.