Improve config & console message for log deletion

This commit is contained in:
Govindas 2021-06-12 15:02:02 +03:00
parent f93bddcc1b
commit 743f9028b9
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