VillagerShop
Latest Version: 0.4d
Description:
This version is dead since 2014 now
I switched to Sponge - The Bukkit Version does not Work!
This is here for archive purposes ONLY!
This plugin allows you to set up villagers as shops. They will sell items as admin shop (this means infinite stock). The shop will be displayed as two row inventory you can modify with chat commands as admin. Buy items from the top row and sell them at the bottom row. You may give custom names to shops and also use color codes (&). Please note that this plugin requires VAULT and a economy plugin like iConomy or Essentials. Villagers with no player in a range of 32 blocks will be despawned and as always - they should'n duplicate anymore ;D
List of commands:
To use this commads you have to position yourself at the spawn location of the shop.
Get a list of professions or items
/vshop create [PROFESSION] [NAME] creates a new shop at your location. name is optional./vshop delete deletes the shop at your current location/vshop add <ITEM> <AMMOUNT> [BUYPRICE]:[SELLPRICE] [NAME] add an item of type ITEM, stack size AMMOUNT and optional display name NAME. Please don't use this method, as it's pretty limited./vshop add hand [BUYPRICE]:[SELLPRICE] add the item you are currently holding including meta values like enchantmentsThe buy and sell price need to be seperated with a colon, NOT space. if you dont want a item to be sold or bought, leave that value empty. To put a price less than 1$ use two digits (e.g. 0.20 -> 0.2$)/vshop remove <SLOT> removes the item from the given SLOT if possible./vshop permission <SOMETHING> sets the permission required to interact with this villager to SOMETHING. You may think of a new permission or use any existing permission. OPs will automatically bypass this. Use "none" as <SOMETHING> to make the shop public again./vshop reload tries to delete and recreate all villagers. (will also dump shops.yml to hard drive until 0.4)/vshop save will dump shops.yml to hard drive instead of /vshop reload as of 0.4
Argument syntax & colors: <required> - [optional] - Numeric - Text - Static
Permission:
villagershop.admin in order to create/edit/delete villager shops
Example:
Walk to the location you want the shop to be and type the following into the chat The shop will then offer {Oak Wood x 64; Oak Wood x 32; Oak Wood x 1}
/vshop create WoodShop /vshop add log 64 30:15 /vshop add log 32 16:8 /vshop add log 1 2:1
Now if you want to remove the 2nd entry type: The items will now be {Oak Wood x 64; Oak Wood x 1}
/vshop remove 2
You don't have to set a buy- AND sell price, but at least one of them. This will add an apple for 1 million credits, but you wont be able to sell such:
/vshop add golden_apple 1 1000000:
Images:
Two villagers chatting 
The shop inventory 



