Improve config & console message for log deletion
This commit is contained in:
parent
0b4e780347
commit
35cf19e0af
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user