print server status messages to the console

This commit is contained in:
Matthias Mailänder
2015-04-04 08:50:02 +02:00
parent 6b20b3266d
commit 45dc314b23
2 changed files with 4 additions and 0 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() { }