Dummy commands instead of dropping unknown cmds

AddCommand now replaces commands for connected players and saved perms
This commit is contained in:
Qowyn
2022-03-08 18:00:30 +01:00
parent 245619ab72
commit 2237aaafb3
2 changed files with 16 additions and 2 deletions
@@ -489,8 +489,7 @@ namespace Barotrauma.Networking
DebugConsole.Command command = DebugConsole.FindCommand(commandName);
if (command == null)
{
DebugConsole.ThrowError("Error in " + ClientPermissionsFile + " - \"" + commandName + "\" is not a valid console command.");
continue;
command = new DebugConsole.Command(commandName, "", (_) => {}, null, true);
}
permittedCommands.Add(command);