Search
Get Started
A
Admincraft
•
3y ago
Sniped137
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
)
Admincraft
Join
10,841
Members
View on Discord
Was this page helpful?
Yes
No
A
Admincraft Meta
•
9/14/23, 5:36 PM
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
•
9/14/23, 5:36 PM
S
Sniped137
What is the new method, says this in the docs but not entirely sure what it mean...
P
ProGamingDk
•
9/14/23, 5:36 PM
means you shouldnt use it
P
ProGamingDk
•
9/14/23, 5:36 PM
and it isnt maintained and could be removed at any moment
P
ProGamingDk
•
9/14/23, 5:37 PM
use Component based sendmessages or ignore the deprecated warning
P
ProGamingDk
means you shouldnt use it
S
Sniped137
OP
•
9/14/23, 5:37 PM
how would i go about using component based send messages
?
P
ProGamingDk
•
9/14/23, 5:38 PM
https://www.spigotmc.org/wiki/the-chat-component-api/
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
.
P
ProGamingDk
•
9/14/23, 5:38 PM
or you could use Adventure
/minimessage if u only care about it working on paper based servers
S
Sniped137
OP
•
9/14/23, 5:38 PM
yeah its going to stay paper based
Q
QarthO
•
9/14/23, 5:49 PM
even if ur wanna keep spigot compat
, u can and should use adventure
/minimessage
.
.
. its just so much nicer
Q
QarthO
•
9/14/23, 5:49 PM
paper just comes packaged with it
, for spigot
, you
'll have to include the adventure api urself
Q
QarthO
even if ur wanna keep spigot compat, u can and should use adventure/minimessage....
S
Sniped137
OP
•
9/14/23, 6:08 PM
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
;
Q
QarthO
•
9/14/23, 6:52 PM
havent had that issue
, u should check out the adventure discord
, they have a dev help channel
S
Sniped137
I tried using it but i keep getting the message' ComponentBuilder' is abstract; ...
L
Lunaiskey
•
9/14/23, 7:34 PM
https://docs.papermc.io/paper/dev/component-api/introduction
Introduction | PaperMC Documentation
This documentation page applies to both the Paper and Velocity projects