<repository>
<id>iridiumdevelopment</id>
<url>https://nexus.iridiumdevelopment.net/repository/maven-releases/</url>
</repository>
<dependency>
<groupId>com.iridium</groupId>
<artifactId>IridiumColorAPI</artifactId>
<version>LATEST</version>
</dependency>
To add a gradient simply use the tags
IridiumColorAPI.process("<GRADIENT:2C08BA>Cool string with a gradient</GRADIENT:028A97>");
The number after the rainbow represents the saturation
IridiumColorAPI.process("<RAINBOW1>THIS IS A REALLY COOL Rainbow</RAINBOW>");
IridiumColorAPI.process("<RAINBOW100>THIS IS A REALLY COOL Rainbow</RAINBOW>");
IridiumColorAPI.process("<SOLID:FF0080>Cool RGB SUPPORT");
If your server version is pre 1.16 it will map the color to the nearest supported value(This also works with gradient) In the example above, it will map to &5 as this is the closest