fCraft.MessageBlock.DoesNameExist C# (CSharp) Method

DoesNameExist() public static method

public static DoesNameExist ( World world, String name ) : bool
world World
name String
return bool
        public static bool DoesNameExist( World world, String name )
        {
            if ( world.Map.MessageBlocks != null ) {
                if ( world.Map.MessageBlocks.Count > 0 ) {
                    foreach ( MessageBlock MessageBlock in world.Map.MessageBlocks ) {
                        if ( MessageBlock.Name.Equals( name ) ) {
                            return true;
                        }
                    }
                }
            }

            return false;
        }