示例#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();
   }
 }
示例#2
0
 public static String getIp() {
   return server.getIp();
 }