Disable colored chat

This commit is contained in:
Jesse Boyd 2016-04-17 03:11:05 +10:00 committed by MattBDev
parent 7c12a20a2b
commit 10bf03f81b

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);
}