@Override
	public boolean onCommand(CommandEvent e)
	{
		if(e.getCommand().getName().equalsIgnoreCase("login") && e.getSender().getName().equalsIgnoreCase(logingPlayer.getName()))
		{
			if(e.getArgs().length > 1)
			{
				LanguageManager.sendText(PlayerManager.getPlayer(logingPlayer.getName()), "LoginManager_Login_NoSpaces");
				return true;
			}
			if(e.getArgs().length < 1)
			{
				LanguageManager.sendText(PlayerManager.getPlayer(logingPlayer.getName()), "LoginManager_Login_Syntax");
				return true;
			}
			MorgulPlugin.debug("Player login.");
			if(checkPassword(LoginManager.hashMD5(e.getArgs()[0])))
			{
				LanguageManager.sendText(PlayerManager.getPlayer(logingPlayer.getName()), "LoginManager_Login_Logged");
				PlayerManager.getPlayer(logingPlayer.getName()).setLogged(true);
				PlayerManager.removeLoginManager(this);
				CommandManager.removeListener("login", this);
				MorgulPlugin.debug("Player Loged.");
				ChatManager.acceptQuedMsgs(PlayerManager.getPlayer(logingPlayer.getName()));
				MorgulPlugin.debug("Player Accept Qued Msgs.");
				return true;
			}
			else
			{
				LanguageManager.sendText(PlayerManager.getPlayer(logingPlayer.getName()), "LoginManager_Login_WrongPass");
				return true;
			}
		}
		return false;
	}