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
JavaBot
JavaBotβ€’2mo ago
βŒ› This post has been reserved for your question.
Hey @shazim! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. πŸ’€ 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.
shazim
shazimOPβ€’2mo ago
(Still looking for help btw)
Madjosz
Madjoszβ€’2mo ago
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."
shazim
shazimOPβ€’2mo ago
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”)
Madjosz
Madjoszβ€’2mo ago
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.
shazim
shazimOPβ€’2mo ago
.
JavaBot
JavaBotβ€’2mo ago
πŸ’€ 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.
daysling
dayslingβ€’2mo ago
Just use Components Adventure Components
JavaBot
JavaBotβ€’2mo ago
πŸ’€ 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.
JavaBot
JavaBotβ€’2mo ago
Post Closed
This post has been closed by <@810632160418988053>.

Did you find this page helpful?