Check for style or color when parsing fancy colors.

This commit is contained in:
drtshock 2015-06-12 16:33:43 -05:00
parent 644e1ec8fb
commit 91877c9d59

View File

@ -84,7 +84,11 @@ public class TextUtil {
}
if (text.length() > 0) {
if (color != null) {
message.then(text).color(color);
if(color.isColor()) {
message.then(text).color(color);
} else {
message.then(text).style(color);
}
} else {
message.text(text);
}