Merge pull request #7851 from Mailaender/dedicated-console-log

Added status messages to console output for dedicated servers
This commit is contained in:
Pavel Penev
2015-06-25 01:45:49 +03:00
3 changed files with 41 additions and 37 deletions

View File

@@ -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)

View File

@@ -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() { }