@Override public void run(int connId,String[] args){
  if (!canRunRestrictedCommand(connId)) {
    server.sendServerChat(connId,"Observers are restricted from loading games.");
    return;
  }
  if (args.length > 1) {
    String sFinalFile=args[1];
    if (!sFinalFile.endsWith(".sav") && !sFinalFile.endsWith(".sav.gz")) {
      sFinalFile=sFinalFile + ".sav";
    }
    if (!sFinalFile.endsWith(".gz")) {
      sFinalFile=sFinalFile + ".gz";
    }
    load(new File("savegames",sFinalFile),connId);
  }
 else {
    server.sendServerChat(connId,"you must provide a file name");
  }
}

@ Override public void run ( int connId , String [ ] args ) { if ( ! canRunRestrictedCommand ( connId ) ) { server . sendServerChat ( connId , "Observers are restricted from loading games." ) ; return ; } if ( args . length > 1 ) { String sFinalFile = args [ 1 ] ; if ( ! sFinalFile . endsWith ( ".sav" ) && ! sFinalFile . endsWith ( ".sav.gz" ) ) { sFinalFile = sFinalFile + ".sav" ; } if ( ! sFinalFile . endsWith ( ".gz" ) ) { sFinalFile = sFinalFile + ".gz" ; } load ( new File ( "savegames" , sFinalFile ) , connId ) ; } else { server . sendServerChat ( connId , "you must provide a file name" ) ; } }
run this command with the arguments supplied
