player.sendMessage is depreacted, along with this weird output:
What is the new method, says this in the docs but not entirely sure what it means. (Im brand new to java)
10 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by sniped137#0
means you shouldnt use it
and it isnt maintained and could be removed at any moment
use Component based sendmessages or ignore the deprecated warning
how would i go about using component based send messages?
The Chat Component API | SpigotMC - High Performance Minecraft
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
or you could use Adventure/minimessage if u only care about it working on paper based servers
yeah its going to stay paper based
even if ur wanna keep spigot compat, u can and should use adventure/minimessage... its just so much nicer
paper just comes packaged with it, for spigot, you'll have to include the adventure api urself
I tried using it but i keep getting the message' ComponentBuilder' is abstract; cannot be instantiated when i import import net.kyori.adventure.text.ComponentBuilder;
havent had that issue, u should check out the adventure discord, they have a dev help channel
Introduction | PaperMC Documentation
This documentation page applies to both the Paper and Velocity projects