Added a console command for changing the server password. Closes #325

This commit is contained in:
Joonas Rikkonen
2018-03-07 17:26:42 +02:00
parent b9287beed2
commit a43b8dc278
2 changed files with 13 additions and 2 deletions
@@ -197,6 +197,12 @@ namespace Barotrauma
NewMessage("***************", Color.Cyan);
}));
commands.Add(new Command("setpassword|setserverpassword", "setpassword [password]: Changes the password of the server that's being hosted.", (string[] args) =>
{
if (GameMain.Server == null || args.Length == 0) return;
GameMain.Server.SetPassword(args[0]);
}));
commands.Add(new Command("createfilelist", "", (string[] args) =>
{
UpdaterUtil.SaveFileList("filelist.xml");