adjust chat radius (normal chat 25 megaphone 50)

This commit is contained in:
hydrant
2021-04-15 19:10:57 +02:00
parent 97f827cd0a
commit 95ae4cd227
2 changed files with 2 additions and 2 deletions

View File

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