fixed path appropriately for saves.

This commit is contained in:
Frostalf 2018-11-15 00:11:29 -08:00
parent 68185f8b26
commit a31d827d84

View File

@ -67,8 +67,8 @@ public class StorageYaml extends Storage {
try {
dataFile.getConfig().set("data", null); // Clear file
File data = new File(instance.getDataFolder() + "/data.yml");
File dataClone = new File(instance.getDataFolder() + "/data-backup-" + System.currentTimeMillis() + ".yml");
File data = new File(instance.getDataFolder(), "data.yml");
File dataClone = new File(instance.getDataFolder(), "data-backup-" + System.currentTimeMillis() + ".yml");
try {
FileUtils.copyFile(data, dataClone);
} catch (IOException e) {