diff options
| author | Michael <[email protected]> | 2017-06-10 10:17:10 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-10 10:17:15 -0400 |
| commit | c40d071d58859e25b3781299b949b91caa0548fe (patch) | |
| tree | d26956e6a06336af403e05cfe0ace0e50ff1b6ea /ShiftOS_TheReturn/ServerManager.cs | |
| parent | 7dd109719be8a9e8b52655665f490f4f7956df80 (diff) | |
| download | shiftos_thereturn-c40d071d58859e25b3781299b949b91caa0548fe.tar.gz shiftos_thereturn-c40d071d58859e25b3781299b949b91caa0548fe.tar.bz2 shiftos_thereturn-c40d071d58859e25b3781299b949b91caa0548fe.zip | |
main menu system + sandbox mode
Diffstat (limited to 'ShiftOS_TheReturn/ServerManager.cs')
| -rw-r--r-- | ShiftOS_TheReturn/ServerManager.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs index 1439c0d..be4f086 100644 --- a/ShiftOS_TheReturn/ServerManager.cs +++ b/ShiftOS_TheReturn/ServerManager.cs @@ -302,15 +302,17 @@ Ping: {ServerManager.DigitalSocietyPing} ms /// <param name="contents">The message body</param> public static void SendMessage(string name, string contents) { - var sMsg = new ServerMessage + if (!SaveSystem.IsSandbox) { - Name = name, - Contents = contents, - GUID = thisGuid.ToString(), - }; - PingTimer.Start(); - client.Send(new NetObject("msg", sMsg)); - + var sMsg = new ServerMessage + { + Name = name, + Contents = contents, + GUID = thisGuid.ToString(), + }; + PingTimer.Start(); + client.Send(new NetObject("msg", sMsg)); + } } private static bool singleplayer = false; |
