General cleanup of everything I can see right now

This commit is contained in:
Joshua Popoff
2014-05-05 12:53:26 -07:00
parent 99d74afa24
commit b5ef633105
14 changed files with 59 additions and 105 deletions
@@ -13,10 +13,9 @@ public class Cleanup extends BukkitRunnable {
this.diff = diff * 86400;
}
@Override
public void run() {
File file = new File(PlayerVaults.getInstance().getDataFolder(), "vaults");
File file = PlayerVaults.getInstance().getVaultData();
if (!file.exists()) return;
long time = System.currentTimeMillis();
@@ -18,7 +18,7 @@ public final class UUIDConversion extends BukkitRunnable {
@Override
public void run() {
File newDir = new File(PlayerVaults.getInstance().getDataFolder(), "uuidvaults");
File newDir = PlayerVaults.getInstance().getVaultData();
if (newDir.exists()) {
PlayerVaults.getInstance().getLogger().log(Level.INFO, "Files already converted to UUID.");
return;
@@ -38,7 +38,7 @@ public final class UUIDConversion extends BukkitRunnable {
}
UUID uuid = player.getUniqueId();
File newFile = new File(PlayerVaults.getInstance().getDataFolder(), "uuidvaults" + File.separator + uuid.toString() + ".yml");
File newFile = new File(PlayerVaults.getInstance().getVaultData(), uuid.toString() + ".yml");
file.mkdirs();
try {
Files.copy(file, newFile);