Chat Messages - Hex Codes
Hey, I was wondering if there was a way I could implement custom hex codes into my chat messages. If someone could help me, that would be great! Thanks!
10 Replies
β
This post has been reserved for your question.
Hey @shazim! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
π€
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
(Still looking for help btw)
The JavaDoc of the
ChatColor
enum says "All supported color values for chat" and they look very similar to what ANSI colors are, probably they are implemented using them. So the answer would be "No, it is not possible to implement custom colors."I thought it was possible, though. I remember hearing that you could use
p.sendMessage(ChatColor.of("#FF00FF") + "This is a magenta message using hex!");
p.sendMessage(ChatColor.of("#00FF00") + "This is a green message using hex!");
ChatColor.of(β#hex codeβ)There is a
ChatColor.asBungee()
method which returns a net.md_5.bungee.api.ChatColor
and this class has an of(String)
static method so maybe you should try out this library..
π€
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Just use Components
Adventure Components
π€
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Post Closed
This post has been closed by <@810632160418988053>.