Esempio n. 1
0
        /// <summary>
        /// Changes the skin of the bot
        /// </summary>
        public void Clone(String targetSkin)
        {
            PlayerInfo target = PlayerDB.FindPlayerInfoExact(targetSkin);

            if (target == null)
            {
                //something went wrong, player doesn't exist
            }

            World.Players.Where(p => p.usesCPE).Send(PacketWriter.MakeExtAddEntity((byte)ID, targetSkin, targetSkin));
            Skin = targetSkin;
        }