use player name when sending chat messages

This commit is contained in:
in0finite 2021-07-24 00:27:59 +02:00
parent ae3ee460c8
commit 12d13392c1

View file

@ -77,7 +77,7 @@ namespace SanAndreasUnity.Chat
if (!FilterWithPreprocessors(player, ref msg))
return;
SendChatMessageToAllPlayersAsServer(msg, "player " + player.netId);
SendChatMessageToAllPlayersAsServer(msg, player.PlayerName);
}
internal void OnChatMessageReceivedOnLocalPlayer(ChatMessage chatMsg)