Use RGB Color Codes in Chat. Requires Minecraft Java 1.16+
Just a simple utility package to send colored rgb text into a minecraft chat.
Supported patterns:
#RRGGBB
,&#RRGGBB
,{#RRGGBB}
,&x&r&r&g&g&b&b
Gradients:
<colorCode>Text to apply gradient on</otherColorCode>
Usage:
player.sendMessage(*TextComponent.fromLegacyText(RGBApi.toColoredMessage(rawChatMessageWithColorCodes)))
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.CoasterFreakDE:minecraft-spigot-rgb-chat-support:1.0.5'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.CoasterFreakDE</groupId>
<artifactId>minecraft-spigot-rgb-chat-support</artifactId>
<version>1.0.5</version>
</dependency>