-
View User Profile
-
Send Message
Posted Mar 4, 2014awh dude, you freakin rock! I've been looking for something like this FOREVER! Thank you!!!!
-
View User Profile
-
Send Message
Posted Mar 2, 2014@DebenOldert
did you read the description? :D
just take the variant you want to andd into your hand - HOLD IT THERE VISIBLE
then use /vshop add hand [price]:[price]
:D
<<All>>I'm glad dynamic stack sizes seem to work now. i'll have to test around a bit.
Also duplication should stop as i'm not killing villagers anymore but .remove() them
The command /vshop add <item> <ammount> [buyprice]:[sellprice] [name] is deprecated and might get removed as adding the hand is much easier.
whoops... i'm already using /vshop instead of /shop... v0.2b is using /shop ofcourse
-
View User Profile
-
Send Message
Posted Mar 2, 2014@D3rrin
Please note that this plugin requires VAULT and a economy plugin like iConomy.
-
View User Profile
-
Send Message
Posted Mar 2, 2014With this version I still can't use different kinds of ; slabs, wool, planks, etc. Because you can't make items with meta data (5:3, 98:4, etc). Please include this for your next release! It's a great plugin but is limiting the usability.
Hope you can add this. :)
-
View User Profile
-
Send Message
Posted Feb 28, 2014Hello i put this in my plugins and it doesn't even work nothing is working . no commands not even showing up ingame .
-
View User Profile
-
Send Message
Posted Feb 22, 2014@peace1498
Never mind that, i can only add one type of fish! or one block and no variants! please fix or make a GUI editor
-
View User Profile
-
Send Message
Posted Feb 21, 2014Im having problems deleting my villager It says no shop found (when i type /shop delete) also i cannot add items to my current shops, (/shop add <item> <amount> <price>) does nothing :(. i really need it to for prison!
-
View User Profile
-
Send Message
Posted Feb 19, 2014I have a problem/suggestion . When I want a player to sell something Eg. 15 Eggs . If they haven't got the correct amount (15) they are not able to sell the eggs .
Example - The player has to have 15 eggs (even if he has more) the eggs have to be sepperated .
- Can you please fix this ?-
View User Profile
-
Send Message
Posted Feb 18, 2014Item meta data!?
-
View User Profile
-
Send Message
Posted Feb 15, 2014@Jacold
use 0.20 (it need two digits)
and second seems to be a bug, i'll check that asap
@all
i'm currently busy at school, so please be patient on updates
-
View User Profile
-
Send Message
Posted Feb 14, 2014@DosMike
Ok thanks. I misunderstand that. So, if I will edit shop I must be on this same coordinates as the npc, right?
And how can I add item with price $0.2? When I type :0.2 plugin says "Check your price argument".
Next thing: Why my player can stole Name Tag named "Buy ->"?
-
View User Profile
-
Send Message
Posted Feb 11, 2014@Jacold
please read the plugin description
"To use this commads you have to position yourself at the spawn location of the shop."
the villager is selected by YOUR location. step right into it, and it should work.
about ymls: i don't really like them. for basic settings, ok. but converting complex structures to ymls just f* my mind
@Xdecupl0r
i'm really sorry for that, but without further detail i can't help
-
View User Profile
-
Send Message
Posted Feb 10, 2014How can I select a Villager? And... I can kill villager using sand. And why I can't add anything to shop (i have permission ofc.)? Next things: reload command? And can you set shop data storage file to yml?
-
View User Profile
-
Send Message
Posted Feb 10, 2014I Spent something like 4 hours to set up lots of Shop on my server and when i reloaded it.. What a surprise there is no shop anymore ! Villagers began real villagers that i can hit and kill. Guess i gonna give up or try another plugin.. What a pity, i found this plugin amazing until i saw that all i did was erased...
-
View User Profile
-
Send Message
Posted Feb 8, 2014@patalkok
i may take a look at this (along with dynamic stack size)
<<>>
in case you're using an other plugin that know /shop as well, it'll conflict
if you wish, i could change the command to /vshop for this plugin, to prevent conflicts
<<>>
i guess i now know why villagers keep multiplying
with essentials Protect you're able to prevent villager-death and (as far as i've seen also villager-spawn) this would result in villagers are removed from villagershop (no more shop), but not from the world (-> duplicate)
i'll try to bypass this, but i'm not sure if i can, so try to allow villager-death until i worked on that
-
View User Profile
-
Send Message
Posted Feb 8, 2014@Incompy
Ive had this problem, does this mean I cant use it with boss shop?
-
View User Profile
-
Send Message
Posted Feb 8, 2014My villagers keep multiplying I think after the scheduled restart please fix.
-
View User Profile
-
Send Message
Posted Feb 6, 2014Hello, I've come across another problem, people are able to take the buy & sell tags from the shop don't know how but they manage to do it. And also when you buy and item some of them won't stack.
-
View User Profile
-
Send Message
Posted Feb 6, 2014@WatsonHarvey
You have BossShop on.
-
View User Profile
-
Send Message
Posted Feb 3, 2014the plugin is just amazing! but when i restart my server its creating another villager and makin the old one into normal villager :/ BTW. i dont think the shops support data values. i tried to put sapling and it writes me an error.. thanks for the help, Tal.