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
@catprowler
Your tickes has been answered.
Please note that this plugin is written for CraftBukkit 1.7.2 and CraftBukkit 1.7.9 as you use it is currently untested and not supported.
@DosMike Hi there, I sent in a ticket a while ago. I added the picture of how they are multiplying. There are no errors in the console or log to add to the ticket, only pictures. I will create another one to show you how many were in the shop. Thank you.
@Chrisbotcom
12, thanks for this information
@catprowler
please create a valid ticket on this if not already done
@DosMike
Hi there, how do I stop this plugin from spawning a billion of the same villagers shops? I went into my shop and I couldn't move. Thank you
@DosMike
There is no flag for mob-death.
@Spiky2006
i doubt you read the big green line. this plugin is selecting the shop by YOUR location.
step into the block where the villager was created, and inside that block execute shop related commands.
I think the problem might be that its not selecting the villager it only makes the shop and it forgets it selected it hmmm i think there could be a problem with my server :(
For some reason when i try /vshop add hand 100:50 it doesnt do anything and it doesnt say any erros its just blank and nothing happens can you please help me :(
@zPowerHorsez
Is your server running any Plugin that might prevent villager- / mob-death like Essentials or WorldGuard? Please check if that setting is disabled. Still duplicating? The "new fix" is checking through all villagers in all world. if you're standing on a vshop location but arent vshops, they'll be removed. Maybe they were pushed of location just before shutdown? You clould try fix them to their current location. In cas that didn't help as well, i might not be able to help you. The Server I tested (and fixed duplication) on is running 1.7.2-r0.3 so i got no idea.
I'm using version 0.3b and my server is running 1.7.2 and still get double villagers why is that? Is there anything I can do to fix it?
@madtomic
nothing personal, but is it really that hard to read the description... why keep people asking things, that are actually mentioned above?
it sais "You may give custom names to shops and also use color codes (&)." and further "/vshop create [PROFESSION] [NAME] creates a new shop at your location. name is optional."
so why don't you try something like
/vshop create &6Bob
@MrDragonio
no way atm... i might add translations and an option to disable messages in the future
Can the npcs setup with different color names?
How can i disable messages like "Transaction successful"
@Stuntbros101
yes, just do something like
/vshop add hand :1337
please use 0.3b... otherwise villager might duplicate
Are you able to make it so you can only sell items?
@catprowler
known bug
@Chrisbotcom
yes, just look at the description above. if you want to name a villager like a profession type the profession first, followed by the name. Names also support color tags.
@markov100
that's all right. there is nothing to set up. and i'm not saving villagers in a config as this would be too complex for me, as well as for the user. just use the commands. as long as you got the permissions, it should work.
<><><><>
BIG NEWS: i guess i got the duplication to stop. It seems bukkit is "too fast" when shutting down. removing the villager will just be ignored at that moment, so i wrote a function that will progress through all villagers on startup and remove those, that are in the same location as a vshop, but arent a vshop. Hope this wirks finally and thanks to my friends who rent a private bukkit server for me to test this actually online. The update will be public as soon as the Bukkit Staff aproves it.
Season's Greetings - DosMike
hi there i installed this plugin but i only see the shop.bin file inside the folder.
i have vault iconomy and essentials plugin
Hi there, just wondering if by chance you had time to see why villagers are multiplying ? Thank you.
This is a very cool plugin. Thanks!
Is it possible to change the name of the villager?
@Bubaldor
Sometimes when you use worldguard and protect that region you need to allow mob spawning. You can do this by going in to the spot where your shop is and type /rg info ... this will give you the region name. Now you can add a flag /rg flag regionname mob-spawning allow.
You might also want to check in the Worldguard, worlds, the name of the world with your shops, and the config.yml has something like mobs: block-plugin-spawning: false
Also if you use Multiverse Core you need to make sure under your worlds.yml folder that the world you have shops in has true beside mob spawning.
Hope that helps some what.