Skip to content

pvpcraft-cz/IridiumColorAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IridiumColorAPI

Stats

Alt

Maven repo & dependency

<repository>
    <id>pvpcraft-cz</id>
    <url>https://repo.pvpcraft.cz/releases/</url>
</repository>
<dependency>
    <groupId>com.iridium</groupId>
    <artifactId>IridiumColorAPI</artifactId>
    <version>1.0.7</version>
</dependency>

Usage

To add a gradient simply use the tags

IridiumColorAPI.process("<GRADIENT:2C08BA>Cool string with a gradient</GRADIENT:028A97>");

Gradient Text

The number after the rainbow represents the saturation

IridiumColorAPI.process("<RAINBOW1>THIS IS A REALLY COOL Rainbow</RAINBOW>");

Rainbow

IridiumColorAPI.process("<RAINBOW100>THIS IS A REALLY COOL Rainbow</RAINBOW>");

Rainbow

IridiumColorAPI.process("<SOLID:FF0080>Cool RGB SUPPORT");

RGB Text

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

Legacy RGB

About

🧬 Maintained and updated IridiumColorAPI

Resources

Stars

Watchers

Forks

Languages

  • Java 97.5%
  • Kotlin 2.5%