protected boolean validArgs(CommandSender sender, String maincmd, String[] args)
	{
		String[] messages = null;
		if (args.length - 1 < minArgs || args.length - 1 > maxArgs)
		{
			messages = new String[2];

			messages[0] = ChatColor.RED + "Too " + (args.length - 1 < minArgs ? "few" : "many") + " arguments." + ChatColor.YELLOW + " Use like this:";
			messages[1] = String.format(getUsage(), ChatColor.AQUA.toString(), maincmd, args[0], ChatColor.DARK_AQUA.toString());

			sender.sendMessage(messages);
			return false;
		}
		
		String argString = "";
		for (int i = 1; i < args.length; ++i)
		{
			args[i] = args[i].trim();
			if (argString.length() != 0)
				argString += " ";
			argString += args[i];
		}
		
		if (!argFormat.matcher(argString).matches())
		{
			messages = new String[2];

			messages[0] = ChatColor.RED + "Invalid arguments." + ChatColor.YELLOW + " Use like this:";
			messages[1] = String.format(getUsage(), ChatColor.AQUA.toString(), maincmd, args[0], ChatColor.DARK_AQUA.toString());

			sender.sendMessage(messages);
			return false;
		}
		return true;
	}