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
Hey, really like the plugin but would you be able to make it open source so myself and other server owners can tweak it for customization?
If not, all I am really after is to be able to change the name of the shop from [VS] (Villager name) to whatever, and also modify the prices to have a symbol at the end.
EDIT: Seems like the dev hasn't been on since 2014...
Hello.. im new here.. i wanna ask. when i do /vshop Create Priest Njin. it says invalid syntax: please visit the website to see what this can do
IMPORTAN BUG> You can get items FREE by double right click. Push double right click very fast and the shop get bug and you can get all FREE.
Is a very importan bug.,..in my server all was get potion and goldenaples FREE.
Tkanks.
In reply to _ForgeUser14813803:
lmao the whole page is mostly you omg no problem with that but that just means that this plugin isnt that great
love love love love love love love love love love love love love love love love love love love love?
AWESOME plugin! Can you update it to 1.8?
Hello. To the author, thank you for this great plugin! There is a subtle bug when saving the config that will swap inventories between shops sometimes. Since this does not appear to be an open-source project I cannot send you the bug fix, but instead here is a hint that should help you fix it: Remember that HashMap.values() does not return objects in any specific order. So in the config save code, iterating over values() on one hand and referencing shops by id (i.e. i++) on the other is not correct.
End result = when the configuration is saved, inventories will get swapped between shops sometimes, especially when there are more shops configured and hashmap.values() returns shops in a slightly different order.
Please consider open-sourcing your code so others can contribute back to you, and keep up the great work!
I need help D: something went terribly wrong with the vshop First the Shop.yml became empty i have no backup of it but then I check all the villager shop stands and the villagers was still there but you can trade as normal villager and they are invulnerable I cant get rid of them D: PLEASE HELP
@Tomsi126
Hello everyone. As Bukkit is (still) DMCAed I stopped working on Bukkit plugins. I know that spigot is still running and stuff, but I'm currently focused on Sponge. VillagerShop will be recoded on Sponge and once it's done it'll be open source. As for the duplication bug: It's known since... a long time! It is caused by leaving shop villagers in unloaded chunks. An attempt to fix this was to remove villagers that are on the same location as shop villagers, but are not shop villagers in the latest versions. Additionally villagers that do not have a player in a certain range are automatically removed (this is not "fast enough" if a player disconnects in the area though) So if you got problems with this try using a chunk-loader to keep the chunks of those villagers loaded. Also do not forget to /vshop save after you changed something! Otherwise - well, it will not be saved
Also there is no 1.8 bukkit so do look on spigot after you learn to read.
please update for 1.8.1
Hello this Plugin is not working meaning i Seted ever thing but the gui wont open
When creating a shop in a region that have mob-spawning deny it does create a shop but it doesnt spawn an npc,can you fix it please?
Hope you also upgrade to spigot. Spigot is where its at.
Hello everyone. As Bukkit is (still) DMCAed I stopped working on Bukkit plugins.
I know that spigot is still running and stuff, but I'm currently focused on Sponge. VillagerShop will be recoded on Sponge and once it's done it'll be open source.
As for the duplication bug: It's known since... a long time! It is caused by leaving shop villagers in unloaded chunks. An attempt to fix this was to remove villagers that are on the same location as shop villagers, but are not shop villagers in the latest versions. Additionally villagers that do not have a player in a certain range are automatically removed (this is not "fast enough" if a player disconnects in the area though)
So if you got problems with this try using a chunk-loader to keep the chunks of those villagers loaded.
Also do not forget to /vshop save after you changed something! Otherwise - well, it will not be saved
I really like this plugin, but as everyone else has had the shops duplicate whenever they despawn and reappear when players log out near them.
I have a temporary solution to refresh all of the villagers in the area with; "/killall villager (location)" every minute or two.
A few things the branding of the [VS] in every chat message and on the header of the NPC is pretty obnoxious and was wondering if we could get a toggle to turn it off or make our own message.
Last thing, right now the config only has on message for trades, is there any way we can have "%2 was added to your account." or "%2 was taken from your account."
@flip77
Same with me bud, I had to stop using it
Hello. I need your help again. I want to use the plugin Villager Shop. In my World Weld everything works wonderfully.
But in my world started by Multiverse Core following happens. I create my normal Villager. As soon as I leave the server and joine again, now there are 2 Villager there with the same name. If I leave the server again and again joine I suddenly 3 Villager with the same name.
Hope you can help me here again. For ever thank you
doesnt work T_T
im running the latest spigot patch. plugin worked fine first few hours then started duplicating the villagers as a regular npcs and also shop villagers. please update and maybe if you could add a feature to buy/sell stacks with the shift key or something so we dont need 2 slots per item.
good plugin cause it appears lighter than others and does only what i need. ill download again when updated :D
Please fix the error when stop the server and start the villagers shops are gone, please uwu