Use WorkshopId instead and minor cleanup
This commit is contained in:
@@ -3278,7 +3278,7 @@ namespace Barotrauma
|
||||
const string CMD_CL_CS = "cl_cs";
|
||||
commands.Add(new Command(CMD_CL_CS, $"{CMD_CL_CS}: runs a string on the client", (string[] args) =>
|
||||
{
|
||||
if (LuaCsSetup.GetPackage("CsForBarotrauma", false, true) == null) { return; }
|
||||
if (LuaCsSetup.GetPackage(LuaCsSetup.CsForBarotraumaId, false, true) == null) { return; }
|
||||
|
||||
if (GameMain.Client != null && !GameMain.Client.HasPermission(ClientPermissions.ConsoleCommands))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user