Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

[Feature] Limit quantity of purchases in given timeframe #865

Open
AdamWGrise opened this issue Mar 10, 2021 · 2 comments
Open

[Feature] Limit quantity of purchases in given timeframe #865

AdamWGrise opened this issue Mar 10, 2021 · 2 comments
Labels
Enhancement New feature or request In Process This issue work in process Priority:Major Major

Comments

@AdamWGrise
Copy link

Describe the Feature:

Some rare or high-demand items can be difficult for new or casual players to obtain. As someone who tries to help out those players, I try to keep prices low in my shop. The problem is that, unless I manage to catch those players online and advertise to them at just the right time, I have little to no opportunity to target them: Market-focused players are always on the prowl for my shop full of Mending books, Elytras, or Cooked Pork Chops, so they can buy out all of them and mark them up to outlandish prices, starving the market of reasonably-priced items. Further, it makes it harder for a casual shop owner to gain any sort of reputation for having good prices, since those near-spawn shop owners have a monopoly on these items.

My feature request would be to allow setting a limit on the number of items a player can purchase from a shop for a given period of time (in-game days, actual minutes, etc.).

Shop owners could have a command that would let them define a quantity and period of time; for example:
/quickshop limit 3 day
...would limit a player to three of that item per day. I don't know enough about units of time and how they're measured in Minecraft, so this may be a bad example - but hopefully this gets the idea across.

Screenshots:

None.

Additional context:

This feature shares a similarity with issue #469 regarding limiting how much money a player can make by selling items to a shop within a given period of time. The code needed to reinforce the "cooldown" period may be useful toward building this feature as well.

@Ghost-chu Ghost-chu added Enhancement New feature or request In Process This issue work in process Priority:Major Major labels Mar 13, 2021
@Ghost-chu Ghost-chu added this to the Database Refactor milestone Apr 13, 2021
@Ghost-chu
Copy link
Owner

Remove impl by addon label, this feature will added into QuickShop it self.

@Ghost-chu
Copy link
Owner

Ghost-chu commented May 6, 2021

@AdamWGrise
@WardenDrew
@Sapherises
This feature now impl by addon:
https://github.com/Ghost-chu/QuickShopLimited/
https://ci.codemc.io/job/Ghost-chu/job/QuickShopLimited/

  • Still WIP, not stable, something not working, there also have errors not fixed yet, text is ugly, but it works
  • Require development build of QuickShop !!!!BACKUP SHOP DATABASE!!!!
  • Test is welcome
  • Never install it on your production server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request In Process This issue work in process Priority:Major Major
Projects
None yet
Development

No branches or pull requests

2 participants