public boolean editVariable(String[] args, CommandSender sender) {
		String groupName = plugin.groups.searchInGroups(args[1]);
		List<String> variableResult = new ArrayList<String>();
		int counter = 3;
		String resultString = "";
		String variable = args[2].toLowerCase();
		
		if (groupName == null) {
			sender.sendMessage(ChatColor.RED + "Group '" + args[1] + "' is not defined!");
			return false;
		}
		if (!plugin.CommandExecutor.hasPermission("staffinfo.groups.edit." + groupName, sender)) return true;
		
		if (plugin.getConfig().get("Groups." + groupName + "." + variable) == null) {
			sender.sendMessage(ChatColor.RED + "'" + variable + "' is not a valid variable!");
			return false;
		}
		
		if (variable.equalsIgnoreCase("members")) {
			sender.sendMessage(ChatColor.RED + "The member variable cannot be changed this way!");
			sender.sendMessage(ChatColor.BLUE + "Use /staff add <playername> <groupname> to add someone to members!");
			return false;
		}
		
		for (int i=0;i<(args.length - 3);i++) {
			variableResult.add(args[counter]);
			++counter;
		}
		for (int i=0;i<variableResult.size();i++) {
			if (i == 0) {
				resultString = resultString.concat(variableResult.get(i));
			}
			else {
				resultString = resultString.concat(" " + variableResult.get(i));
			}
		}
		if (variable.equalsIgnoreCase("visible")) {
			if (resultString.equalsIgnoreCase("true")) {
				plugin.getConfig().set("Groups." + groupName + "." + variable, true);
				resultString = "true";
			}
			else {
				plugin.getConfig().set("Groups." + groupName + "." + variable, false);
				resultString = "false";
			}
		}
		else {
			plugin.getConfig().set("Groups." + groupName + "." + variable, resultString);
		}
		plugin.saveConfig();
		plugin.reloadConfig();
		
		sender.sendMessage(ChatColor.GREEN + variable + " of " + groupName + " has been set to: '" + resultString + "'.");
		return true;
	}