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
Could you make it so you can sell!?
Every time that I do /shop create it says; "That shop is non-existing...". I have Vault to... What's wrong?
@MaxG1054
You need Vault
I doesn't work for me.. I will do /plugins and this comes up: Plugins (12): GroupManager, Head, MagicSpells, RideThaMob, BlockDisguise, SparklingTools, Essentials, EssentialsProtect, EssentialsSpawn, EssentialsChat, EssentialsAntiBuild, KFactions I also tried to do /shop create Still nothing..
great plugin add support with towny (for tax) please :p
Do you happen to have a version for mc1.6.4? This is the exact plugin I'm looking for.
@Vidherci
yep, this is to prevent duplication as the plugin can't track the villagers during disableing or reloading. (some plugins seem to prevent villager death, causing duplication)
@Breezy4G
atm you need the exact stacksize if you added an item with custom name, it requires the item to sell to have this exact custom name
@XxDawnsusxX
maybe a bug with freezing, i'll take a look.
for duplcation NO ONE ever gave me a plugin list so i CAN'T fix this
(it seems no one is listening to me when i say pls post a DAMN TICKET on such bugs)
@creptor
Enchanted items work (as long as you use safe enchantments) - Enchated books however do not atm
Enchanted items works?
The villagers are still duplicating after restart/stop, and discovered 2 days ago, they've started walk glitching not staying on where they were spawn they would walk then glitch back to the stop. So I think you need to fix the plugin.
I can't remove villagers... I tried stopping the server and removing the plugin. Starting it back up, stopping it again, and then starting it up with the plugin and the respawn. I deleted the shops.bin file.
EDIT: After trial and error I found out my problem, you have to stand on their block to edit them. EDIT2: A new problem arises, I can't sell items, it says that I don't have the item in my inventory!
My villagers despawn when the server closes. Its a normal thing?
@M3DDLER
this is a adminshop plugin ;)
Hi, I would love to add this plugin to my server but i have a couple of questions first.
1. Is it possible to create admin shops so the villagers have infinite stocks?
2. Is it possible to add permissions so players can create but only have the ability to edit and delete their own shops?
@TwekerPMC
@delsolsi213
exactly. adding the hand is using the itemStack in your hand as it is. including stacksize and custom title
@TwekerPMC
worked for me, when you do hand do not put any amount like this /shop add hand 64 30:15 instead use it like this /shop add hand 30:15
@DosMike
the /shop add HAND ? ?:? doesnt seem to work. I have custom named items, and it says INVALID MATERIAL and it shows a link. Please fix asap :D
@HeadiPlays
you can i had the same problem sstand on the exact spot they stand on and try the command /shop add hand b:s
@DosMike
the villagers are still duplicating with the new version however they have stopped running around
This would be alot better if players didnt have to have the exact amount of items
Maybe add support for colored Villager names?