public void launchOnServer(Server sv) {
   try {
     Runtime.getRuntime()
         .exec(
             "cmd.exe /C cd \""
                 + this.pathToCod4
                 + "\" && start iw3mp.exe connect "
                 + sv.getIp()
                 + ":"
                 + sv.getPort());
   } catch (IOException e) {
     System.out.println("Error launching the .exe");
     e.printStackTrace();
   }
 }
Beispiel #2
0
 public static String getIp() {
   return server.getIp();
 }