Shopkeepers

Shopkeepers

2M Downloads

[Suggestion] Option to add a permission to each trade inside a shopkeeper NPC

FaultyFunctions opened this issue ยท 0 comments

commented

It would be quite a nice feature to have to be able to toggle certain trades off with permission checks.

Example Use Case

Imagine a shop that sells plushies. In order to access certain plushies the player has to complete a quest. After the quest is complete, the quest plugin tells the player "You can now purchase X plushie from the shop." and gives them the appropriate permission node. The player opens up the plushie shop and those new plushie trades are there now.

How might this look in game?

So there are two ways on how to use this feature depending on what is possible.

  1. There would be a new button in the editor options section that would when clicked would allow you to click on a trade item which would open up your chat and allow you to type the permission node.
  2. If that isn't possible, then the editor button would open up a new GUI with the trades you already have set and allow you to click on one of them to assign a permission node via chat.

I'm not sure what the best way to show a trade has a permission node assigned to it. Maybe the item can glow, or it can be added to the lore of the item on the editor screen? Maybe the item can get an enchantment glint on the editor screen?

Note

  • This would only be a feature for admin shops