<> symbols are confusing
This commit is contained in:
parent
ffecfb86fd
commit
bdb9177aa4
@ -51,14 +51,14 @@ public class AutomaticLogDeleter extends JavaPlugin {
|
||||
}
|
||||
|
||||
//if file is older than configured time
|
||||
if ((System.currentTimeMillis() - file.lastModified()) > maxOldMillis) {
|
||||
if ((System.currentTimeMillis() - file.lastModified()) < maxOldMillis) {
|
||||
continue;
|
||||
}
|
||||
|
||||
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 {
|
||||
Bukkit.getLogger().log(Level.INFO, "[AutomaticLogDeleter] Deleted log file " + file.getName());
|
||||
getLogger().log(Level.INFO, "[AutomaticLogDeleter] Deleted log file " + fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user