private static void DrawingFinished( [NotNull] Player player, string verb, int blocks, int blocksDenied )
{
if ( player == null )
throw new ArgumentNullException( "player" );
if ( blocks == 0 ) {
if ( blocksDenied > 0 ) {
player.MessageNow( "No blocks could be {0} due to permission issues.", verb.ToLower() );
} else {
player.MessageNow( "No blocks were {0}.", verb.ToLower() );
}
} else {
if ( blocksDenied > 0 ) {
player.MessageNow( "{0} {1} blocks ({2} blocks skipped due to permission issues)... " +
"The map is now being updated.", verb, blocks, blocksDenied );
} else {
player.MessageNow( "{0} {1} blocks... The map is now being updated.", verb, blocks );
}
}
if ( blocks > 0 ) {
player.Info.ProcessDrawCommand( blocks );
Server.RequestGC();
}
}