using Newtonsoft.Json; using Oxide.Core; using Oxide.Core.Plugins; using Oxide.Game.Rust.Cui; using Oxide.Core.Configuration; using Oxide.Core.Libraries.Covalence; using System; using System.IO; using System.Linq; using System.Collections.Generic; using UnityEngine; namespace Oxide.Plugins { [Info("CardGive", "David", "1.0.0")] internal class CardGive : RustPlugin { [ChatCommand("getcard")] private void getcard(BasePlayer player) { if (player == null) return; /* if (!_config.backpackSettings.backpackCraft) { Puts("BackPack Crafting Disabled"); return; } */ string _bpSIDString = $"2410672337"; ulong _bpSID = Convert.ToUInt64(_bpSIDString); var _purchasedItem = ItemManager.CreateByItemID(-484206264, 1, _bpSID); if (!player.inventory.GiveItem(_purchasedItem)) { _purchasedItem.Remove(0); } return; } } }