Okay I'll admit I didn't do much research into the API, I only knew about the TextComponent stuff and that was a bit long winded for what I liked, the first solution I found was the NMS one. It's up to you if you fix it or not, but i did find a solution that works, I didn't know where was a json...
They closed and marked it as invalid. Owen says "NMS compatibility is never promised, we make changes here". Is there any other options? Is there a way to check if the server is running spigot or paper and do something accordingly?
Hiya,
The code below shows a 1.20.1 and 1.20.2 version of the same spigot code. The 1.20.1 works with both spigot and paper, the 1.20.2 code only works with spigot.
//1.20.1
ClientboundSystemChatPacket packet = new ClientboundSystemChatPacket(IChatBaseComponent.ChatSerializer.a(line), false)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.