public void PrintReq(string text) { var player = State.Instance.GetPlayer(_sender); if (player.IsSpectator && _gameSettings.MuteSpectators) { player.Rpc.Error(L.D.ServerMessage__SpectatorsMuted); return; } _broadcaster.Print(player.Id, text); }
public void PrintReq(string text) { var player = State.Instance.GetPlayer(_sender); if (player.IsSpectator && _gameSettings.MuteSpectators) { player.Rpc.Error("You cannot chat, the host has muted spectators."); return; } _broadcaster.Print(player.Id, text); }
public void PrintReq(string text) { _broadcaster.Print(_clients[_sender].Id, text); }
public void PrintReq(string text) { _broadcaster.Print(State.Instance.GetPlayer(_sender).Id, text); }