Merge pull request #7851 from Mailaender/dedicated-console-log
Added status messages to console output for dedicated servers
This commit is contained in:
@@ -450,6 +450,9 @@ namespace OpenRA.Server
|
|||||||
public void SendMessage(string text)
|
public void SendMessage(string text)
|
||||||
{
|
{
|
||||||
DispatchOrdersToClients(null, 0, new ServerOrder("Message", text).Serialize());
|
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)
|
void InterpretServerOrder(Connection conn, ServerOrder so)
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ namespace OpenRA
|
|||||||
public bool DedicatedLoop = true;
|
public bool DedicatedLoop = true;
|
||||||
public bool LockBots = false;
|
public bool LockBots = false;
|
||||||
public bool AllowVersionMismatch = false;
|
public bool AllowVersionMismatch = false;
|
||||||
|
public string TimestampFormat = "HH:mm";
|
||||||
|
|
||||||
public ServerSettings() { }
|
public ServerSettings() { }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user