improve color code removing in normal chat

This commit is contained in:
hydrant
2019-06-26 16:49:56 +02:00
parent c8155074d3
commit 8125ba673e
4 changed files with 27 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ namespace ReallifeGamemode.Server.Commands
return;
}
message = Regex.Replace(message, "(~[a-zA-Z]~{1})|(!{(.*)})", "");
message = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", "");
message = $"{player.Name}: {message}";
ChatService.BroadcastGroup(message, group);