Do a bit more cleanup, and shuffle a few things around

This commit is contained in:
Joshua Popoff
2014-05-06 22:37:48 -07:00
parent faa4a45ba9
commit 2e429ceb21
9 changed files with 71 additions and 57 deletions
@@ -241,7 +241,7 @@ public class UUIDVaultManager {
public void saveFile(UUID holder, YamlConfiguration yaml) throws IOException {
File file = new File(directory, holder.toString() + ".yml");
if (file.exists()) {
file.renameTo(new File(directory, "backups" + File.separator + holder.toString() + ".yml"));
file.renameTo(new File(PlayerVaults.getInstance().getBackupsFolder(), holder.toString() + ".yml"));
}
yaml.save(file);
}