mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +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;
|
import com.gmail.nossr50.mcMMO;
|
||||||
|
|
||||||
public class ZipLibrary {
|
public class ZipLibrary {
|
||||||
|
|
||||||
private static String BackupDirectory = mcMMO.mainDirectory + "backup";
|
private static String BackupDirectory = mcMMO.mainDirectory + "backup";
|
||||||
private static File BackupDir = new File(BackupDirectory);
|
private static File BackupDir = new File(BackupDirectory);
|
||||||
private static File FlatFileDirectory = new File(mcMMO.flatFileDirectory);
|
private static File FlatFileDirectory = new File(mcMMO.flatFileDirectory);
|
||||||
private static File UsersFile = new File(mcMMO.usersFile);
|
private static File UsersFile = new File(mcMMO.usersFile);
|
||||||
private static File ConfigFile = new File(mcMMO.mainDirectory + "config.yml");
|
private static File ConfigFile = new File(mcMMO.mainDirectory + "config.yml");
|
||||||
private static File Leaderboards = new File(mcMMO.leaderboardDirectory);
|
private static File Leaderboards = new File(mcMMO.leaderboardDirectory);
|
||||||
|
|
||||||
public static void mcMMObackup() throws IOException {
|
public static void mcMMObackup() throws IOException {
|
||||||
if (BackupDir.mkdir()) {
|
if (BackupDir.mkdir()) {
|
||||||
try {
|
try {
|
||||||
@ -74,7 +74,7 @@ public class ZipLibrary {
|
|||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return path + "/" + file;
|
return path + File.separator + file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user