No more gross errors.

This commit is contained in:
Brianna 2019-10-08 11:34:42 -04:00
parent 3b8c317476
commit ed0498ca46

View File

@ -108,7 +108,8 @@ public class StorageYaml extends Storage {
File data = new File(plugin.getDataFolder(), "data.yml");
File dataClone = new File(plugin.getDataFolder(), "data-backup-" + System.currentTimeMillis() + ".yml");
try {
copyFile(data, dataClone);
if (data.exists())
copyFile(data, dataClone);
} catch (IOException e) {
e.printStackTrace();
}