From c9ad6efb545f5a2d97900645abbff5c775c49d45 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Mon, 30 May 2022 12:43:32 -0300 Subject: [PATCH] re-enable the lua command in public servers --- .../BarotraumaServer/ServerSource/DebugConsole.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs index 3bb01cab5..b234495b0 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/DebugConsole.cs @@ -1243,12 +1243,6 @@ namespace Barotrauma commands.Add(new Command("lua", "lua: runs a string", (string[] args) => { - if (GameMain.Server.ServerSettings.IsPublic) - { - DebugConsole.ThrowError("The lua command has been disabled in public servers."); - return; - } - try { GameMain.LuaCs.Lua.DoString(string.Join(" ", args)); @@ -1260,12 +1254,6 @@ namespace Barotrauma })); commands.Add(new Command("cs", "cs: runs a string", (string[] args) => { - if (GameMain.Server.ServerSettings.IsPublic) - { - DebugConsole.ThrowError("The cs command has been disabled in public servers."); - return; - } - if (LuaCsSetup.GetPackage("CsForBarotrauma", false, true) == null) { return; } GameMain.LuaCs.CsScript.Run(string.Join(" ", args));