private boolean isValidPass(String pass) {
		String pattern = "(";

		if (plugin.getConfig().getBoolean("password.complexity.lowercase"))
			pattern += "(?=.*[a-z])";

		if (plugin.getConfig().getBoolean("password.complexity.uppercase"))
			pattern += "(?=.*[A-Z])";

		if (plugin.getConfig().getBoolean("password.complexity.number"))
			pattern += "(?=.*\\d)";

		if (plugin.getConfig().getBoolean("password.complexity.symbol"))
			pattern += "(?=.*\\W)";

		pattern += ".{" + plugin.getConfig().getInt("password.min-length") + ",})";
		Pattern p = Pattern.compile(pattern);
		Matcher matcher = p.matcher(pass);
		return matcher.matches();
	}