- Joined
- Nov 3, 2013
- Messages
- 609
- Thread Author
- #1
It's actually pretty simple, but here you go. I've updated it so that you no longer need a bat file.
Hope this helps some people with long running scripts, I'm personally going to be using it in my remote POP script.
Code:
public boolean reset(){
try {
ProcessBuilder pb = new ProcessBuilder(
"java -jar \"./RuneMate.jar\" -sdk -bot=" + getMetaData().getName() + " -account=RS account -login=username:password:RS3");
pb.directory(new File(new File("").getAbsolutePath()));
pb.inheritIO();
pb.start();
} catch (Exception e) {
e.printStackTrace();
return false;
}
System.exit(0);
return true;
}
Hope this helps some people with long running scripts, I'm personally going to be using it in my remote POP script.
Last edited: