http://dev.bukkit.org/server-mods/chest ... /28-v3-40/
Iconomy Chestshop :
Iconomy Chestshop vous permet d'avoir un magasin dans une des villes de notre monde. Une fois Résident, vous pourrez acheter et vendre dans ces magasins, et ceux des admins.
Demandez à un des admins de vous créer un magasin (avec l'accord du maire bien entendu)
Acheter : Il vous suffit de faire un clique droit sur le panneau pour acheter la ressource au prix et à la quantité indiqués.
strong> Vendre : Cliquez simplement avec le bouton gauche de votre souris sur le panneau.
Prix d'achat : Il est indiqué après le B : sur le panneau.
Prix de vente : C'est le chiffre après le S : .
Quantité : Elle est indiquée sur la ligne sous les prix.
C'est tout ce dont vous aurez besoin pour le moment, notez qu'un plugin "fait maison" est en cours de fabrication et ajoutera de nouvelles fonctionalités ausystème économique actuel.
ChestShop 3.40 (iConomyChestShop) - Chest&sign shop for economy plugins [1.2.5-R1.2]
Easy to copy: http://pastebin.com/aBb36xwJ
ChestShop.shop.create - lets you create shop
ChestShop.shop.buy - lets you buy from shops
ChestShop.shop.sell - lets you sell to shops
ChestShop.nofee - lets you create shops for free
ChestShop.mod - lets you open other people's chests, but doesn't let you create admin shops
ChestShop.admin - ChestShop.mod + ability to create admin shops, etc.
You can also add ".itemID", where itemID is... well... item id.
ChestShop.shop.create.itemID - lets you create shop which buys/sells itemID.
ChestShop.shop.buy.itemID - lets you buy itemID from shops
ChestShop.shop.sell.itemID - lets you sell itemID to shops
How to create a ChestShop?
- Place a chest, if you haven't already.
- Place a sign 1 block near the chest (for example, above the chest)
- On the sign, write:
(Item name can actually be item ID or alias)
First line will be filled in by the plugin automatically.
Price is a combination of buy and sell price.
You have to have B near buy price (people buy from you), and S near sell price (people sell to you).
If you have both B and S, separate them with a colon - :
means that AcrobotPL wants to sell 64 diamonds for 10 currency, and buy them back from you for 5 currency.
Also, if you put "free" instead of price, it is free to buy or sell
- Now, when you finish editing the sign, if LWC is turned on in config, shop will be automatically created.
Also, if your default protection is turned on in the config, people won't be able to break chest, sign or the block the sign is on
What is an Admin Shop?
Admin shop is the shop that doesn't require a chest, because it has infinite stock.
If you sell to it, the items will disappear, and if you buy from it, items will magically appear.
To create one, you have to be Admin/OP. Just put "Admin Shop" (or anything specified in config file) on the first line of the sign.
Restricting shops to some groups or regions
You can either use permissions, or you can just put a sign ABOVE shop sign (you need to be in that group to create the sign) to restrict it to players with ChestShop.group.groupName permission
The syntax is:
Only those groups will be able to use that shop
To restrict a shop to some regions:
- If you're using Towny, turn TOWNY_INTEGRATION on. Residents will be able to create shops in economy plots (either their or, if specified in config, any)
- If you're using WorldGuard, you can use an experimental "chestshop" flag. Turn WORLDGUARD_INTEGRATION on and flag a region. (f.e. /region flag ChestShopRegion chestshop allow)
Do you want to limit the maximum prices for items?
Well, there's an app.... wait, not that : P
You can use an experimental feature in ChestShop.
In your config.yml, add lines like:
That means that the maximum price for items BOUGHT by PLAYER is 14, and items SOLD by PLAYER using the shop is 15.
You can also use a global setting, like this:
That means that the maximum price for items SOLD to PLAYER is 200 (if there is, for example, a max-sell-price-5 found, it will be used instead of the global sell price)
You could buy and sell by right and left clicking the sign for a long time.
Now it's the only way to use the shops.
Just LEFT-CLICK to SELL to shop, and
RIGHT-CLICK to BUY from shop.
(This can be changed in the config file)
If you want to delete your old shop, simply SNEAK and destroy the sign.
It's that easy =)
STOCKING THE SHOPS
You can either open the chest and stock it up, or click on your own sign - it will open chest's inventory (that way you can have chests not openable by other people for sure )
It's a simple command that shows item information.
If you use it without any arguments, it shows you information about the item you're holding.
If you specify item id or item name after the command, it will show you information about that item.
ChestShop is Open-Source =)
You can find its code on https://github.com/Acrobot/ChestShop-3