<> symbols are confusing

This commit is contained in:
Govindas 2021-06-15 10:04:57 +03:00
parent ffecfb86fd
commit bdb9177aa4
1 changed files with 3 additions and 3 deletions

View File

@ -51,14 +51,14 @@ public class AutomaticLogDeleter extends JavaPlugin {
} }
//if file is older than configured time //if file is older than configured time
if ((System.currentTimeMillis() - file.lastModified()) > maxOldMillis) { if ((System.currentTimeMillis() - file.lastModified()) < maxOldMillis) {
continue; continue;
} }
if (!file.delete()) { if (!file.delete()) {
Bukkit.getLogger().log(Level.WARNING, "[AutomaticLogDeleter] Failed to delete server log file! Are you sure the file permissions are correct?"); getLogger().log(Level.WARNING, "[AutomaticLogDeleter] Failed to delete server log file! Are you sure the file permissions are correct?");
} else { } else {
Bukkit.getLogger().log(Level.INFO, "[AutomaticLogDeleter] Deleted log file " + file.getName()); getLogger().log(Level.INFO, "[AutomaticLogDeleter] Deleted log file " + fileName);
} }
} }
} }