[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


    Hmm, can i SELL items to the chest? Like.. i want to have a chest that buys bread from farmers..

  3. Offline


    Having issue with .4 updated to .5 I can't sell bow's using either

    or using​
    No console errors.... any ideas ?? :D
    So far all other items work :)
  4. So if someone's in game name, like mine, is too long to fit on a sign... What do we do then?

    Edit: Upon looking at the source code, though I've not used java before, looks like it wouldn't be too bad to just do something that checks to see if the name was specified on the sign. If not, default to the person who placed the sign or who has protection on the sign. Would only be a few more lines of code unless I'm mistaken (which is highly likely :p ).
  5. Offline


    I have made a shop and it says it has been made succesfully and all but when I right click the sign nothing happens and there are no errors anywhere. What did I do wrong? And how can I fix it?
  6. Offline


    This happens for me too. It worked the other day, and now it doesn't work at all.
  7. Offline


    Look up the ATM chest shop.
    --- merged: Feb 20, 2011 10:27 AM ---
    @john, beaver
    You have your config set to use ID's and you're using names or cfg's set to names and you're using ID's.
  8. Offline


    just to get this straight.
    If i own 5 stone. I can set up this chest/sign thing.
    I put the 5 stone in the chest. And people can buy this 5 stone for iconomy money, which i get.
  9. Offline


    For items names you should be using the items.db that comes with iconnomy
    And You cant limit the shops using LWC only how many shops can be protected they could still place a shop chest and not have it protected.

    Limits for groups should be done so they are in the info section for the group in permissions (dropChest did this)
    Some Form Of selling to the shop would be nice. If not Shop owners will barter With other players in chat any way do it don't really matter. but it would be nice.

    if ninji is reading here I know you have alot of plugins to update bud most have been replaced by other ppl the main 1's that count are permissions and iconomy keep them working and every 1 will be happy.
  10. Offline


    We've run into another problem... It seems that blocks sell correctly, meaning every transaction takes money and the buyer gets the blocks... But items like pork and bread, don't work out right... The money gets taken, but the user does not get the item, but it is removed from the chest... The only time the user actually gets the item, is when it is the last item in the chest. Hope I explained this well enough... Thanks!

  11. can someone show me how to set up a shop?
    my sign says:
    4(i have item ids enabled)

    i have a chest under it filled with cobblestone... when someone takes cobblestone out, it dosen't do anything... i also protected it in lwc with a public lock..

    EDIT: never mind i got it... thanks :D what happens if you want to sell more than one item in a chest? is that possible? i don't think it is, but will it be possible?
  12. Offline


    Generates error with the lastest rev of craftbukkit.

    2011-02-20 16:59:44 [WARNING] Using the stupidly long constructor com.nijikokun.bukkit.iConomy.iConomy(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of iConomy to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-20 16:59:44 [WARNING] Plugin 'iConomy' (ver 2.0) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-20 16:59:44 [WARNING] Plugin 'iConomy' (ver 2.0) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-20 16:59:44 [INFO] [iConomy] version [2.2] (Aime) loaded
    2011-02-20 16:59:44 [WARNING] Using the stupidly long constructor com.bukkit.Acrobot.iConomyChestShop.iConomyChestShop(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of iConomyChestShop to remove it! (Nothing is broken, we just like to keep code clean.)
  13. Offline


    That's nothing bad, but still gonna try fixing it.

    The 2nd line tell it how much you want to sell
  14. Offline


    Um, that isn't the only thing. In my build craftbukkit doesn't display anything when you purchase. It still works fine, but you are not updated with any information when you make a purchase. Quite a few plugins are having similar issues. I will keep checking for updates from the bukkit guys and see if this is fixed on their end.

    EDIT: missed something. Items work, but things like cooked pork don't anymore. The message issue also exists. Items are transfered after a delay also... chaos I tells you!

    Getting this error upon click. They changed several events these last couple days, some new plugins have been created using these prompting updating to newest bukkit, etc...
    2011-02-20 13:05:11 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.con
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
  15. Offline


    Update to the newest version.
  16. Offline


    Thank you. Did about a half hour ago, but very appreciated. Hectic day for server plugins.

    EDIT: No dice. Still getting BLOCK_RIGHTCLICKED error

    Updated craftbukkit again, apparently last snapshot is totally screwed. NullPointerExceptions on the world chunks now... will have to wait.
  17. Offline


    Hmmm, works for me.
    Probably some other RightClick mod messes something up, try clean minecraft with iConomy and Permissions?
  18. Offline


    Will look into that once they fix the craftbukkit build.

    EDIT: Still getting the exception. Went to the new "jenkins" last recommended jar for craftbukkit. (sorry still don't get the versioning of this software yet) And I am still getting the exception for the right click event with only Permissions, iConomy, and iConomyChestShop included.
  19. Offline


    I seem to be having a problem with this plugin
    This is the error:

    Feb 19, 2011 8:58:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event SIGN_CHANGE to iConomyChestShop
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoad
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManag
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:799
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    I looked through the code and this is where its errors:
     if (!hasPermissions(victim, "iConomyChestShop.shop.create")) {
    So I'm guessing its my permission plugin but I dont know whats wrong with it
  20. Offline


    I'm having the exact same problem. I have a few chests set up at the moment. For example, I have 2 chests on a wall that are all labeled correctly using the new auto fill future;


    The chest below the first sign is filled with 10 full stacks of glass. A friend right clicks the sign, I get the message, he gets the message, money is subtracted from his account and put in to mine, and the items are subtracted from the chest and put in to his inventory.

    A similar chest located not far away has a sign above it, with all of the correct data. It's filled with diamond pickaxes. He right clicks the sign, money is subtracted from his account but not deposited in to mine, and he doesn't receive the item. He gets a 'This shop is out of stock!" message. Sometimes when he tries, it will actually appear in his inventory after he relogs.

    I've tried using ID's, different user names on my server, and different version of iConomyChest. All of my chests that sell 'blocks' seem to be working fine. Chests that sell unstackable items (such as pickaxes, food, etc.) aren't working properly for me. PuTTY isn't reporting any errors either. Help? <3
  21. Offline


    This is what happens when I attempt to right click a shop on version 345:
    Would love a fix :X

    Feature Request:
    Type "ATM" for person and allow to sell to server! With that, we can actually uninstall our command based system!
  22. Offline


    Maybe try resetting the Permissions/config.yml file to default one, it likes to get corrupted somehow :/

    I don't know, it works for me with the newest version :/

    EDIT: Yeah, I tried corrupting the file. It gave me exactly the errors you were recieving.

    Don't use tab character, use spaces.
  23. Offline


    I get a long error that says "Could not pass event BLOCK RIGHT_CLICKED to IconomyChestShop
    java.lang.nullpointerexception" Build 323
  24. Offline


    Read the post above.
    Or, it may be because build 323 is kind of old now, I don't think it works now.
  25. Offline


    when I set up a shop in which people should be able to sell stone to it- i constantly get the error "you do not have enough items to sell!" which i do as i am holding 7 stone.

    all capitalization is as it appears. any help? I am running craftbukkit 35*
  26. im getting the infamous block right click error :p
    EDIT: on 0.6...
  27. Offline


  28. Offline


    Update CraftBukkit.
    The newest relases changed plugin creation code ("Using the stupidly long constructor" one).
  29. Offline


    Same thing is happening to me. I have v0.6 and CB[345]

    EDIT - Nevermind! I was ninja'd.
  30. Offline


    Nice Sell works nice, though i set it up to test as Buy/1/1/wool and it buys each wool for 61 lol

    using build 344 btw
  31. Offline


    Uh, It shouldn't.
    I test it and see what happens.

    Can't reproduce it.

Share This Page