[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

    Acrobot

    Oh, you mean buy shops?
    It's a bug, I'll fix it some time, I don't have time atm (school etc...)
     
  3. Offline

    Da_Norc

    Looks interesting, keep up the good work!

    I really want to move to this system, but the buy-for-free bug and lack of double-chests are deal-breaking for me for the moment. :(
     
  4. Offline

    Vittek

    Hello

    Nice plugin!
    First I took a bit of a leap of faith and updated from CB 441 to 480 I think. And to my surprise everything worked!
    Expect this plugin :((

    Whenever someone tries to buy something this error pops up:
    What's the problem?Problem coming from iConomy? Can anything be done besides downgrading back to an earlier bukkit version? Or can a hotfix be applied?

    CB 480 Iconomy4.1 Groupmanager 0.99 and latest ChestShop.
     
  5. Offline

    Acrobot

    It's a problem with iConomy, they have changed it again I think :/
    Or, you may have downloaded an incorrect version.
    Try downloading iConomyChestShop.zip
    If it doesn't work, I'll post a fix soon.
     
  6. Offline

    kelton

    I am getting the same error as posted above. Great plugin and keep up the great work thank you very much.

    Code:
    2011-03-01 19:50:20 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
        at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:116)
        at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:232)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  7. Offline

    uncovery

    works now! Please make the link to the config more visible or have the software create one if it is missing....
     
  8. Offline

    Josh W

    HELP! I am using iConomy 3.0 and this with the "for iConomy3" version but no matter what I always get "[Permissions] You cannot create shops" so I go into permissions and check, and I have correctly put in the permissions to use this but it continues to do this. Help me please!
     
  9. Offline

    Machete.Panda

    I had an idea of using Redstone Wire for connecting the chest to the sign. Not sure how dificult that would be to work out but it would make things a lot easier for my users.
     
  10. Offline

    Olat

    Same thing as this guy. New iConomy 4.1 Latest Chest Shop. And same error.. PLEASE Fix soon. My merchant faction relies on this!!!
     
  11. Hello, I wonder if theres a certain version of permission needed? Does it work with GroupManager or its FakePermissions implementation, too?
    thx
     
  12. Offline

    Acrobot

    Uhh... Why doesn't iConomy download work when I need it -.-
     
  13. Offline

    imaxorz

  14. Offline

    Acrobot

    Thank you :)
     
  15. Offline

    imaxorz

    Yup! I'm using dynamic shop and your plug in, and right now neither work with the new economy, so I'm going back until the 3 play nice together.
     
  16. Offline

    Acrobot

    Updated!
    Works for me :)
     
  17. Offline

    Snookieboy

    Just tried the latest version with iConomy 4.1, Bukkit Recommended Build (440) and I cant create shops, nor buy from them. the errors are:

    When creating a shop:
    When right clicking a shop:

    :( Any ideas at all? Sorry to be a pain but my users love this mod. :)
     
  18. Offline

    Gavor

    Code:
    10:37:19 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
        at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:281)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:222)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
        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)
    
    With iconomy 4.1 and chest shop 0.8 when trying to use a buy sign (ie player selling items to the shop).

    Buying items FROM a shop works fine.

    More info: if the buy sign is right clicked and the chest is empty then the message 'Shop is out of stock' is displayed. If I manually place one of the specified items in the chest then right-click the sign the above error is displayed in the console.

    Can you post a copy of the config file for me too please? When I download a new copy of the plugin it doesn't create the config file so i don't know if I have the correct format anymore. The plugin description talks about a protection parameter, but if I add it the plugin tells me the config is incorrect. Lastly (Sorry) what are the /buy and /sell commands listed in the plugin description for? When I use either they display errors (and I never used them before to buy or sell).

    Thanks!
     
  19. Offline

    Twisted

    I had a read through the thread and couldn't see this mentioned elsewhere but I've been testing this out and it's pretty easy for players to scam each other.

    For example, put a diamond in the chest and set price for 1000 then the sign is made listing diamond for 1000. Then if you open the chest and remove the diamond for another block lets say dirt, the sign will show diamond still but it will be dirt in the chest. Then if a player clicks on the shop it will sell them a block of dirt for 1000 even though the sign said Diamond, after the person buys it the sign updates to show dirt for 1000 but it's too late by then.

    I don't know if this is a bug or some conflict with the setup I'm running (bukkit 485, group manager 1.0, iconomy 4.2)
     
  20. Offline

    PatrickFreed

    I'm not a big fan of iConomy 4.0, so can I still use the one for 1.3 with iConomy 2.2?
     
  21. Offline

    bogboom

    Newest craftbukkit, iconomy, and this plugin as of just now throws these errors:

    Code:
    [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFace.
            at java.lang.Enum.valueOf(Enum.java:214)
            at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:520)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:252)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:812)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
            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)
    04:16:10 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFace.
            at java.lang.Enum.valueOf(Enum.java:214)
            at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:144)
            at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:222)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            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)
    
     
  22. Offline

    Skate

    Hello i have put the premissions right but it doesnt allow me to create shops
     
  23. Offline

    imaxorz

    2011-03-02 23:57:29 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyC
    hestShop
    java.lang.NullPointerException
    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:419)
    at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:232)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Craftbukkit 440
    iConomy 4.1
    Your latest release.
     
  24. Offline

    LucidLethargy

    So the buy feature (/sell) works great, but I have a big problem with it... People can go around selling stuff to existing shops, which were NEVER intended to be sold to for the same amount they were selling at.

    For me, all I need is a fix to the above, or a sell blacklist/whitelist. With a sell blacklist I can simply make GOLD_INGOT the only item you can sell, and thus my economy and shop system would work flawlessly. My economy simply runs off gold ingots being sold, and items being bought and sold with that currency.

    I love what you've done here either way, but that extra feature will make this plugin hands-down one of the most advanced, intuitive and useful on all of bukkit. Right now it's already just about there, though, awesome work man! :p
     
  25. Offline

    Acrobot

    Everyone having a java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFace. - you have no config file/file corrupted.

    Everyone with NullPointers
    Please post your iConomyChestShop/config.yml

    @Lucid - ok, I'll add blacklists soon :p
     
  26. Offline

    axebyte

    Just wondering if the latest update fixed the shop owner selling to self, and money coming from the owner to buy the items?
    Thats the only thing keeping me from installing this and using it alot.
     
  27. Offline

    Acrobot

    Yes, it fixed it :p
    Now you can't sell to your own shop, also, there is no "buy" at the first line of the sign
     
  28. Offline

    imaxorz

    Does this work with iConomy 4.2? :)
    --- merged: Mar 3, 2011 6:10 PM ---
    13:09:11 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFa
    ce.
    at java.lang.Enum.valueOf(Unknown Source)
    at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:144)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.j
    ava:222)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    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)
    13:09:11 [INFO] Loaded world: world
    >

    I'm using CF 440 iConomy 4.2, does the same thing with 4.1.

    Using a fresh config file too.
     
  29. Offline

    Acrobot

    Your config file is broken :/
    Use the config FROM .zip, extract everything besides /src folder to the /plugins folder :)
     
  30. Offline

    imaxorz

    Ok, let me try that. I figured if I let it generate one its going to be ok.
    --- merged: Mar 3, 2011 6:46 PM ---
    I know what happened now.

    I'm testing on my pc as not to keep restarting my server. And it wasn't working when I was clicking old sing shops I made.

    New ones worked fine. :)

    If I only want to use number IDs


    useID: false
    noID: true


    This is what I want right?

    Also, how does protection work? We been using Lockette for now.
     
  31. Offline

    soloman981

    people cant sell to my shop beacuse they got out of stock message what going on?
     

Share This Page