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
looks like a promising plugin, i may use it on my server. but I use spigot, is there any way to get around what you are talking about? i havent tested it, and i dont want to if something can go wrong. I really like spigot's features and dont want to go back to craftbukkit
Hey, i'm currently using this plugin to build a server which i'm hoping to release. I saw that you're looking for suggestions, and because you did some fine work making this plugin I decided i'll help by giving you an idea. How about possible permissions to access the certain kind of Shop keepers/ Professions? So for example, X rank could visit the farmer for cheap wheat as Y rank could not as they don't have the permission to access that kind of profession. Anyway, thanks for all your work, its truly appreciated!
The beta is just called beta because not all features i want are implemented.
It will run as good as any other version. I just decided to call it beta because i want the users to suggest thing i may add. So i might take a look at selfservice0s suggestion.
Something I'll try for the next update is to keep the villagers chunks loaded. Maybe that works...
Any idea when the next update is coming out?
@JenniferFrancis1234
please read the plugin description once again. i'm 100% sure you're not standing at the block coordiantes where the villager was created while you execute that command.
this is not my fault.
i made a ticket about a bug i found.. in 1,7,9 you arent able to put items in the shop... you are able to make the villager
@DosMike
Allow player made shops that they can stock the items into or remove the items they bought
For the up coming version / the current beta - Please:
- suggest config setting i might add
- participate in the current poll at the top right
- post valid tickets in case you encounter bugs...
Also note that i need the Stack-Trace (the stuff the server is dumping into the console as an error occurs) in order to fix s*
And thank you all for more than SIXTEEN-f*-THOUSAND downloads so far.
any idea when beta 1.7.9 comes out?
@falcon997
this is (/was) to prevent item ghosting... i'll try to remove it
@LittleFow99
it's on it's way
@itsPrime123
nope... this was requested earlier, but i won't because having a dynamic size does not fit the binary safe file and i'm lazy and in my opinion 2 rows look the best.
I still need to find a way to get the timer going. Also it looks association to villagers is breaking some times....
________________________
The latest version is a BETA version for 1.7.9.
Help me improving the plugin by posting detailed tickets on this version.
Thanks
Hello Mike, is it possible to add more slots on the villager inventory(bigger chest GUI) to see items. Thanks.
@DosMike Hello, Could you PLEASE update to this to 1.7.9 if not 1.7.5! My server really needs this plugin and we cant use it because its out dated and its the only plugin of its kind it looks like! Please Update it Thanks!
Why does the shop teleport my cursor back into my inventory so i can't spam sell things? Is there a way to config this to make it stop?
OK, I'm on it...
I added translations and did some stuff with the timer.
Please note, variations of Bukkit (e.g. Spigot) might kill Timers.
This will result in Villagers beeing unstunned at some point and preventing them from respawning.
I added a Task to update the client Inventory after clicking something in the shop. Item theft should be blocked by this.
Please make a wish on configuration options as I'm going to add a config. I just don't know what to add >.<
PLEASE if you encounter any error: write a ticket! - it's free!
same problems as others but no solution works. Upon restart the npcs act like normal villagers but keep their names and position. I tried killing all villagers, recreating 2shops.. made a region around the two shops, including the z axis I set flag to mob-spawning deny created second region inside this one around one shop.. this one i allowed mob spawning for tests. restart the server and all npcs act like normal villagers... console shows Index out of bounds exception index 0 size 0
restart server second time and the error stops but npcs still act like normal villagers.. shops gone.
i try 0.3 instead of 0.3b and i dont get the index out of bounds exception but exact same problem. shops gone.
help
I really want to use this program but cant if it all disapears on every restart
How to download??
Can u sell permissions?
To me it seems like the duplication villager bug could only be caused by plugin versions or a certain plugin itself. I have updated all of my plugins that have changed within the last month but I have no village dupe issue at all.
Worldguard is a bit of a pain though. I simply made regions inside of my denied mob spawn region for each of the villagers allowing mob spawn. If you do it right it has to work.
However I have been able to recreate the issue of getting free items from the villager. Its kinda hard to do but still an issue.
Overall I am very happy with the plugin and look very forward to the next update!
i'm busy with my final exams, but there is quite some stuff planned on this project.
i'm not sure how fast i'll be done with all the stuff, but this are a few things to come:
- stock shop (having a chest 1-2 block below the villager will make him sell from and to that chest - you wont be able to place this chest afterwards)
- a language file
- a bit of a config file... but i'm not sure on what to put in there
- it'll move to 1.8 (i guess i won't make a 1.7.9 version)
Great plugin! 1 Thing though: when it says Not enought money! I think you spelled enough wrong, could you maybe fix it? thanks