Added the option to disable karma

This commit is contained in:
juanjp600
2017-12-04 20:52:25 -03:00
parent ca30b901a6
commit e69e316f6b
3 changed files with 27 additions and 4 deletions
@@ -408,6 +408,12 @@ namespace Barotrauma
});
}));
commands.Add(new Command("togglekarma", "togglekarma: Toggles the karma system.", (string[] args) =>
{
if (GameMain.Server == null) return;
GameMain.Server.KarmaEnabled = !GameMain.Server.KarmaEnabled;
}));
commands.Add(new Command("kick", "kick [name]: Kick a player out of the server.", (string[] args) =>
{
if (GameMain.NetworkMember == null || args.Length == 0) return;