Package net.craftions.api.color
Class ColorCode
- java.lang.Object
-
- net.craftions.api.color.ColorCode
-
public class ColorCode extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static HashMap<String,String>
replacements
protected static HashMap<String,String>
replacementsReversed
-
Constructor Summary
Constructors Constructor Description ColorCode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
from(String text)
Reformats a text (changes §- color codes to &-color codes)protected static void
initMap()
Inits the color code mapstatic String
to(String text)
Reformats a text (changes &-color codes to §-color codes)
-