Skip to content

About

Util class for Spigot, helps you with colors, gradients, hex codes and more...

Resources

Stars

11 stars

Watchers

2 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Copy-Paste

Copy-Paste this into your project!

Support

  • Using reflections, so it should support every version above (1.7/1.8)

NOTE: If you use Gradient/HEX under 1.16, text won't be colorized!

Colorizing classic text

ColorUtils.colorize("&aLegacy text")

Examples:

image

image

Colorizing gradient (Hex Usage)

ColorUtils.colorize("<#FF6600>Gradient colorized text</#9DFF8A>")

Examples:

image

image

Colorizing gradient (Legacy Usage)

ColorUtils.colorize("<&a>Gradient with legacy codes!</&c>")

Examples:

image

Colorizing gradient (Changing format in gradient text)

ColorUtils.colorize("<#FF6600>&lBold text &nUnderlined Text</#9DFF8A>")

Examples:

image

Colorizing gradient (Creating exception in gradient text)

(Create color exception, and continue in gradient)

ColorUtils.colorize("<#FF6600>Colorized text &cEXCEPTION &rcontinue in gradient!</#9DFF8A>")

Examples:

image

Removing colors

# Insert here already colorized text!
ColorUtils.removeColors("§aRemove my colors!")

Characters without color (List of characters)

# Insert here already colorized text!
ColorUtils.charactersWithoutColors("§aCharacters without colors")

# Output:
# [C, h, a, r, a, c, t, e, r, s,  , w, i, t, h, o, u, t,  , c, o, l, o, r, s]

Characters with color (List of characters)

# Insert here already colorized text!
ColorUtils.charactersWithColors("§aCharacters without colors")

# Output:
# [§aC, §ah, §aa, §ar, §aa, §ac, §at, §ae, §ar, §as, §a , §aw, §ai, §at, §ah, §ao, §au, §at, §a , §ac, §ao, §al, §ao, §ar, §as]

About

Util class for Spigot, helps you with colors, gradients, hex codes and more...

Resources

Stars

11 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages