Dedicated servers can use autorestart
This commit is contained in:
@@ -131,6 +131,14 @@ namespace Barotrauma
|
||||
GameMain.Server.EndGame();
|
||||
}));
|
||||
|
||||
commands.Add(new Command("autorestart", "autorestart: Toggle automatic round restarting on/off.", (string[] args) =>
|
||||
{
|
||||
if (GameMain.Server == null) return;
|
||||
|
||||
GameMain.Server.AutoRestart = !GameMain.Server.AutoRestart;
|
||||
NewMessage(GameMain.Server.AutoRestart ? "Automatic restart enabled." : "Automatic restart disabled.", Color.White);
|
||||
}));
|
||||
|
||||
commands.Add(new Command("entitydata", "", (string[] args) =>
|
||||
{
|
||||
if (args.Length == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user