Disable colored chat

This commit is contained in:
Jesse Boyd 2016-04-17 03:11:05 +10:00
parent 30a2c5d881
commit d34abf4f02

View File

@ -603,8 +603,8 @@ public class PlayerEvents extends PlotListener implements Listener {
}
}
}
String full = format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender).replace("%msg%", message);
full = ChatColor.translateAlternateColorCodes('&', full);
String partial = ChatColor.translateAlternateColorCodes('&',format.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender));
String full = partial.replace("%msg%", message);
for (Player receiver : recipients) {
receiver.sendMessage(full);
}