From ff55140ce3b6b67e827a879023a2dbc011780fbe Mon Sep 17 00:00:00 2001 From: Alex Noir Date: Thu, 14 Dec 2017 19:07:53 +0300 Subject: [PATCH] Revert "forgot to remove the console command for karma" This reverts commit 04707232ded447a94f6c92ee8543ef6483ea9f2b. --- Barotrauma/BarotraumaShared/Source/DebugConsole.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs index 237718d75..15b2e7ffa 100644 --- a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs @@ -419,6 +419,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;