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:
TranquillyUnpleasant
2022-03-28 16:09:01 +02:00
committed by GitHub
parent 8ec2e40610
commit 580fcd1fbc
5 changed files with 36 additions and 28 deletions

View File

@@ -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){