[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


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

    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    - 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

    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.

    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/

    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 - :
    For example:

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

    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)

    If you want to delete your old shop, simply SNEAK and destroy the sign.
    It's that easy =)

    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?

    Changelog (open)

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

    Darren Farr

    hi buying seem to work fine, but the selling option doesnt work

    the error is constantly

    "You have not enough items to sell"

    any ideas ?

    when they type /sell it says "Mode set to selling!"

    and the permitions are set

    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'

    i just dont understand

    is there a seperate config for selling or a way to set it up, ?


    also Acrobot i see your online feel free to visit my server at


  3. Offline


    one problem is that when u sell the person u sell to can go into negative money
    also is it possible to make chests that u can only sell or buy to?

    awesome btw :D
  4. Offline


    So i removed the sell line from all users in permissions but users are still able to sell? WHAT GIVES? I'm checking config now to see if I missed something but this is sad :( Lots of people are exploiting the sell and putting others in the negatives.

    nevermind, i lied, had to remove it from config :p have you tried this @The guy two posts up asking how to enable sell..
  5. Offline


    There is a config, where you can set "sell: false"
    That should fix your problem, also, I am fixing the bugs now.
    It should be done in about 1-2 hours
  6. Offline


    ruh oh....I removed the iconomy file that stored all the users money information because ppl were cheating with sell and wanted to start fresh and restarted server. now i'm getting this error. It was working fine before reload.

    edit, it was the sqlite file stored in the iconomy folder that I removed. Could it be because that user hasnt' "reactivated" his account on the sqlite file so it's calling an error in the server log since it doesn't know who to give the money to? Should I revert to the original and if so, is there a way to reset all balances on all names instead of one player? I would like to help out those who are in the negatives.

    nevermind: stores appear to be stored in the iconomy sqlite which makes sense but I didn't consider it so its my fault...oh well, reverting worked !
  7. Offline


  8. Offline


    @jonilaht - just use noID and place items you want to sell in the chest, or if you use id's then just put main item id there, like INK_SAC for dyes and WOOL for wool.
  9. Offline


    D'oh... thanks!
  10. I guess I should report it too.
    I confirm : I tested it today and got the exactly same behavior. Replacing chest content won't update the sign text until next sale.

    I guess the plugin should check that what's written on the sign coincidate with what's in the chest before selling it.
  11. Offline


    This is the error I recieve whenever any one on my server attempts to make a shop, Im not exactly sure how to fix it.. at all.

  12. Offline


    What CB version, what iConomyChestShopVersion, what iConomy version and your config?
  13. Offline


    Does this support iConomy 4.3.2 using CB Build #493 and Permissions 2.5.2?
  14. Offline


    iConomy 4.3.3, CB493, Permissions 2.5.2 - works
    iConomy 4.4.1, CB493, Permissions 2.5.2 - works
  15. Offline


    Getting this error when I try to buy/sell to any shop:

    20:02:38 [ALLVARLIG] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop

    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.j
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:480)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    When I click on the Sign I lose the money I should, but I don't get any items for it, and then the Console Error pops up...

    EDIT: Found the problem, I had changed the name of the currency in iConomy, which messed up my shops, is there a way to fix this, cause I don't like the default ''Coin'' Currency...
  16. Offline


    for me, 7.2 was working (except sell to shops) and then I upgraded to 0.81 and nothing is working. There are no errors, but I can't create a shop. Permissions are all set up. I'm on b493
  17. Offline


    Patrick - hmm...
    Did you update your config file?

    EDIT: Tested it just now, everything works for me

    @Koribi - CB version, iConomy version, Permissions version, do you have config file?
  18. Offline


    Github link to the jar is returning 404.
  19. Offline


    Because I was just uploading a newer version :)
    Vaupell likes this.
  20. Offline


    Awsome, gonna try the new version right now ;)
  21. Offline


    Did either of the last two bug fix updates do anything about the item swapping bug I reported ?
  22. Offline


    Where i can get OLDS BUILD ? because i use iConomy 2.1 and newest iConomy release bug for me ... :(
  23. Offline


    @Twisted - not yet, I couldn't find an event when chest inventory is changed.

    @Samylots - no old builds, the newest plugin works with iConomy 4 - it's worth updating, just be sure to use MySQL or SQLite.
    I can provide you with some old version of plugin when I'm back home, but it won't be the newest version and I won't support it.
  24. as I said, the solution might be to check the correlation between what's written on the sign and what's in the chest

    if( (nothing in the chest) or (no item with sign 4th line id in the chest)) then "Out of Stock" else MakeTransaction.
  25. Offline


    It's becaus the new iConomy don't have the " ho much to give every minutes ... " so can you give me the build who it work ith the iconomy 2.1 ??? Ty
  26. Offline


    Works fine with 493 downloaded yesterday 6th mar..
    and made a small supermarket with it ;)

    Sorry for crazy brightness, trying to find a good counter to youtube darkness..
  27. Offline


    Anything in the works for shop owners to have the option to set chest/sign up for sell or buy and not both?

    I had to deny selling because players will put shop owner in neg by selling them stuff.

    If the owner could set the sign to sell or buy would stop that...
  28. Offline


    McSpuds - I think I fixed the neg values, but yes, you soon will be able to set up item price like "20:10", where 20 is the price of selling, 10 is for buying to shop. (And 0 for no buying or selling)
    Also, in few minutes I'll upload better version of the plugin, which shows if the config's set up properly and if it exists :)
  29. Offline


    It was a problem with LWC, it was registering the chests as other blocks, but it's fixed now.
  30. Offline


    Okay, I updated the plugin and I am happy, because now people should see what problem have they got(if any :D)

    And no, the sign changing bug has not yet changed.
  31. Bonojour!!! Haughtiness plugins:) I have succeeds has creer a safe(chest) etc. but when a member(limb) takes an arcticle the money(silver) is not removed oO

    Did I forget a thing(matter)?

Share This Page