private List<String> getSublist(String[] args, boolean server, org.bukkit.command.Command cmd) {
		List<String> list = new ArrayList<String>();
		String[] argC = args.clone();
		List<Command> subs = manager.matchCommands(cmd.getName(), server);
		List<String> direct;
		for(int i = args.length; i > -1; i--){
			direct = SubmenuManager.generateSubmenu(subs, argC);
			if(direct != null)
			if(direct.size() != 1){
				if(i == args.length) {
					return direct;
				} else {
					list.add(ChatColor.RED + "Invalid subcommand.");
					return list;
				}
			} else {
				argC = new String[argC.length - 1];
				for(int x = 0; x < argC.length; x++)
					argC[x] = args[x];
			}
		}
		return list;
	}