private void OnCompletion()
{
if ( AnnounceCompletion ) {
if ( BlocksUpdated > 0 ) {
if ( BlocksDenied > 0 ) {
Player.Message( "{0}: Finished in {1}, updated {2} blocks. &WSkipped {3} blocks due to permission issues.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString(),
BlocksUpdated, BlocksDenied );
} else {
Player.Message( "{0}: Finished in {1}, updated {2} blocks.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString(),
BlocksUpdated );
}
} else {
if ( BlocksDenied > 0 ) {
Player.Message( "{0}: Finished in {1}, no changes made. &WSkipped {2} blocks due to permission issues.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString(),
BlocksDenied );
} else {
Player.Message( "{0}: Finished in {1}, no changes needed.",
Description,
DateTime.UtcNow.Subtract( StartTime ).ToMiniString() );
}
}
}
if ( AnnounceCompletion && Map.World != null ) {
Logger.Log( LogType.UserActivity,
"Player {0} executed {1} on world {2} (between {3} and {4}). Processed {5}, Updated {6}, Skipped {7}, Denied {8} blocks.",
Player.Name, Description, Map.World.Name,
Bounds.MinVertex, Bounds.MaxVertex,
BlocksProcessed, BlocksUpdated, BlocksSkipped, BlocksDenied );
}
}