
Admin shops with cooldown or limit per player that resets per day
Closed this issue ยท 1 comments
Hi, my Issue:
I have a spawn with Shopkeepers NPCs (villagers with all the vanilla trades). The problem is that there's no cooldown for each trade, like there is with vanilla villagers. This makes trading too overpowered.
In short, I want the Shopkeepers NPCs to have the same trade cooldown as vanilla villagers.
the reason i dont wanna use normal villagers its mostly because my villagers sell some special stuff besides the vanilla stuff, and since its very hard modifying datapacks related to villagers, shopkeepers its the best solution for me ..
also, i was thinking about using playershops but the issue is the currency, i cant use a variety of currencies because they are just locked to just two (emerald and block of emerald) and since this villagers are vanilla ones sometimes they ask wool, sticks, books and a lot more.
i hope you can read this and thank you for making such amazing plugin!
I have a spawn with Shopkeepers NPCs (villagers with all the vanilla trades). The problem is that there's no cooldown for each trade, like there is with vanilla villagers. This makes trading too overpowered.
In short, I want the Shopkeepers NPCs to have the same trade cooldown as vanilla villagers.
I think you are asking for admin shopkeepers that have a limited stock that is periodically refilled, similar to this ticket: #403, or a variant of this that tracks trade usage per player.
However, it is unlikely that something like this is being added anytime soon.
the reason i dont wanna use normal villagers its mostly because my villagers sell some special stuff besides the vanilla stuff, and since its very hard modifying datapacks related to villagers, shopkeepers its the best solution for me ..
Modifications of or behaving like vanilla villagers is not really a goal of the Shopkeepers plugin. There is a feature built-in that lets you edit normal villagers (https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Editor-for-regular-villagers), but this doesn't support specifying trading limits either.
If your goal is to modify the trades of vanilla villagers, some other plugin might be better suited. See https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Frequently-Asked-Questions#can-you-instead-just-rebalance-or-let-admins-configure-the-trade-options-of-regular-villagers
also, i was thinking about using playershops but the issue is the currency, i cant use a variety of currencies because they are just locked to just two (emerald and block of emerald) and since this villagers are vanilla ones sometimes they ask wool, sticks, books and a lot more.
There is not only a "selling" and a "buying" player shop, but also a "trading" player shop that does not use the default currency items, but let's you setup trades between arbitrary items. See https://github.com/Shopkeepers/Shopkeepers-Wiki/wiki/Player-Shop-Setup#trading-shop
You could use this to setup a shopkeeper with arbitray item trades that has a limited stock. However, you would still need to find a solution to periodically refill the shop's chest to restore its stock. Maybe via a third-party plugin that periodically restore the chest to some saved state, or that periodically runs some command that copies some full chest block to the shop's chest location. But you would have to check yourself if there is some third-party plugin available that helps you setup this. Also, the stock is not per-player, but vanilla villager also don't have per-player stock either.