Added a string colorizer

This commit is contained in:
5vl 2022-11-21 00:48:46 +01:00
parent 6a3645e96b
commit 14b986d23b

View File

@ -0,0 +1,16 @@
package me.fivevl.betterspigot
import net.md_5.bungee.api.ChatColor
/**
* @author 5vl
* @since 0.0.1
*/
object BetterText {
/**
* @return The color-translated string
*/
fun String.color(): String {
return ChatColor.translateAlternateColorCodes('&', this)
}
}