One more tweak.

This commit is contained in:
GJ 2012-05-01 01:43:00 -04:00
parent 3bd5aaa251
commit 97511be64a

View File

@ -15,14 +15,14 @@ import java.util.zip.ZipOutputStream;
import com.gmail.nossr50.mcMMO;
public class ZipLibrary {
private static String BackupDirectory = mcMMO.mainDirectory + "backup";
private static File BackupDir = new File(BackupDirectory);
private static File FlatFileDirectory = new File(mcMMO.flatFileDirectory);
private static File UsersFile = new File(mcMMO.usersFile);
private static File ConfigFile = new File(mcMMO.mainDirectory + "config.yml");
private static File Leaderboards = new File(mcMMO.leaderboardDirectory);
public static void mcMMObackup() throws IOException {
if (BackupDir.mkdir()) {
try {
@ -74,7 +74,7 @@ public class ZipLibrary {
return file;
}
else {
return path + "/" + file;
return path + File.separator + file;
}
}