private void OnCancellation()
{
if ( AnnounceCompletion ) {
if ( BlocksDenied > 0 ) {
Player.Message( "{0}: Cancelled after {1}. Processed {2}, updated {3}. Skipped {4} due to permission issues.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString(),
BlocksProcessed, BlocksUpdated, BlocksDenied );
} else {
Player.Message( "{0}: Cancelled after {1}. Processed {2} blocks, updated {3} blocks.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString(),
BlocksProcessed, BlocksUpdated );
}
}
if ( LogCompletion && Map.World != null ) {
Logger.Log( LogType.UserActivity,
"Player {0} cancelled {1} on world {2}. Processed {3}, Updated {4}, Skipped {5}, Denied {6} blocks.",
Player, Description, Map.World.Name,
BlocksProcessed, BlocksUpdated, BlocksSkipped, BlocksDenied );
}
}