[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

    unrivaledneo

    Ooo, hope i read this right but this makes for player shops? and im guessing the stock is what is in the chest? Cant wait to try it out been waiting for a good player shop
     
  3. Offline

    Acrobot

    Yes, it is exactly what you were thinking :D
    You place stock in the chest, lock it, create a sign and you're done! :D
    Just remember to fill it regularly! :)
     
  4. Offline

    unrivaledneo

    Nice work! About time someone did this, tired of the global shops! and with permission can finally make a shopkeeper. Great work! Testing it out now and will see how it goes.
     
  5. Offline

    Phantom Index

    Can you make it so that we can sue item ids for the item we want to sell? Also can we have a feature where someone places a item in the chest so the owner of that chest would buy it.
     
  6. Offline

    unrivaledneo

    Everything works great for simple stuff, but im trying to sell like tools, i have tried using wooden pick, woodenpickaxe, woodenpick, any combo i can think of but still wont sell, though stone, dirt, single word items do.

    301 build i do not recommend, idk what was going on but crashed like crazy had to upgrade to 319 but it works!!
     
  7. Offline

    Seta

    AMAZING! Works like a charm!
     
  8. Offline

    Heinz Harald

    nice plugin! thx for developing it!
    Pls make it possible to buy and sell with chests. That would be great!
     
  9. Offline

    Dragonvine

    Hey, it works nicely, but the sign doesnt work unless I reset the server. :/
    Also I can't seem to get all the right itemnames right.
    When I do
    Dragonvine
    500
    5
    Iron
    it takes it as ironore.
    ive tried iron block and iron ingot but it doesnt seem to work. Having trouble with a couple other items too. Is there anyway you could make it compatible with item # also?
     
  10. Offline

    unrivaledneo

    had an idea anyway to get it so players could sell back to that merchant?
     
  11. Offline

    Mercury

    Please add ID support also.
    Also can you make for e.g MaxChests=3 per person?
     
  12. Offline

    unrivaledneo

    U can set it up so u can limit the amount of protected chests. with lwc works like that.
    --- merged: Feb 13, 2011 12:13 AM ---
    Anyone figure out how to tell tools?
     
  13. Offline

    Incendia

    Request: Store shop information in an sqlite or optional mysql database so we can use the top line as a store name
     
  14. Offline

    unrivaledneo

    Also Noticed I set up for wool.

    Unrivaledneo
    1
    35
    wool

    it works BUT no matter what color wool u put in, always gives u white.
     
  15. Offline

    jwideman

    Tried to set up for gold ingots, nothing worked.
     
  16. Offline

    Nijikokun

    :D <3
     
    Dreiak likes this.
  17. Offline

    unrivaledneo

    another thing :p it randoms whats to let certain people use shops and certain people not. same permissions but only some can use them.
     
  18. Offline

    iSushi

    I approve, I want that! ...

    Also:
    - When the stock is out, inform the owner, if (s)he's on. Not only the buyer.
    - Global shops, and sellable shops. :)
    - Placing chests away from the sign. So you can assign a huge storageroom for one shop/sign ^^
    - Be a hippe; add Colors in the chat.
    - Set up a config file, so you can edit stuff.
    - Like Mercury said, a config file with how many shops that can be placed. Or chests...
    - Hippe power! , Support for colored wool. (like unrivaledneo reported)
    - Make some more permissions stuff, like if you want people to be able to place more chests (good for roleplay servers, like tailor,shop-owner etc.)
    - And of course, finetune the permissions support, hotswap (plugin, look it up :)) and the permissions built in;
    Code:
    /pr
    (this is a reload commad for permissions) doesn't seem to work for it,
     
  19. Offline

    Bilkokuya

    Trying it with:
    Bilkokuya
    1
    10
    Dirt

    For some reason it's saying that the sign format is incorrect (no matter what I've tried). Does anybody have any suggestions? There is currently nothing in the server.log.
     
  20. Offline

    Nuuudel

    Sorry we have a problem... the Admins can be use the it with iconomy chest but the users cant it the message "[Permissions] You Cant buy from this shop
     
    netherfoam likes this.
  21. Offline

    Mercury

    Also sometimes when player sells something. It tells that Out Of Stock actually there are enough blocks.
     
  22. Offline

    iSushi

    Write the permissions yourself in the permission file, You MUST write it yourself, don't copy the permissions. Then restart your server. Worked fine for me.

    What you need to write is simply
    - iConomyChestShop.shop.use
    --- merged: Feb 13, 2011 7:38 PM ---
    Haven't happened to me at all... never.
     
  23. Offline

    Adondriel

    When you get double chests working ill get it :D i cant wait!
     
  24. Offline

    Acrobot

    @Nuuudel - I guess your permissions file is corrupted or incorrectly configured.
    @Mercury, iSushi - I'm making so you can type in material or item id, this way it shouldn't cause bugs with some item names, also it will inform the seller about the end of the stock now.

    There is a config file now, pretty simple at the moment :)
    First post is going to be edited in a few minutes...
     
  25. Offline

    PandaVidya

    been waiting for a sign type shop for ever! Finally can get a useful economy set up!
    --- merged: Feb 13, 2011 9:04 PM ---
    whats the diference between iconomychestshop.zip and iconomychestshop2.zip
     
    Collin Chessell likes this.
  26. Offline

    Mercury

    I think it is Version 0.2
    But it still says Version: v0.1 in the beginning.
     
  27. Offline

    Acrobot

    Uh, sorry about that, iConomyChestShopV2 is version 0.2, I just forgot to change it :p
     
  28. Offline

    TheMap

    Add item trading support and ill be all over this. I use gold bars for trading.
     
  29. Offline

    iSushi

    Errrr... Small question. How do I protect chests?
     
  30. Offline

    Acrobot

Share This Page