/*     */   public static void main(String[] paramArrayOfString) {
/*     */     try {
/* 159 */       UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
/*     */     }
/*     */     catch (Exception localException) {
/*     */     }
/* 163 */     
/* 164 */     System.setProperty("java.net.preferIPv4Stack", "true");
/* 165 */     System.setProperty("java.net.preferIPv6Addresses", "false");
/*     */ 
/* 167 */     LauncherFrame localLauncherFrame = new LauncherFrame();
/* 168 */     localLauncherFrame.setVisible(true);
/* 169 */     localLauncherFrame.customParameters.put("stand-alone", "true");
/*     */ 
/* 171 */     String str1 = null;
/* 172 */     String str2 = null;
/*     */ 
/* 174 */     for (String str4 : paramArrayOfString) {
/* 175 */       if ((str4.startsWith("-u=")) || (str4.startsWith("--user="))) {
/* 176 */         str1 = getArgValue(str4);
/* 177 */         localLauncherFrame.customParameters.put("username", str1);
/* 178 */         localLauncherFrame.loginForm.userName.setText(str1);
/* 179 */       } else if ((str4.startsWith("-p=")) || (str4.startsWith("--password="))) {
/* 180 */         str2 = getArgValue(str4);
/* 181 */         localLauncherFrame.customParameters.put("password", str2);
/* 182 */         localLauncherFrame.loginForm.password.setText(str2);
/* 183 */       } else if (str4.startsWith("--noupdate")) {
/* 184 */         localLauncherFrame.customParameters.put("noupdate", "true");
/*     */       }
/*     */     }
/*     */ 
/* 188 */     if (paramArrayOfString.length >= 3) {
/* 189 */       String AAA = paramArrayOfString[2];
/* 190 */       String str3 = "25565";
/* 191 */       if (((String)AAA).contains(":")) {
/* 192 */         String[] arrayOfString = ((String)AAA).split(":");
/* 193 */         AAA = arrayOfString[0];
/* 194 */         str3 = arrayOfString[1];
/*     */       }
/*     */ 
/* 197 */       localLauncherFrame.customParameters.put("server", AAA);
/* 198 */       localLauncherFrame.customParameters.put("port", str3);
/*     */     }
/*     */   }