Esempio n. 1
0
 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();
   }
 }
Esempio n. 2
0
 public static String getIp() {
   return server.getIp();
 }