General cleanup of everything I can see right now
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user