Improve config & console message for log deletion

This commit is contained in:
Govindas 2021-06-12 15:02:02 +03:00
parent 0b4e780347
commit 35cf19e0af
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ public final class AutomaticLogDeleter extends JavaPlugin {
if (!file.delete()) {
Bukkit.getLogger().log(Level.WARNING, "Failed to delete server log file! Are you sure the file permissions are correct?");
} else {
Bukkit.getLogger().log(Level.INFO, "Deleted log file " + file.getName());
}
}
}

View File

@ -2,6 +2,7 @@
#lines that start with a hashtag are comments
#delete logs older than 24 hours by default
#you can set it to -1 to simply delete all logs
#default value: 86400
delete-logs-older-than-seconds: 86400