Commands with Admin Shops
blablubbabcDEV opened this issue ยท 4 comments
Migrated from: https://dev.bukkit.org/projects/shopkeepers/issues/196
Originally posted by glitchworks (Nov 7, 2013):
What is the enhancement in mind? How should it look and feel?
The ability for admins to create a shop that when an Item is bought a command is run. Ability to pick what the item looks like + the name. Also has variables such as {user} and things.
Originally commented by glitchworks (Nov 9, 2013):
ps. I'm trying to sell the pet selector using EchoPet. It is a bone with a custom name. When I try to sell it the item just goes back in the box. I figured possibly you could make it so I could just run the command that gives it to the player.
Originally commented by nisovin (Dec 3, 2013):
Sorry, I won't be adding this. It doesn't really work with the trade interface. However, it should be fairly easy to find a plugin that can add a command on right-click of an item, and do that that way if you wish.
Originally commented by blablubbabc (Dec 3, 2013):
I would have an idea how this could be done (in a nice way):
What if the shop-edit gui would have an additional row, where the player/admin can insert a book-and-quill/written book for each trade option which will be saved with it.
In this book he could define additional information, like commands that shall be run when the item is purchased, and if the item purchase shall be cancelled then, or if the trade menu shall be closed, or other "meta information" which could be useful to be able to define per trade in the future.
Other maybe usefull per-trade options would for example be:
-
ignore damage/durability (for repair shops)
-
ignore enchantments
Edited Dec 3, 2013