fCraft.LifeHandler.SetDead C# (CSharp) Method

SetDead() private static method

private static SetDead ( Player p, Life2DZone life, string val ) : void
p Player
life Life2DZone
val string
return void
        private static void SetDead( Player p, Life2DZone life, string val )
        {
            Block b = Map.GetBlockByName( val );
            if ( b == Block.Undefined ) {
                p.Message( "&WUnrecognized block name " + val );
                return;
            }
            life.Dead = b;
            p.Message( "&yDead block set to " + val );
        }