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
@DosMike
i have done
@Hymetheus
@ZerosDesignsCalum
Please write a ticket including all information
@Hymetheus
i have the same problem
Hello developer, two players on my server reported that they had found a shop glitch in which players can take items from for free and I hope you can fix it in the next update. Here is a video of the glitch:
https:www.youtube.com/watch?v=BVCeEM1jfSs
@DosMike
Hey Ty ill check and make sure , odds are it is off I do create zones with mob spawning off . Been a mad man with creating lately . Ty for such a great plugin by the way .
Ive just installed this and so far so good! One thing I could suggest is instead of standing on a villager to add items etc. could you make it so we only have to look at them? =]
Harbidende güzelmiş la :D
@DosMike
Nice plugin! For the future you can implement dynamic prices ("prices constantly change based on the supply and demand of items"). Don't forget a config for change messages. :D
@halowhoflungpoo
did you read the FAQ yet? in case you already allowed (plugin-)mob-spawning please write a ticket containing your plugin list
I use shopkeepers on my server , will this bukkit work with it ? I installed plugin and commands confirm as working but no villager shows up . would be fantastic to use both , item for item trade , and money for items . some items can be bought with money and some only with items . I could really use this pluggin for my server . Not sure if i'm doing something wrong or there's a conflict with shopkeeper bukkit . would prefer to have both , villagers for players would be nice and keep my trade center clean and easy to use . looking forward to your answer/help thank you in advance . im op just in case your wondering .
it should be save. really.
in case you get dupes use /killall (essentials) and/or try /vshop reload
please write a ticket if you encounter dupes
I really need a plugin like this, but i'm worried about the dupes problem, is it completely solved or not?
I have setup the whole thing but sometimes i can walk over and take the item for sale out of the inventory of the villager and use it without pay, the server is not even laggy as it has a large gb count
@CamboSleezy
this would be pretty complex... besides it would break my duplication-fix code...
but as you said, it would be freaking amazing... i'll think about this one
_
As the vote is pretty clear by now, it did it:
The shops.bin will be replaced by a shops.yml for the next update.
I recommend you to write down your pricing, as you'll have to setup all your shops again.
And don't say i didn't warn you ;)
Even though i still don't like it being a config file it was a good thing to rework the save and load function to get rid of the static "syntax" i used for the shops.bin so far
_
Also the next version will include shop-permissions. (Just remember to not sell those permissions in case the shop is stocked with non-cosmetic items as of the new Minecraft EULA) EDIT: And loads of meta information, that now will be safed: BookMeta, FireworkMeta, LeatherArmorMeta, MapMeta, PotionMeta and SkullMeta
Future Stuff: Player-Shops and different mob-types (maybe :) )
And I'm still looking for config stuff :D
So we can only setup Villagers as shopkeeps? Is there anyway you could add an option to add any mob type as a shop keep,that would be freaking amazing.
@juanpaldo
no worries, I figured it out. I had the region flag mob spawning set to deny
All of my villager have disappeared! I uninstalled the .3 version and installed the .4 version and didn't bring back my villagers. I unistalled it completely and created new shops and no villager was spawned.
19.06 20:47:18 [Server] INFO End of file or file not found. Villagers have been loaded :D 19.06 20:47:18 [Server] INFO Enabling VillagerShop v0.4 19.06 20:47:16 [Server] INFO Enabled
does this mean something?
Mabey future for more than 9 slots in shop?
Im thinking about option to set up like to 54 slots in shop and option to npc BUY only and SELL only.
Ok, so here's a quick dev note:
- I wrote a keep-alive for the timer (it will recreate itself every hour)
- It looks like duplication was cause by villagers being within unloaded chunks. So i decided to remove every VShop that has no Player within a Range of 32 Blocks. It's seems to work mostly.
- Wukkit's Idea sounds interesting... I may take a look at that
- Stocked Shops for players are hard to do... (I need to think of a way to separate user shops from admin shops)
- For the config.yml stuff... Please vote - I'll only change something if 50% + want me to change it, so go vote that poll
Enjoy the Weekend :)