ChatService.Error -> ErrorMessage

This commit is contained in:
hydrant
2019-05-23 11:40:55 +02:00
parent e133731698
commit 993f9972cd
11 changed files with 98 additions and 93 deletions

View File

@@ -10,7 +10,10 @@ namespace ReallifeGamemode.Server.Events
{
string serverMsg = Regex.Replace(message, "(~[a-zA-Z]~{1})|(!{(.*)})", "");
if (serverMsg.Trim().Length == 0) return;
NAPI.Player.GetPlayersInRadiusOfPlayer(10, player).ForEach(p => p.SendChatMessage($"{player.Name} sagt: {serverMsg}"));
NAPI.Player.GetPlayersInRadiusOfPlayer(10, player).ForEach(p =>
{
p.SendChatMessage($"{player.Name} sagt: {serverMsg}");
});
}
}
}