public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
		args = CommandLineTokenizer.tokenize(args);

		if (sender instanceof Player) {
			xAuthPlayer p = plugin.getPlyrMngr().getPlayer((Player) sender);

			if ((plugin.getConfig().getBoolean("registration.require-email") && args.length < 2) || args.length < 1) {
				plugin.getMsgHndlr().sendMessage("register.usage", p.getPlayer());
				return true;
			}

			String playerName = p.getPlayerName();
			String password = args[0];
			String email = args.length > 1 ? args[1] : null;

			Auth a = plugin.getAuthClass(p);
			boolean success = a.register(playerName, password, email);

			String response = a.getResponse();
			if (response != null)
				plugin.getMsgHndlr().sendMessage(response, p.getPlayer());

			if (success) {
				if (!plugin.getConfig().getBoolean("registration.require-login"))
					plugin.getPlyrMngr().doLogin(p);

				xAuthLog.info(playerName + " has registered");
			}

			return true;
		}

		return false;
	}