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 (text.length() > 0) {
if (color != null) { if (color != null) {
if(color.isColor()) {
message.then(text).color(color); message.then(text).color(color);
} else {
message.then(text).style(color);
}
} else { } else {
message.text(text); message.text(text);
} }