public void Add(Command cmd)
{
commands.Add(cmd);
}
public static void AddCommands(out CommandList commands, LevelPermission perm) { commands = new CommandList(); foreach (rankAllowance aV in allowedCommands) { if ((aV.lowestRank <= perm && !aV.disallow.Contains(perm)) || aV.allow.Contains(perm)) { commands.Add(Command.all.Find(aV.commandName)); } } }