Check for style or color when parsing fancy colors.
This commit is contained in:
parent
644e1ec8fb
commit
91877c9d59
@ -84,7 +84,11 @@ public class TextUtil {
|
||||
}
|
||||
if (text.length() > 0) {
|
||||
if (color != null) {
|
||||
if(color.isColor()) {
|
||||
message.then(text).color(color);
|
||||
} else {
|
||||
message.then(text).style(color);
|
||||
}
|
||||
} else {
|
||||
message.text(text);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user