Polymart is now Voxel Shop! We're upgrading many features of the site, and during this open beta you will experience occasional bugs. Learn more  
HexColorLib icon

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

68747470733a2f2f6a69747061636b2e696f2f762f6a7573744144656e692f486578436f6c6f724c69622e737667
HexColorLib

Simple library for using hex color codes in spigot messages

Examples
("#B511BAThis is example monocolor message").color()

monocolor.png?raw=true 

("#B511BAThis is example multi-color message#11BAB4").color()

multicolor.png?raw=true 

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'
}
Owned
Ready to download
This resource is already attached to your account. You can download the latest file any time.