mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 12:46:05 +01:00
Fix &h not being removed from the message properly
This commit is contained in:
parent
e2c357ccb0
commit
f936e1b869
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user