public void SendOOC(IPlayerSession player, string message) { var msg = _netManager.CreateNetMessage <MsgChatMessage>(); msg.Channel = ChatChannel.OOC; msg.Message = message; msg.MessageWrap = $"OOC: {player.SessionId}: {{0}}"; _netManager.ServerSendToAll(msg); _mommiLink.SendOOCMessage(player.SessionId.ToString(), message); }
public void SendOOC(IPlayerSession player, string message) { // Check if message exceeds the character limi if (message.Length > MaxMessageLength) { DispatchServerMessage(player, Loc.GetString(MaxLengthExceededMessage, MaxMessageLength)); return; } var msg = _netManager.CreateNetMessage <MsgChatMessage>(); msg.Channel = ChatChannel.OOC; msg.Message = message; msg.MessageWrap = $"OOC: {player.SessionId}: {{0}}"; _netManager.ServerSendToAll(msg); _mommiLink.SendOOCMessage(player.SessionId.ToString(), message); }