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
@adw123
do you have worldguard active?
Features to come:
- Translation files
- Maybe a manual work around agains duplication: respawning them every few hours?
- (Paused till this is done: adw123's custom values)
Okay so I am using your plugin along with another where I use custom potencies on potions.(Its a kitpvp server) So I have all the villagers setup and was just adding the items to the shop. So whenever I try add the potions it removes the custom potency.
Any help would be appreciated. Fatal~
I put 64 blocks in the shop, for a short time u can buy 64 blocks. But now when i press it, it just gives 1 block..... any fix for this ?
@DosMike
I just tried it on vanilla as well, and it still does it...seems to happen when the server restarts, it isn't despawning them for some reason
that
@adw123
That same thing happens to me alot i dont know why or how but its possible sometimes i just did /killall but it actually just killed he villager and it diddnt come back sometimes it did come back thou.. its weird why this is happening
@DosMike:
Turns out that your plug-in does support some data values already such as lore values that can be used with LoreItemStats. The only thing that it doesn't keep are the secondary Options type metadata.
I still am experiencing duplicating villagers and can't figure out how to keep it from occurring. After I set up my shops everything is fine for several hours, later I'll log into my server and they will have duplicated multiple times. I've adjusted the villagerdeath setting in essentials and it doesn't seem to affect things other than the fact that when the villages duplicate, I can't kill them off if villagerdeath=false.
Thanks.
Can you make to where you can add more slots or remove the tags in the first slots that can tend to be very annoying. Also another thing can you add a config. Other than that its by far the best npc shop plugin
@Vilimir1999
i'm 90% sure you did not install vault and/or a economy plugin as mentioned in the description
@mrgameguideguys
i won't add a config.
1. i'd have to convert everything into a config (too complex for me)
2. it was tought to not have a config. As user it just makes everything mor complicated.
As for "rename, change prefix, more": please go more into detail
@adw123
i'll think about it, but i'm busy with other stuff as well ;)
@DosMike:
If it would help I can provide you an item config that I'd like to be put up for sale. I believe the custom data is saved as part of "metadata" though I'm not a programmer so not sure exactly what that means.
If you could make it work that would be great, but if not, I still find your mod useful just for selling misc items like potions, arrows, and the like.
Thanks.
PLEASE add a config so you can rename,change prefix,more slots :D
@DosMike
I read it already and what? there is nothing about my problem...
@Vilimir1999
please read the plugin description. thanks
it doesnt show up for me when i install it hmmm i think its cuz a folder isnt made for it but can someone plz help
@DosMike
Many thanks for your reply.
I do apologise i was doing it all wrong lol! By the way great plugin.
@Zedinex
you either go op or in case you use group manager for example you do /manuaddp NAME PERMISSION
but as you will probalby set up the shop once, i'd go op
@QBcrusher
duplication might me be cause by essentials protect. try to allow villager death. i tested the plugin on a vanilla craftbukkit and for me villagers never duplicated.
@adw123
hit points and stuff are non-standart values that are not safed atm. but i guess it could be added using a special version...
Just got done playing with your plug-in a bit and it seems to have a lot of potential. I experienced the duplicating vendor issue as well so it would be nice if there is a workaround for that or if it could be fixed.
It would also be nice if this worked with items created in the MythicMobs plugin. I can add them to my shop but some of the item stats are stripped off such as hit points, knockback resistance, etc.
If you could provide compatibility for these things, I'd be happy to donate a few dollars towards future development.
Thanks!
hey man. want to say, still a great plugin, but I have one issue.
the villagers keep duplicating! Every time I walk into a shop, there will be 10+ of the same villager shop in there! it is possible to kill the clones, but it is lagging my server out when it happens...do you know a fix for this?
Hello,
Newbie question here
Where is says "Permission:" "villagershop.admin in order to create/edit/delete villager shops"
How do i do that so i can create shops ?
Cheers
@delsolsi213
More slots would work, but i don't know how i should display that.
Currently sell and buy items are nicely grouped so i think this is the best.
(And it's holding more items "per bock" as a sign shop already ;D)
@DosMike
can you add support for more slots per shop? for example idk 5 rows of a double chest? and in the sixth row you add items to go to the second page etc, so you can add a lot of items in 1 shop?