Package org.spoutcraft.launcher.skin.components.LoginFrame

Examples of org.spoutcraft.launcher.skin.components.LoginFrame.UserPasswordInformation


      Launcher.getGameUpdater().setMinecraftUser(values[2].trim());
      Launcher.getGameUpdater().setMinecraftSession(values[3].trim());
      Launcher.getGameUpdater().setDownloadTicket(values[1].trim());
      Launcher.getGameUpdater().setMinecraftPass(pass);

      UserPasswordInformation info = null;

      for (String username : loginFrame.usernames.keySet()) {
        if (username.equalsIgnoreCase(user)) {
          info = loginFrame.usernames.get(username);
          break;
        }
      }

      if (info != null) {
        if (user.contains("@")) {
          info.username = values[2].trim();
        } else {
          info.username = user;
        }
        info.password = pass;
      }

      loginFrame.onEvent(Event.SUCESSFUL_LOGIN);
      return true;
    } catch (AccountMigratedException e) {
      loginFrame.getProgressBar().setVisible(false);
      loginFrame.onEvent(Event.ACCOUNT_MIGRATED);
    } catch (BadLoginException e) {
      loginFrame.getProgressBar().setVisible(false);
      loginFrame.onEvent(Event.BAD_LOGIN);
    } catch (MinecraftUserNotPremiumException e) {
      loginFrame.onEvent(Event.USER_NOT_PREMIUM);
      loginFrame.getProgressBar().setVisible(false);
    } catch (PermissionDeniedException e) {
      loginFrame.onEvent(Event.PERMISSION_DENIED);
      this.cancel(true);
      loginFrame.getProgressBar().setVisible(false);
    } catch (MCNetworkException e) {
      UserPasswordInformation info = null;

      for (String username : loginFrame.usernames.keySet()) {
        if (username.equalsIgnoreCase(user)) {
          info = loginFrame.usernames.get(username);
          break;
View Full Code Here

TOP

Related Classes of org.spoutcraft.launcher.skin.components.LoginFrame.UserPasswordInformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.