Example #1
0
        public void Human(Player player, string name)
        {
            //TODO: Fix space in pets name, too difficult damn..
            PlayerMob p = new PlayerMob(name, player.Level)
            {
                NameTag = name,
                KnownPosition = (PlayerLocation)player.KnownPosition.Clone()
            };

            p.SpawnEntity();
            //});
        }
Example #2
0
        public void SpawnPlayer(Player player, string name)
        {
            string pluginDirectory = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);

            byte[] bytes = Skin.GetTextureFromFile(Path.Combine(pluginDirectory, "IMG_0220.png"));
            //byte[] bytes = Skin.GetTextureFromFile(Path.Combine(pluginDirectory, "Char8.png"));

            PlayerMob fake = new PlayerMob("§6§lSurvival Games" + name + "§r\n§9       ", player.Level)
            {
                Skin = new Skin {Slim = false, Texture = bytes},
                KnownPosition = player.KnownPosition,
                ItemInHand = new ItemStack(267),
                Helmet = 302,
                Chest = 303,
                Leggings = 304,
                Boots = 305,
            };

            fake.SpawnEntity();
        }