[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


    Keep me posted on any redstone torch progress, Acrobot! :D
  3. Offline


    If automatic protection for LWC works - sure.
    ATM it's only to check if the chest's protected, so noone can make shops.

    Sure :)
    I just wonder how to check if chest's inventory changed, on rightclick or what?
  4. Offline


    Does it check on each click?
    So theoretically the last person to buy the last of an item, it would know that stock was too low to complete any more transaction?

    Or would it only know when some tries to buy and its already out?
  5. Offline


    Sorry, I don't understand.
    I'll make it so the light changes whenever someone clicks the sign.
  6. Offline


    Seems at though in Alpha 5 that double chests are not protected, only one side of them is protected, a user pointed this out to me.
  7. Offline


    Oh, ok.
    I am coding the 2.0 now, so it'll be all implemented.
  8. Offline


    No like what I'm asking is if it is possible for your plugin update the amount of items remaing internally and know when its out of stock.

    For example:

    Chest has 8 diamonds, sells in stacks of 3.

    I buy 2 stacks of 3 and have 6 diamonds.

    The light should now go out since diamonds are too low to sell another stack.

    I was wondering if something like that was possible?

    edit: you make it sound like the redstone torch idea is more than possible, so I am going to continue construction of a player-based mall i'm making heavily incorporating redstone.

    I'm more than excited for 2.0 :D
  9. Offline


    Yes :)
    The only downside would be that if shop owner replaces the stock, it'll still be glowing, so you can fix it by clicking the sign.
  10. Offline


    Okay then the shop owner just has to click the sign after he restocks and all is well?

    Sounds awesome Acro
  11. Offline


  12. Offline

    Kevin Forte

    Sorry to be bothering you again, but it seems like the newest update has broken the NoID thing. Shops aren't generating an item type when created and therefore aren't working. Yes, I do have UseID false and NoID true.
  13. Offline


    Yes. It was intentionally left, because it caused some bugs.
    It may be restored in the future.
  14. Offline

    Kevin Forte

    Bummer, it was my favorite thing about this plugin. Never ran into any trouble with it either.
  15. Would it be possible to toggle the acceptance of damaged items to be sold back to shops? Right now, i have it so that if a user is found to be selling an item to players that is damaged, they will be fined. However, there is no way to stop people from selling damaged items to a shop.
    How hard would it be to make it so shops ignore damaged items? (It would have to be manual add for tools/weapons/armor because of things like wool and logs having diff block types based on damage values)

    If this is possible, and possibly may be added in the near future, that would be nice to know :)
  16. Offline


    I'm having a weird issue that I don't see others having in this thread.
    I can't seem to sell Porkchops or cooked porkchops.
    I have the sign and chest in the right positions, I have Cooked porkchops in the chest the sign says:
    B 3: S 0
    Cooked Porkchop
    Nothing happens when you right click the sign. If I change it to ID 320 - nothing happens
    If I change the sign to say the same thing but replace Porkchop with Dirt and test - it works great....
  17. Offline


    Will decimal stuff be supported?


    B 1.25:1.5 S

    etc. ?
  18. Offline


    Should the last line be COOKED_PORKCHOP ?
    That's the way a working one looks on my server.
  19. Offline


  20. Offline


    Selling a diamond sword at a store for x coin and we would like people to be able to sell to the store as well to make money but if someone sells a half damage diamond sword someone else is going to pay full price for that half used sword.

    So is it possible in future versions to differentiate between items that are at full health and not? Maybe prorate the cost based on item health or block selling of non-new items?
  21. Oh... also, i was trying to find a few gaps in the iconomy logs, and i noticed that chest shop transactions are not logged in the iConomy logs. Is there any way to enable this?
    Thanks :D
  22. Offline


    CB 556
    Essentials Fake Permissions

    having issues with creating admin or server owned stores. every time I type admin store, it just replaces with my name. any idea?
    Jackzilla88 likes this.
  23. Offline


    every time i try to make a shop it say config file missing please paste all the stuff to plugins and theres no config file in either of the download files
  24. Offline


    It checks if you have "iConomyChestShop.shop.admin" node, so I don't know what's wrong.

    Did you try downloading the zip files?...
    There is a config file there.
  25. Offline


    Thanks for the reply, I just realised this says it requires iConomy 4
    I am using 4.5 ... Probably the issue.

    Any plans to support the newer versions of iConomy?
  26. Offline


    Nope, it works with 4.5 just fine for me.

    @Anthon Fredriksson
    Neither of these bugs happened to me...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 8, 2016
  27. Offline


    Odd. Must be a conflicting plugin or something? I can't figure out why everyone but me (the only admin) can buy/sell at a chest shop.

    When I get a chance, I will troubleshoot a few plugins and report back if I find any issues.
  28. Offline

    Justin Hawtree

    make sure you have useID: true if your using item codes and or place the admin node in your permissions.
  29. Offline


    Well, after going through my plugin's one by one, I finally discover that the 3 random chests I chose to try were set up wrong by two different people (item name wrong) :x
    Sorry for taking your time here.

    I am however still having issues with setting up admin shops. As the admin (and owner) my permissions are set to * so that shouldn't be the issue.
  30. Offline


    Are you using the newest version of the plugin?
    It's iConomyChestShopAlpha6.zip from my main post, not the .jar.
  31. after some research, I had a user make it work with "Grilled_Porkchop"

    To find this I had to :
    - find id 320 in the data values web page
    - make an auction with this id,
    > so the name for this item in iAuction was written

    I read there is no more auto-item-name at the moment, so it can get pretty tedious to find out what's the item name we should use, since it's not the same that is indicated in the UI.
    Would be nice to have a function like /whatsthis that would tell you the info you need for the item you have in hand. (optionnaly it could tell you the amount you have in inventory too ^_^)

Share This Page