ChestShop (iConomyChestShop)

ChestShop (iConomyChestShop)

6M Downloads

Admin shop cooldown

MatthewXcap opened this issue ยท 2 comments

commented

Is your feature request related to a problem? Please describe.

Kinda because I wanted to have a 3 hour cooldown between selling stuff to my admin shop so players cant really use it as a main source of income and they have to set up some type of shop interaction between other players

Describe the solution you'd like

I want a feature where I can prevent players from selling items to my admin shop within a certain range of time given by me in config or with command. Maybe like I can look at a sign and then type /chestshop setcooldown 10800 or something and then players can only use the sign once every 3 hours.

Describe alternatives you've considered

well theres this plugin called ServerSigns but the problem with it is its way too time consuming to set up a mass amount of shops for and also very confusing too

Additional context

I need this to make the economy less abusable.

commented

Interesting idea but I kinda doubt such long delays are easily addable to ChestShop as it would require some way of storing that information beyond server restarts. (Unless you are fine with the delay getting lost there I guess) Would be easily possible to implement by a separate module/plugin by listening for a PreTransactionEvent though.

commented

Hello,

I might have something that could need your meet.
https://gofile.io/d/mVMc7E

Unfortunately source arn't avaiable, but you can still decompile and check the source code by using something like that https://jdec.app/

Configuration look like that

clear-after: 2160
default-time: 720
limits:
  STONE:
    sell: 5120
    time: 120
  CARROT:
    sell: 34560
    time: 1440
  POTATO:
    sell: 34560
    time: 1440

Not sure if It might help you or not