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
Ah players can drag items out and sell it o_O
Great and perfect plugin, but they are duplicating :o Also, once this issue is fixed, possibly add a configurable language file for the prefix of messages?
Can this work with items from mods? I'm creating a Pixelmon server and want to add the shops.
@Dutch_Boy
I have the same thing. I had to do killall villager and then they respawn back as shops. If you have worldguard and have the region set to mob-spawning deny ... it needs to be changed to allow for them to come back. I was getting duplicates and had to kill them let them respawn and then turn that region from spawning allow to mob-spawning deny. It has been working but a pain if you have to restart your server. Hope that helps :D
Problem!!
Dont know how but the plugin WAS working fine. Made 22 villagers. I just restarted my server and now all of the 22 villagers are placed back to normal villagers...... WTF!! ??
Pls check my ticket. I wanna setup my admin shop.
Serious BUG infinite brush products Detailed description: Double-click the right NPC villagers quickly, can be directly to the villagers items show bar items into its own backpack! So you can brush items Ask the author to repair
Translation software**
After a restart all npc are removeds
Can you and Playheads support?
@asacavanagh
i did understand... until now i assumed that the potion effect would last forever. but it looks not. this allows the villager then to walk away. restarting the server while he's on a different location will "unhook" the villager from the plugin. on startup i'm manually deleting duplications (villagers that have the same location as shops, but aren't shops). in case the villager walked off, he won't be deleted.
so i'll have to re-add the potion effect (infinite slowness) frequently.
@DosMike
I should have been more specific in my post.
The Villagers walk off after extended periods of time. I have also noticed they will sometimes do it when the chunks they're stored in are loaded after being unloaded for a while. After walking about 10 blocks though, they're teleported back to the proper shop location but continue to try walking away.
I have only noticed one instance of "duplication" since starting to use the plugin. Found my Gold_Ore shop wandering around spawn but when I went to the shop location, it was also there. No harm though, the villager that was wandering had just been turned into an ordinary one (Emerald Trades, etc) that acted as if someone had used a name tag on it.
Even so these two slight... bugs I guess you could call them.. occur, I don't see any harm in continuing the use of the plugin, so I shall. Makes the admin shop a little more enticing than using the ordinary boring ChestShop signs..
@catprowler
Please post a detailed ticket about this
@asacavanagh
Thanks... this could actually cause duplication.
The way duplication is "prevented" at the moment is by killing villagers at the shop location on startup.
Having them walk off will break this.
I'll try to fix that along with adding a config file (the config still won't store the shop setups)
okay.. I found an issue.. the villagers keep walking off then teleporting back to their location and keep on doing so.
Hi there, I noticed the villager shops are no longer keeping their items if the server restarts. They are converted back to regular villagers. Is there a way to do a /vshop reload? That would be handy to see if villager shops could be reset.
Really need an update that stops the duplication, its getting really annoying
Version 0.3b is running fine on spigot 1.7.9 and I'm yet to get duplicate villagers either.
Just some info I guess.
@DosMike
No pressure, but I really love the whole idea of villagers selling instead of signs. Please update when you can :D
I too get duplicated villagers with Spigot 1.7.5
@catprowler
I'm not sure about 1.7.9 but I guess I'll make an update for 1.8.
There are other thing I want to do atm.
@DosMike
Thank you for getting back to me. Will you be providing an update in the future for 1.7.9? Thank you.