[ECON] ChestShop 3.7.18 (iConomyChestShop) - Chest&sign shop for economy plugins [1.8]

Discussion in 'Archived: Plugin Releases' started by Acrobot, Feb 12, 2011.

  1. Offline

    Acrobot

    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!
    [​IMG]
    I've put a LOT of effort into making this plugin,
    you can donate if you appreciate my effort =)

    Requirements:
    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    Optional:
    - For additional economy plugin support - Vault
    - For Permissions: bPermissions, PEX, or any other permission plugin
    - For additional protection: LWC, Lockette, Deadbolt
    - For other item names (aliases): OddItem


    Setup:
    Copy the .jar file from the .zip you downloaded into /plugins folder.
    You can also copy the example files if you want to generate statistics page.

    Translations:
    You can change the plugin's language, here's a list of all user-made translations.
    If you want to update or submit a translation, feel free to PM me.
    Translations (open)

    Arabic - Attarhsase2
    Bulgarian - Muff1Ncho
    Czech - LordPgsa
    Chinese (Simplified) - tab415263
    Danish - Cannafix
    Dutch - speedlegs
    French- DragonSlayer875
    German - RasCas
    Hungarian - Anachen
    Indonesian - Yahya98
    Italian - Massimo1993
    Korean - Zwing87
    Norwegian - _AlexN_ and TheUnkownGamer
    Polish - Holls1
    Portugese (Brasil) - FelipeMarques14
    Russian - VADemon from http://minemania.ru/
    Slovak - LordPgsa
    Slovenian - jEErc
    Spanish - thxaaaa
    Swedish - Maxell
    Turkish - Developer
    Traditional Chinese - hellboyincs
    Vietnamese - etrubi1 from http://minevn.com/


    Permissions:
    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:

    [​IMG]
    (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 - :
    For example:
    [​IMG]

    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:
    [restricted]
    firstGroupName
    2ndGroupName
    3rdGroupName
    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:
    max-buy-price-5: 14
    max-sell-price-5: 15

    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:
    max-sell-price: 200

    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)

    USING SHOPS
    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.
    It's SIMPLE!
    Just LEFT-CLICK to SELL to shop, and
    RIGHT-CLICK to BUY from shop.
    (This can be changed in the config file)

    DESTROYING SHOPS
    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 :D)

    ItemInfo command
    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.

    Source code
    ChestShop is Open-Source =)
    You can find its code on https://github.com/Acrobot/ChestShop-3


    Thanks to:
    - kali876, ziomekYOYO and Herocraft server for testing the plugin and finding every little bug =)
    - Everyone who uses this plugin - really big thanks for this, I never thought it will be so popular
    - Everyone who provided translation - many people's lives will be easier now
    - @Nijikokun for Register
    - @LennardF1989 for awesome Persistence Reimplemented
    - @Temaska for fixing the plugin while I was on holidays
    - @VADemon for providing a great support for other users
    - @Euthyphro for his patience and really good bug spotting
    - vagrant326 for making a great price sheet
    - Epics for his great help
    :)
    If something's not working
    You can't change the sign color - that breaks the formatting.
    If that's not the issue, please give me this information, so I can help you faster.
    - CraftBukkit version (type /version in chat)
    - ChestShop version (type /csversion in chat)
    - Your economy plugin (iConomy? BOSEconomy? other one?)
    - Have you got any Permission plugin? Which one?

    [​IMG]
    Changelog (open)

    Changelog can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/
     
  2. Offline

    Niels

    Ofcourse I forgot about permissions.
    I got the 2.51 version.
    But im new to permissions.
    Is this the right way to edit it?


    users:
    Niels174:
    group: Admins
    permissions:
    crazyshooternl:
    group: crazyshooternl
    permissions:
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
     
  3. Offline

    Acrobot

    Yeah, but you can just add it higher, there is "Default" group - everyone could use shops then :)

    Sample Permissions:
    http://wklej.org/id/489424/
    Remember not to use tabulators.
     
  4. Offline

    PHOQUED

    @Acrobot -> J'ai installer IConomy sur MySQL et iConomyChestShop ne fonctionne toujours pas.
    Il m'est impossible d'acheter de la DIRT ( ID : 3 ) à 1$ alors que j'en dispose de 70.
    Le plugin me dit :
    Error: You do not have sufficient funds.
    Comment faire ?
    [buy]
    quantiter
    ID
    $

    ??

    Ou http://www.youtube.com/watch?v=Ukal2nTLC-I ??
    Quel est la bonne combinaison pour faire une boutique ?

    C'est compliquer pour nous les Français, les plugins anglais sont compliquer..


    Merci d'avance.
     
  5. Offline

    Acrobot

    I am sorry, I'm not English either :)

    You should write:
    Code:
    Your name here - it'll automatically put it here
    Item Quantity
    Item Price
    If you use noID (which I recommend) there will be item name here, otherwise if "useID: true" then put item ID here, or if "useID: false" - then put item name here.
    
    I don't really know what is wrong if you are doing everything right.


    FRENCH:
    Je suis désolé, je ne suis pas anglais non plus:)

    Vous devriez écrire:
    Code:
    Votre nom ici - il va automatiquement le mettre ici
    Quantité
    Article Prix
    Si vous utilisez noID (que je recommande), il y aura nom de l'article ici, sinon, si "useID: true", puis mis ID point ici, ou si "useID: false" - puis mettre le nom de point ici.
    
    Je ne sais pas vraiment quel est le problème si vous faites tout.
     
  6. Offline

    PHOQUED

  7. Offline

    Chris Lewis

    Ok... so maybe im an idiot... But everytime i place a sign I can't destroy it even to stop the shop?
    Also it says the sign is in an old format and to update it... how to update it if i can't destroy it?
     
  8. Offline

    Acrobot

    Ok, fixed now.
     
  9. Offline

    halvors

    Would be nice to have this sign format:

    Code:
    Name
    Buy/Sell
    Amout:Price
    Item
    
     
  10. Offline

    Chris Lewis

    Ok sorry i figured out the reason i can't break the signs and keep them broken is because LWC is causing an issue... so apparently i have to configure/permission that better.... any help on exactly how to do that would be great!
    [MERGETIME="1299780092"][/MERGETIME]
    wait.... grr.... disabling lwc didnt work either....
     
  11. Offline

    Acrobot

    Chris - did you download the newest version?
     
  12. Offline

    Chris Lewis

    I got it working now... it was also a little idiocy on my part in the permissions. Sorry about the trouble, the absolute latest version is working in the newest CB and MCSMP. THANKS A TON!!!
    [MERGETIME="1299781453"][/MERGETIME]
    Is it possible to set multiple items. For example I want to set a place for people to sell their gold to "the server" so they can generate more money into the economy. Can i make a store that buys Gold Ore and Gold Ingot?
     
  13. Offline

    Acrobot

    Chris: not really, but you can create a double chest and above each place a sign, one with gold ore and one with gold ingot.
    CraftBukkit sees double chest as two chests, so it will work like two chests.
     
  14. Offline

    Chris Lewis

    Ok, thanks. I like Halvor's idea as well so just a +1 on that sign design.
     
  15. Offline

    Acrobot

    Hmm, I just thought buying and selling in the same shop would be more functional, so let's keep it at least for some time, ok?
     
  16. Offline

    Chris Lewis

    lols, fair enough. but to his design, i thought it would be like this (pardon if im running away with his idea):

    Name - auto fill like it is now
    Buy/Sell - syntax Buy to just buy, sell to just sell. Buy:Sell to do both
    Amout: Price - amount to buy or sell: price buy;sell
    Item - same as it is now

    Just an idea. I like the plugin as it is now.
     
  17. Offline

    Grantman

    People can't buy from my chests ): any help would be appreciated :)
     
  18. Offline

    Chris Lewis

    That does bring up an interesting question though. Is everything in the database sellable in the shop by name? If not all by id? or are there any exceptions to one or both?

    And a sub question, what about wools that have been dyed? How do you sell items with same DB id but different hex?
     
  19. Offline

    Grantman

    I rel

    I just realised i was editing the world i wasn't trying it on :L i now have it on all worlds and thanks to that link i have corrected mistakes within my config and i now know that it is correct :) thank you so much (;

    also to answer your question, if your config for this plugin is like mine -
    useID: false
    noID: true
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true

    then if you put the wool (whatever colour) inside the chest then place a sign above it with-
    'blank'
    'amount'
    'price'
    'blank'
    then it will name it wool and will somehow know what 1 to give the player (im new to the mod but i tried it and it worked)
     
  20. Offline

    Chris Lewis

    Yes, the selling would work fine (to sell to other players) but i wonder how to buy it, or if it will just buy any wool (using your example)
    [MERGETIME="1299784495"][/MERGETIME]
    Also if ALL the database info is in there by name and by ID, for example as Server Admin if i spawned leaves could i sell them by dbid or name? since this is not an item you normally can get your hands on?
     
  21. Offline

    Acrobot

    Yes, every item ID/Item name works, even Leaves etc.
     
  22. Offline

    LucidLethargy

    Does selling to shops work yet without the chance for exploitation? (The only way I knew of before was going into "sell mode" and in that mode people could easily sell things like dirt to shop owners who have no intention of buying it!)

    Placing "buy" at the top of the sign has never worked for me, but I'm guessing that is what I'm looking for.

    Also...
    I would recommend worldguard, actually! I use LWC and Worldguard since I like giving my players the option, but worldguard is what protects my giant public mall next to our spawn. This prevents griefing and also gives automatic chest protection to all but those who own the certain shops, which are parented to the main region protecting the mall. You wont even need parent region though, that's just added anti-grief for the exterior. This is easier on everyone as they don't need to protect their chests though - more work for the admin or ops, but less questions and easier on the users (which is the true beauty and brilliant of this plugin - ease of use!)
     
  23. Offline

    Nurgo

    The new version is great, but I think that the new format of the sign is not explicit enough.
    People who see the sign for the first time don't understand what it means.

    I would like to have something like this:

    Code:
    [ <user name> ]
    [    Qty:64   ]
    [  B:95/S:105 ]
    [ COBBLESTONE ]
    Would it be possible to make the format customizable in the configuration file?
     
  24. Offline

    Acrobot

    Nurgo: not really, but I'll add the "Qty:", I guess, in some newer version.
     
  25. Offline

    z0z1ch

    What button to push what to sell?
    It turns out to buy only.
     
  26. Offline

    Acrobot

    You should type "/sell" in chat to change mode to selling and "/buy" to go back to buying.
     
  27. Offline

    z0z1ch

    All has turned out, thanks!

    How to create shop in which it is possible to sell only?
     
  28. Offline

    Acrobot

    You should type "0:sellprice" in the 3rd line of the sign. 0 = no (something), so "0:10" means no buying from this shop and "10:0" means no selling to this shop.
     
  29. Offline

    Moo Master

    My config is normal, but when i try to sell it says out of stock?
     
  30. Offline

    z0z1ch

    Moo Master
     
  31. Offline

    Acrobot

    Moo Master - if you use noID, then you must place at least one block of what you want to buy in the chest.
     

Share This Page