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

@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Events
[ServerEvent(Event.ChatMessage)]
public void ChatEvent(Client player, string message)
{
string serverMsg = Regex.Replace(message, "(~[a-zA-Z]~{1})|(!{(.*)})", "");
string serverMsg = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", "");
if (serverMsg.Trim().Length == 0) return;
NAPI.Player.GetPlayersInRadiusOfPlayer(10, player).ForEach(p =>
{