Пример #1
0
        public void SellGrid(int ID, long Price, string Description)
        {
            PlayersHanger = new PlayerHangar(SteamID, Chat);

            if (!PlayersHanger.TryGetGridStamp(ID, out GridStamp Stamp))
            {
                return;
            }

            //Check to see if grid is already for sale
            if (Stamp.IsGridForSale())
            {
                Chat.Respond("This grid is already for sale!");
                return;
            }


            if (!PlayersHanger.SellSelectedGrid(Stamp, Price, Description))
            {
                return;
            }

            Chat.Respond("Grid has been succesfully listed!");
        }