Search in sources :

Example 1 with PurgeManager

use of me.botsko.prism.purge.PurgeManager in project Prism-Bukkit by prism.

the class Prism method launchScheduledPurgeManager.

/**
 * Schedule the Purge manager.
 */
private void launchScheduledPurgeManager() {
    final List<String> purgeRules = getConfig().getStringList("prism.db-records-purge-rules");
    purgeManager = new PurgeManager(this, purgeRules);
    schedulePool.scheduleAtFixedRate(purgeManager, 0, 12, TimeUnit.HOURS);
}
Also used : PurgeManager(me.botsko.prism.purge.PurgeManager)

Aggregations

PurgeManager (me.botsko.prism.purge.PurgeManager)1