From 91877c9d59dec68b21653216c3dca9791d090316 Mon Sep 17 00:00:00 2001 From: drtshock Date: Fri, 12 Jun 2015 16:33:43 -0500 Subject: [PATCH] Check for style or color when parsing fancy colors. --- .../java/com/massivecraft/factions/zcore/util/TextUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/util/TextUtil.java b/src/main/java/com/massivecraft/factions/zcore/util/TextUtil.java index d5dfc829..1b1c9de6 100644 --- a/src/main/java/com/massivecraft/factions/zcore/util/TextUtil.java +++ b/src/main/java/com/massivecraft/factions/zcore/util/TextUtil.java @@ -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); }