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
@jommeke
is that "52:50" the item, right?
the bukkit function resloving <item> will actually look for a name, so item ID are deprecated and values (like you used it) are unsupported.
you may try to give yourself the mobspawner and add it using hand.
@OMZIGIAN
The page above actually tells - just create the item you want to sell with all important information and take it in your hand
now just add your hand like this:
/shop add hand 500:250
Make sure using v0.2a in order for this to work
Hello is there a way for you to make so that you can sell items with custom data values?
Hy i can't add different mobspanwer because if i use 52:50 it says unknown items check ...
Ran into an issue with this plugin creating a clone of each Villager shop created with the same name but with normal villager trading options when reloading/rebooting the server.
No error or warning logs are created. Seems to cause server to crash on reload as well. Again, no logged errors.
Currently running 5 Villager shops.
Edit: No longer crashes after upgrading from 0.2 to 0.3 Bukkit.
I cant use any of the commands at the first time, I need to use it 20 until it works
@rolecraft
the economy plugin doesn't matter as vault will be used to hook the economy
in case you wish to use a differend economy, just make sure vault can handle it.
please post a ticket containing a list of your plugins, your craftbukkit version etc...
it's hard to fix something you don't know anything about.
Hope this will work properly with default Essentials? the economic side of it, as Iconomy was outdated ages ago. Unless you got an udpated one for me, would be great.
"Ps: i just did got the plugin, when i do /shop create test to see if a villager shop shows up, nothing happens.. I get in chat: Vs a new shop was created, but no villager is anywhere
@CinemaCarlos
please write a ticket includin all informations like server version etc.
@mrgameguideguys
what do you mean with that? so you need a permission to buy/sell stuff?
@Sebka97
i tested it on craftbukkit 1.7.2-R0.3-1. just try it. if it's not working it isn't.
@Cliffordlittle
give yourself the item with metadata and use /shop add hand price:price
how to i add an item with Meta:Data?
Does it work on 1.6.x ?
can you make so you can buy permissions? :D
How come when i restart my server the plugin doesnt show up? It doesnt create the folder for it and when i do /plugins it doesnt shot up
@DosMike
Thanks for this quick answer
visit my hp. for some reason bukkit need up to 3 days until the files get approved. maybe it's because of x-mas
Version 0.2a ready for download
where can i get the plugin, there is no download link?
how can i get this plugins?
Well, could you fix the bug where when the shop is full of items that you cant remove any of them. like if the shop had all 8 items in it and you did /shop remove dirt or something that was in the shop it says that, that item can't be found.
as mentioned in the description :-)
adding an id is something i actually did not want to do
Okay so I just discovered that you have to be standing on the block that you spawned them on. What I would recommend though is to set an ID for each shop so you could use the command like /shop <ID> add log 64 32:32
Just an idea that could possibly make it easier to deal with remotely.
i guess you ment in the villager, not next to it. sorry if it's not working for you. maybe try the new v0.2