Saving & loading client console command permissions, the permissions are saved as an xml file

This commit is contained in:
Joonas Rikkonen
2017-12-06 14:04:35 +02:00
parent 0840a29ff3
commit 91a8e6d0c6
3 changed files with 97 additions and 15 deletions
@@ -1135,6 +1135,12 @@ namespace Barotrauma
return true;
}
public static Command FindCommand(string commandName)
{
commandName = commandName.ToLowerInvariant();
return commands.Find(c => c.names.Any(n => n.ToLowerInvariant() == commandName));
}
public static void Log(string message)
{