Check for style.
This commit is contained in:
parent
91877c9d59
commit
fbbf352120
@ -71,7 +71,11 @@ public class TextUtil {
|
|||||||
for (int i = 0; i < chars.length; i++) {
|
for (int i = 0; i < chars.length; i++) {
|
||||||
if (chars[i] == '§') {
|
if (chars[i] == '§') {
|
||||||
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);
|
||||||
|
}
|
||||||
text = "";
|
text = "";
|
||||||
color = ChatColor.getByChar(chars[i + 1]);
|
color = ChatColor.getByChar(chars[i + 1]);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user