Apply color stripping to player names in console wherever applicable. (#6672)
* utility method * plainName for all console outputs * plainLastName for all console outputs * some formats * slightly reformat trace output * Slightly nicer admin indicator * A space
This commit is contained in:
committed by
GitHub
parent
8ec2e40610
commit
580fcd1fbc
@@ -314,6 +314,10 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
|
||||
return "[#" + color.toString().toUpperCase() + "]" + name;
|
||||
}
|
||||
|
||||
String plainName(){
|
||||
return Strings.stripColors(name);
|
||||
}
|
||||
|
||||
void sendMessage(String text){
|
||||
if(isLocal()){
|
||||
if(ui != null){
|
||||
|
||||
Reference in New Issue
Block a user