From 5ae2e24c8467568578574cfe3888a362cd9ec0b4 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Sat, 15 Mar 2014 20:19:48 +0100 Subject: [PATCH] Fix uppercase color codes --- api/src/main/java/net/md_5/bungee/api/chat/TextComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/chat/TextComponent.java b/api/src/main/java/net/md_5/bungee/api/chat/TextComponent.java index c4dbb640b..393394eef 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/TextComponent.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/TextComponent.java @@ -42,12 +42,12 @@ public class TextComponent extends BaseComponent { i++; c = message.charAt( i ); - ChatColor format = ChatColor.getByChar( c ); - if ( format == null ) continue; if ( c >= 'A' && c <= 'Z' ) { c += 32; } + ChatColor format = ChatColor.getByChar( c ); + if ( format == null ) continue; if ( builder.length() > 0 ) { TextComponent old = component;