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
Really love the plugin, seriously but it has a huge bug i'd love to be fixed. When i turn my server off, then back on a little later, they're gone. They all are just deleted. Please reply so i can know if its a bug being fixed or a problem on my part. Thanks!
Hey, just wanted to notify you on a bug. When making a large set of villagers, in my case a shop, sometimes the villager's syntax (The name in the inventory screen) and also the items which it buys and sells can swap to another villager. For example, one villager is selling Clown Fish, the other is selling iron. Eventually, if it happens, I may come online to find that the villager selling iron has swapped to ALSO selling clown fish along with the other villager, and his name in the buy/sell interface has changed to the same name as the villager it has copied. It this doesn't make any sense please tell me, as I know it probably won't! :') Unfortunately there's no error codes or anything appearing in the configs, and nothing in particular seems to trigger it. Anyway, hope I could be of help!
Thanks
I'm having the same problem as Nephry134. I'm running Spigot 1.7.2-1.7.9 and tried versions 1.7.2 and latest version 1.7.9. I kept getting the error saying is the plugin up to date? And it changed the shops to normal villagers. Then I killed the villagers. The first time, I downloaded the shops.yml just incase it didn't save and it didn't. So After stopping the server I uploaded the shops.yml with the villagers still there and they just don't load. Am I doing something wrong?
This is the error http://pastebin.com/J8wnwkjS
After restarting the server just now, the plugin didnt load the villager shops file. I checked the plugin files and the shops.yml is empty! The shops did run the last couple of days perfectly. I needed to save them manually though. Pls look into this. I dont think that I am going to set up the shops again, if it doesn't save correctly.
This error is created when you put an item into the shop while having it open. I think the unused slot should be lock. The shop will consume any items in the shop when closed.
12:20:45 AM [00:20:45 ERROR]: Could not pass event InventoryClickEvent to VillagerShop v0.4d 12:20:45 AM org.bukkit.event.EventException 12:20:45 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:45 AM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:45 AM at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:1364) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.PacketPlayInWindowClick.a(SourceFile:32) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.PacketPlayInWindowClick.handle(SourceFile:10) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM Caused by: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5 12:20:46 AM at java.util.ArrayList.rangeCheck(Unknown Source) [?:1.7.0_51] 12:20:46 AM at java.util.ArrayList.get(Unknown Source) [?:1.7.0_51] 12:20:46 AM at net.bplaced.pririor.villagershop.eventHandler.onInventoryClick(eventHandler.java:74) [?:?] 12:20:46 AM at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_51] 12:20:46 AM at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_51] 12:20:46 AM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.7.0_51] 12:20:46 AM at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_51] 12:20:46 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks] 12:20:46 AM ... 13 more
any more update or feature getting added? like database support?
@DosMike
Thank you for the reply :) I'm using 1.7.2 right now, are you aware of the villagers duplicating?
@LegolasZwiZMinecraft
I'm not developing for snapshot versions. You'll have to wait until the next bukkit beta version or until the next feature update
To bad this GREAT plugin doesn't work on 1.7.10 for me :( Is an update comming soon?
@MultiSammmmy
@Cronos2212
Please write a ticket including all information such as versions, plugins, error-logs, etc. Otherwise i won't be able to help
@mcpark
The latest version is ment to be used on 1.7.9 Please report again if updating the server did not help
严重BUG!
快速双击村民,可以直接拖动展示物品。甚至放入自己背包。
picture:http://v2.freep.cn/3tb_1408101401513ira512293.png
希望作者能很快解决这个严重的BUG!
发现途径:1.7.2
This plugin doesen't work for me? The buy price is allways red, and when I try to buy something it just doesen't work... Also when I try to sell something it only say's:
[VS] You do not have enough for this item.
Even though I have the item in my inventory. Anyone have any suggestions? Also I'm getting this message in console: CEST CONSOLE: ERROR]: Could not pass event InventoryClickEvent to VillagerShop v0.4d
Whenever my players go to use a shop from this plugin, they are not able to get items to their inventory, it just simply doesn't allow it, and it doesn't work for OP staff members or myself either, any ideas?
@mini_mes
maybe the autosave is broken, /vshop save should to it and i'll take a look :)
Found a huge bug...
If I create a shop
EXP: Parkour_Reward
Well if I restart my server ALL of them are gone and none saved.
Yea... Deleting this plugin until you fix that. Thanks 0_0
@DosMike
You are brilliant!
I set block-plugin-spawning: false in the config.yml for WorldGuard and now I can have your villager shops in regions with flag [mob-spawning: deny] : ) Thank you sir for your great work and your help.
@YESS808
I tried to force them to spawn earlier but without success.
If the option is available, try to enable Plugin spawning.
Otherwise try to create a 1x1x2 region around the Villager that allows spawning.
If this won't help either try to get another plugin that is able to more dynamically control mob-spawning.
Great plugin, I love it! Although this is likely not a bug but I was experiencing an issue where the shops did not appear after creating them. If you use WorldGuard and have the flag mob-spawning set to deny the shops will not appear. Any way around this? I would like to prevent mobs from spawning but still spawn the shops. Thanks in advance and great job!!
Hey DosMike, I did a review of your splendid plugin after working with it on a server for a while now. I believe you deserve all the credit you get for this - my subscribers also agree! ^_^ You can find the review here if you wish to watch it - https:www.youtube.com/watch?v=1euN3uXrw Its up to you whether you wish to feature it or not, I don't mind either way. Anyway, keep up the great work! -Wukkit