fCraft.LifeHandler.SetNewborn C# (CSharp) Méthode

SetNewborn() private static méthode

private static SetNewborn ( Player p, Life2DZone life, string val ) : void
p Player
life Life2DZone
val string
Résultat void
        private static void SetNewborn( Player p, Life2DZone life, string val )
        {
            Block b = Map.GetBlockByName( val );
            if ( b == Block.Undefined ) {
                p.Message( "&WUnrecognized block name " + val );
                return;
            }
            life.Newborn = b;
            p.Message( "&yNewborn block set to " + val );
        }