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)
No description
No description
10 Replies
Admincraft Meta
Admincraft Meta17mo ago
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
ProGamingDk
ProGamingDk17mo ago
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
Sniped137
Sniped137OP17mo ago
how would i go about using component based send messages?
ProGamingDk
ProGamingDk17mo ago
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.
ProGamingDk
ProGamingDk17mo ago
or you could use Adventure/minimessage if u only care about it working on paper based servers
Sniped137
Sniped137OP17mo ago
yeah its going to stay paper based
QarthO
QarthO17mo ago
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
Sniped137
Sniped137OP17mo ago
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;
QarthO
QarthO17mo ago
havent had that issue, u should check out the adventure discord, they have a dev help channel
Lunaiskey
Lunaiskey17mo ago
Introduction | PaperMC Documentation
This documentation page applies to both the Paper and Velocity projects

Did you find this page helpful?