fCraft.WorldCommands.BlockInfoHandler C# (CSharp) Method

BlockInfoHandler() static private method

static private BlockInfoHandler ( Player player, Command cmd ) : void
player Player
cmd Command
return void
        static void BlockInfoHandler( Player player, Command cmd ) {
            World playerWorld = player.World;
            if( playerWorld == null ) PlayerOpException.ThrowNoWorld( player );

            if( !BlockDB.IsEnabledGlobally ) {
                player.Message( "&WBlockDB is disabled on this server." );
                return;
            }

            if( !playerWorld.BlockDB.IsEnabled ) {
                player.Message( "&WBlockDB is disabled in this world." );
                return;
            }

            player.Message( "BInfo: Click a block to look it up." );

            player.SelectionStart( 1, BlockInfoSelectionCallback, null, CdBlockInfo.Permissions );
        }

Same methods

WorldCommands::BlockInfoHandler ( Player player, CommandReader cmd ) : void
WorldCommands::BlockInfoHandler ( [ player, [ cmd ) : void