mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
One more tweak.
This commit is contained in:
parent
3bd5aaa251
commit
97511be64a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user