mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-30 20:54:44 +02:00
Added automatic cleanup of backups folder
By default mcMMO keeps the following files: * All files from the last 24 hours * Daily backups of the past week * Weekly backups of the past months Adds #1574
This commit is contained in:
@ -32,6 +32,7 @@ import com.gmail.nossr50.locale.LocaleLoader;
|
||||
import com.gmail.nossr50.metrics.MetricsManager;
|
||||
import com.gmail.nossr50.party.PartyManager;
|
||||
import com.gmail.nossr50.runnables.SaveTimerTask;
|
||||
import com.gmail.nossr50.runnables.backups.CleanBackupsTask;
|
||||
import com.gmail.nossr50.runnables.database.UserPurgeTask;
|
||||
import com.gmail.nossr50.runnables.party.PartyAutoKickTask;
|
||||
import com.gmail.nossr50.runnables.player.PowerLevelUpdatingTask;
|
||||
@ -222,6 +223,8 @@ public class mcMMO extends JavaPlugin {
|
||||
getLogger().severe(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
new CleanBackupsTask().runTaskAsynchronously(mcMMO.p);
|
||||
}
|
||||
|
||||
debug("Was disabled."); // How informative!
|
||||
|
Reference in New Issue
Block a user