Fix &h not being removed from the message properly

This commit is contained in:
lol768 2012-10-22 12:43:18 +02:00 committed by md_5
parent e2c357ccb0
commit f936e1b869

View File

@ -26,17 +26,16 @@ public class CommandAlert extends Command
{
builder.append(ChatColor.DARK_PURPLE);
builder.append("[Alert] "); //No space at start.
} else
{
args[0].replaceAll("&h", ""); //Remove hide control code from message
}
for (String s : args)
{
s = s.replaceAll("&h", ""); //Fix replace
builder.append(ChatColor.translateAlternateColorCodes('&', s)); //Allow custom colours
builder.append(" ");
}
String message = builder.substring(0, builder.length() - 1);
for (UserConnection con : BungeeCord.instance.connections.values())
{