示例#1
0
 static Packet SpawnPacket(Player dst, sbyte id, string name, string skin, Position pos)
 {
     name = Color.SubstituteSpecialColors(name, dst.FallbackColors);
     if (dst.Supports(CpeExt.ExtPlayerList2))
     {
         return(Packet.MakeExtAddEntity2(id, name, skin, pos, dst.HasCP437, dst.supportsExtPositions));
     }
     else
     {
         return(Packet.MakeAddEntity(id, name, pos, dst.HasCP437, dst.supportsExtPositions));
     }
 }