From 45dc314b231c4cc7138100185ef9e4ba4bbbd4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 4 Apr 2015 08:50:02 +0200 Subject: [PATCH] print server status messages to the console --- OpenRA.Game/Server/Server.cs | 3 +++ OpenRA.Game/Settings.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 2d0f117e81..9970f1339a 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -450,6 +450,9 @@ namespace OpenRA.Server public void SendMessage(string text) { DispatchOrdersToClients(null, 0, new ServerOrder("Message", text).Serialize()); + + if (Settings.Dedicated) + Console.WriteLine("[{0}] {1}".F(DateTime.Now.ToString(Settings.TimestampFormat), text)); } void InterpretServerOrder(Connection conn, ServerOrder so) diff --git a/OpenRA.Game/Settings.cs b/OpenRA.Game/Settings.cs index cc2a4c7889..c2de62e201 100644 --- a/OpenRA.Game/Settings.cs +++ b/OpenRA.Game/Settings.cs @@ -39,6 +39,7 @@ namespace OpenRA public bool DedicatedLoop = true; public bool LockBots = false; public bool AllowVersionMismatch = false; + public string TimestampFormat = "HH:mm"; public ServerSettings() { }