mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Fix uppercase color codes
This commit is contained in:
parent
c29676e4fc
commit
5ae2e24c84
@ -42,12 +42,12 @@ public class TextComponent extends BaseComponent
|
|||||||
{
|
{
|
||||||
i++;
|
i++;
|
||||||
c = message.charAt( i );
|
c = message.charAt( i );
|
||||||
ChatColor format = ChatColor.getByChar( c );
|
|
||||||
if ( format == null ) continue;
|
|
||||||
if ( c >= 'A' && c <= 'Z' )
|
if ( c >= 'A' && c <= 'Z' )
|
||||||
{
|
{
|
||||||
c += 32;
|
c += 32;
|
||||||
}
|
}
|
||||||
|
ChatColor format = ChatColor.getByChar( c );
|
||||||
|
if ( format == null ) continue;
|
||||||
if ( builder.length() > 0 )
|
if ( builder.length() > 0 )
|
||||||
{
|
{
|
||||||
TextComponent old = component;
|
TextComponent old = component;
|
||||||
|
Loading…
Reference in New Issue
Block a user