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
@Bubaldor
Same happend for me, even when i create a villager i cant see him.
Hi there, I am using villagershop v0.3 and v1.7.5 bukkit. I have set up a few shops and the strangest thing is happening. Everything seams to work fine, but my villagers who are shops are multiplying. When I created a few of them, I noticed that one shop had 2 instead of 1 so I restarted the server thinking it would reset, but when I went back to check it created another one and now of I have 3 of the same villagershops instead of 1. The other shops are doing the same thing. Is there some way to fix this because its getting awfully crowded in those booths, lol. Thank you.
Hi, my vshops are desappearing every time I create a new one.
How can I fix this?
@SiDEZpro:
You can't edit rows. You have to remove items then re-add them. So for instance if you have a shop with 5 items and you want to switch out the 5th one you would do:
/vshop remove 5
/vshop add hand 20:10
This will remove the last item and add whatever you have in your hand. If you remove something in the middle, the items get shuffled to the left so keep that in mind. If you have a specific order you want to keep, make sure to add them in the right order or you can end up having to re-add everything again from scratch.
What Is The Commad To Edit The Rows In The Shop?
:)
@skullboneslayer
You don't need any other plugins than mentioned in the description! If you prevented villager spawn with e.g. essentialsProtect it's not my fault they won't spawn.
okok, well u doing a good job man! gj!
@LucasOe
knwon
@blomman2
known
@adw123
ok
@kaitheslayer
please read the description again.
it doesnt let me add an item
@DosMike:
I double-checked the WorldGuard plug in and there aren't any settings specifically for blocking or allowing villager death. There is a WorldGuard MobDamageFlags add on that adds some flags for allowing or denying damage to mobs but I'm not using that.
I understand that this isn't your job and you have other priorities in your life so please take your time with any changes you decide to move forward with. I'm thankful that you've done as much as you have thus far.
Thanks.
-Alan
when u sell a item u mouse pointer gets down to ur inventory .. then u need to drag u mouse pointer up again to the item... dont know if u know about this :)?
Hello,
When I restart the Server are coming more Villagers.
I don't want so much NPC's !
Please fix it.
@roystavasius
maybe you run out of money?
in case this is really a bug: post a valid ticket
@OGFatal
sounds like non default values.
@blomman2
known bug.. I'm still about to fix that
@MrBrasta
this is actually not a bug but to prevent ghostitems from appearing as minecraft 1.7.2 will create a ghost item on the cursor, as the inventory click is cancelled
@adw123
as far as i know worlguard is able to block villager death as well, if you'd please check that, thx
please note that i'm not only coding, i got other hobbies as well and i sometimes need a project "vacation"...
currently i'm excessively playing blockparty on hive o.O
@DosMike
Can u reply on my post ?
@adw123
Oh I didn't realize that >.< Thought you just set the amount in the command... lol, Thanks for the help!
@Celeress
You can add more than one item already. Just get a stack of whatever size item you want to put on the vendor, highlight that item then type /vshop add hand 0:0 where 0 and 0 is your sell and buying pricing.
I generally set my stacks to 64. That way you can buy up to a stack or sell up to a stack at a time. If you try to sell less than 64 it will still work granting you the appropriate amount of money but to purchase less than this you would just list another item with a amount of 1 that way you have options.
Hope that helps.
Will a option be added to buy/sell more than 1 at a time? If you already can my bad.. but for things like buying or selling food you would have to go 1 at a time, or if you are selling stacks of blocks etc. Also a reload command?
@DosMike:
I use worldguard for some basic config settings to limit fire spread, creeper explosion, etc. but I don't use any of the more advanced features that lock down regions and so forth.
Thanks for your continued support.
when i for exapmle i sell somthing the cursor automatically returns to the middle of the screen , it does not stay on the spot i selled or bought something from, so you cant just spawnclick, can you fix this please ?
hello got a bugg when i restart the server is spawns normal villager.. u can kill them they are like normal villager..