
HexColorLib 1.1
Simple library for using hex color codes in spigot strings
Note: This resource is for developers only! It does not work as standalone resource and has to be included in a plugin to work
HexColorLib
Simple library for using hex color codes in spigot messages
Examples
("#B511BAThis is example monocolor message").color()
("#B511BAThis is example multi-color message#11BAB4").color()
Usage
- The string has to either contain:
- one color code before message e.g. #da0808 + msg
- or two color codes, one before and one after message e.g. #08bada + msg + #1b9135
- or old-school & characters with appropriate color codes anywhere in message
- on any such String, simply .color()
To add as dependency
- replace Tag with current version (can be seen at the top)
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.justADeni</groupId>
<artifactId>HexColorLib</artifactId>
<version>Tag</version>
</dependency>
Gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.justADeni:HexColorLib:Tag'
}