private static void PruneDBHandler( Player player, Command cmd )
{
if ( !cmd.IsConfirmed ) {
player.MessageNow( "PruneDB: Finding inactive players..." );
int inactivePlayers = PlayerDB.CountInactivePlayers();
if ( inactivePlayers == 0 ) {
player.Message( "PruneDB: No inactive players found." );
} else {
player.Confirm( cmd, "PruneDB: Erase {0} records of inactive players?",
inactivePlayers );
}
} else {
Scheduler.NewBackgroundTask( PruneDBTask, player ).RunOnce();
}
}