[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

    KrisEike

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

    Kris
     
  3. Offline

    MardukEthiopian

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

    MardukEthiopian​
    1​
    500​
    Bow​
    or using​
    MardukEthiopian​
    1​
    500​
    261​
    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

    john286

    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

    Beaverbeliever

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

    Acrobot

    @RenStrike
    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

    Moe041991

    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.
    right?
     
  9. Offline

    RustyDagger

    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

    Red00

    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!

    Red
     
  11. can someone show me how to set up a shop?
    my sign says:
    tips48
    64
    25
    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

    fatepower

    Generates error with the lastest rev of craftbukkit.

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

    Acrobot

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

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

    ShoTro

    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...
    Code:
    2011-02-20 13:05:11 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.con
    figLang(iConomyChestShopBlockListener.java:69)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:186)
            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)
     
  15. Offline

    Acrobot

    @ShoTro:
    Update to the newest version.
     
  16. Offline

    ShoTro

    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

    Acrobot

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

    ShoTro

    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

    GamezGalaxy

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

    Code:
    Feb 19, 2011 8:58:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NullPointerException
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
    Permissions(iConomyChestShopBlockListener.java:53)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
    ignChange(iConomyChestShopBlockListener.java:237)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoad
    ava:251)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManag
    ava:214)
            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:
    Code:
     if (!hasPermissions(victim, "iConomyChestShop.shop.create")) {
    So I'm guessing its my permission plugin but I dont know whats wrong with it
     
  20. Offline

    LogSpoon

    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;

    (Name)
    (Amount)
    (Cost)
    (Item)

    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

    LucidLethargy

    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

    Acrobot

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

    @LogSpoon
    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.

    YOU HAVE YOUR PERMISSIONS FILE CORRUPTED.
    Don't use tab character, use spaces.
     
  23. Offline

    PatrickFreed

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

    Acrobot

    @Patrick
    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

    Jear

    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.
    sign:
    buy
    1
    1
    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

    PandaVidya

  28. Offline

    Acrobot

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

    aPunch

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

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

    unrivaledneo

    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

    Acrobot

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

    @unrivaledneo
    Can't reproduce it.
     

Share This Page