Hmmm it keeps saying "Failed to check session lock, aborting".
I'm still getting the error. What would be the correct path to the world folder?
for(int i=0; i<files.length;i++){
Worked. :) I got a new exception though: java.lang.NullPointerException at...
Java 7, here's the code: public void delDir(File fl){ File[] files=fl.listFiles(); for(int i=0; i<files.length;i++){...
Hmm i have all of those. :/
Do you know what imports it uses?
Yes.
Ok one problem: The method copy(Path, Path, CopyOption...) in the type Files is not applicable for the arguments (Path, Path, StandardCopyOption)....
Lol here's what i've got: copyDir(new...
How do you express the PathToBackup? I tried ../../world_backup, but ../ isn't valid.
:D Do you know how i could access backup world directory?
Well the directory has to be empty in order for .delete() to work, so the rest of the code is meant to make sure it is empty or empty it out.
Ok here are my first versions of delDir and copyDir:(about to test them out) public void delDir(File fl){ if(fl.isDirectory()){...
Ok but what exactly does unloading a world do?
Separate names with a comma.