コード例 #1
0
        public void InitializeMurderer(SkyPlayer player)
        {
            TitleUtil.SendCenteredSubtitle(player, "§c§l  Murderer§r\n§7Kill all innocent players!");

            player.Inventory.SetInventorySlot(0, new ItemMurderKnife());
            player.Inventory.SetInventorySlot(8, new ItemGunParts());
            player.Inventory.SetHeldItemSlot(1);      //Avoid holding the knife on spawn/select

            player.HungerManager.Hunger = 20;         //Set food to 'able to run' level.
            player.SendUpdateAttributes();

            //PlayerAmmoCounts[player.Username] = 3; //Throwing Knives
        }