[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. So in the next version, you can make that? GREAT :)
  3. Offline


    This plugin rocks - keep it up!
  4. Offline


    Next version, also - the iConomy bug wasn't my plugin's fault.

    You can make admin shops now, set shops with someone's name etc.

    I plan on re-writting it in this week, so be patient :)

  5. Offline

    Kevin Forte

    Hey, I see that you're in the process of working on this and are already aware that it isn't currently functioning, so I won't bother you with that, just wanted to say how awesome this plugin is :D Keep it up man!
  6. Offline


    Hey, first of all I really like this plugin and especially the new admin shop option.
    But when I set the buy amount to 1000 and the sell amount to 250 it just doesnt work.

    When I try to sell the item I only seem to get 2 coins and when I want to buy from the shop it says "can't buy from this shop."

    And when I try, say 10:10 it works just fine.
    Any idea what the problem could be?

    Im using CB version 536, but it doesnt give any errors in the console.

  7. Offline


    Hmmm... I'll look at it...

    BTW, plugin's being re-written :p

    EDIT: I see what's the problem.

    Re-download now please.

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


    thanks for the color fix

    if someone likes a colored german translation. grab it.

    German (open)

    prefix: '&f[&aShop&f] '
    somebodyBoughtFromYou: '&a<buyer> &fhat &a<amount> <item> &fgekauft. &a+<cost>'
    youBought: '&fDu hast &e<amount> &a<item> &fvon &a<owner> &fgekauft. &c-<cost>'
    yourBalance: 'Du hast nun &a<money>&f.'
    inventoryFull: '&cDein Inventar ist voll!'
    noEnoughMoney: "&cDu hast nicht genug Punkte!"
    outOfStock: '&cAusverkauft!'
    yourShopIsOutOfStock: '&cDein Shop ist ausverkauft!'
    cantBuyFromYourOwnShop: "&cDu kannst nichts aus deinem eigenem Shop kaufen!"
    cantSellToYourOwnShop: "&cDu kannst nichts aus deinem eigenem Shop verkaufen!"
    shopCreated: '&aDein Shop wurde erfolgreich erstellt!'
    chestFull: '&cDiese Kiste ist Voll!'
    somebodySoldYou: '&a<buyer> &fhat dir &e<amount> &a<item> &fverkauft! &c-<cost>'
    youSold: '&fDu hast &e<amount> &a<item> &fverkauft! &a+<cost>&f!'
    notEnough: '&cDu hast nicht genug zum verkaufen!'
    modeSell: '&aDu kannst nun verkaufen!'
    modeBuy: '&aDu kannst nun kaufen!'
    stealing: "&cAchtung! Diebstahl!"
    notEnoughMoneyForShop: "&cVerkaeufer hat nicht genug Punkte!"
    tmpFix: "&eItemname angepasst!"
    sellerHasNoAcc: "&cVerkaeufer existiert nicht!"
    noSelling: "&cDu kannst diesem Shop nichts verkaufen!"
    noBuying: "&cDu kannst von diesem Shop nichts kaufen!"
    oldSign: "Sign is in old format, please update!"
  9. Offline


    How would you do stone slab on the sign any help would be cool
  10. Yes, of course, we're on alpha 2 at the moment.
    I just meant to (lately) thank you for this specific change that I had been asking for.

    That would be great. ^__^
  11. help! it says this "sign is in old format. please update!" how do i update or fix it?
  12. Offline


    the old format is to put just the price on line 3 ... you now have to use the format 10:5 (meaning u can buy for 10 & sell for 5)

    problem is .... it no longer fills in the last line
  13. Offline


    timboland: as I said, noID is removed from the code. It caused WAY too much complications.
  14. Offline


    i have a problem if i put
    - 'iConomyChestShop.shop.admin'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.create'
    in the premission all works but tan i have no premission in game i can´t give items and i can´t use /time day ond other commands please help
    can you send me a correct world.yml data text my word name is word 3 and my ip is:
    you can contact me under skype:tonihoks e-mail:[email protected] and teamspek3 ip: ts3.nitrado.net:24900
  15. Offline


    Oh wow, I'm using Alpha 3 and anyone on my server can create admin shops and set whatever prices they want. So say they create a shop to sell 1 dirt for 10000 iconomy points, they can. PLEASE add a config for that so that only admins can do this. Using the permissions addon atm.
  16. Offline


    YAY :D Is it even possible?
  17. Offline


    We will find out when I will be re-writing the plugin :)

    Wait, how?
    Normal people can have big item prices, but they cannot create admin shops.
    Please post server.log :)

    You probably messed up the Permissions file.
  18. Offline

    Kevin Forte

    So quick question: If a user purchases from your shop while you are offline, are you reimbursed and notified upon logging in?
  19. Offline


    What server.log? I'm looking at the one Multiplay gives and it doesn't show anything about creating shops, just commands used, chat logs etc.

    They can't break the sign afterwards, but can set all the information they want.

            default: true
                prefix: ''
                suffix: ''
                build: true
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
                - 'essentials.afk'
                - 'essentials.compass'
                - 'essentials.help'
                - 'essentials.helpop'
                - 'essentials.list'
                - 'essentials.mail.send'
                - 'essentials.me'
                - 'essentials.motd'
                - 'essentials.msg'
                - 'essentials.rules'
                - 'essentials.spawn'
                - 'iConomy.payment'
                - 'mcmmo.motd'
                - 'mcmmo.skills.mining'
                - 'mcmmo.skills.woodcutting'
                - 'mcmmo.skills.repair'
                - 'mcmmo.skills.unarmed'
                - 'mcmmo.skills.archery'
                - 'mcmmo.skills.herbalism'
                - 'mcmmo.skills.excavation'
                - 'mcmmo.skills.swords'
                - 'mcmmo.skills.acrobatics'
                - 'mcmmo.skills.axes'
                - 'towny.town.claim'
                - 'tombstone.use'
                - 'tombstone.freechest'
                - 'tombstone.large'
                - 'tombstone.sign'
                - 'tombstone.freesign'
                - 'tombstone.quickloot'
                - 'tombstone.playermessage'
                - 'essentials.signs.mail.create'
                - 'essentials.signs.mail.use'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
    useID: false
    noID: true
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true 
    #protection - do you want to use anti-stealing protection?
    #useID - use numerical ID's?
    #noID - use shops without the need for ID?
    #sell - do you want to activate selling?
    #distance - distance between the chest and the sign
    #position - position of the chest, goo.gl/YItRO
    # prefix will be dispayed at the beggining of every message.
    # you can use terms lile <buyer>, <amount> or <item> in messages however
    #     only certain messagess offer this.
    # <buyer> - nick of the person who bought.
    # <owner> - nick of the person who own the shop.
    # <amount> - amount of item
    # <item> - name of item
    # <money> - amount of money with iConomy currency
    # You can always use hMod colors, like
    # &1, &f etc...
    # For example: This is my&6 golden text.
    # somebodyBoughtFromYou - is dispayed to you when buyer successfully bought from your shop
    #               You can use: <buyer> <amount> <item> and <cost>
    # youBought - is dispayed to you bought something
    #               You can use: <owner> <amount> <item> and <cost>
    # yourBalance - displays your current balance 
    #               You can use: <money>
    # inventoryFull - you would never guess but it is show when you have full inventory
    # noEnoughMoney - lacking in money?
    # outOfStock - displayed when you are trying to buy from shop that is empty
    # yourShopIsOutOfStock - displayed when somebody is trying to buy from your shop which is empty
    # cantBuyFromYourOwnShop - displayed when you are trying to buy from your own shop
    # cantSellToYourOwnShop - displayed when you are trying to sell to your own shop
    # shopCreated - displayed when you have craten new shop successfully
    # modeBuy - displayed when player switches to buying
    # modeBuy - displayed when player switches to selling
    #stealing - displayed when player tries to destroy someone's shop
    #notEnoughMoneyForShop - seller has not enough money to buy items from you.
    #tmpFix - displayed when sign update occurs
    #sellerHasNoAcc - displayed if seller has no iConomy account
    #noSelling - displayed when seller doesn't want you to sell your items there
    #noBuying - displayed when seller doesn't want you to buy items there
    #oldSign - sign is in an old format
        prefix: '[Shop] '
        somebodyBoughtFromYou: '<buyer> bought <amount> <item> for <cost>!'
        youBought: 'You bought <amount> <item> from <owner>.'
        yourBalance: 'After purchasing you have <money> left.'
        inventoryFull: 'Your inventory is full!'
        noEnoughMoney: "You don't have enough money!"
        outOfStock: 'This shop is out of stock!'
        yourShopIsOutOfStock: 'Your shop is out of stock!'
        cantBuyFromYourOwnShop: "You can't buy from your own shop!"
        cantSellToYourOwnShop: "You can't sell to your own shop!"
        shopCreated: 'Your shop has been successfully created!'
        chestFull: 'This chest is full!'
        somebodySoldYou: '<buyer> sold <amount> <item> for <cost>!'
        youSold: 'You sold <amount> <item> for <cost>.'
        notEnough: 'You have not enough items to sell!'
        modeSell: 'Mode set to selling!'
        modeBuy: 'Mode set to buying!'
        stealing: "Don't steal!"
        notEnoughMoneyForShop: "Seller has not enough money!"
        tmpFix: "Updating item on the sign!"
        sellerHasNoAcc: "Seller's account doesn't exist!"
        noSelling: "You can't sell to this shop!"
        noBuying: "You can't buy from this shop!"
        oldSign: "Sign is in old format, please update!"
    It does not notify you when you are logged off or when you log back in. It does though put the money into your account.

    Oh, I think I figured it out.

    I had user named _Manito_ try to create an admin shop and it worked but he couldn't break it.
    I had user bananacock try to create a shop and it auto changed the top line to his name instead of admin shop.

    The _ in his name is causing the error.

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


    Feature suggestion: Ability to link redstone torch to a sign so the torch is active when there is stock but turns off when out of stock.
  21. Offline

    Kevin Forte

    I think this was already suggested, but idc, it's an awesome idea regardless. xD
  22. Offline


    Game breaking bug: This allows you to STEAL others money that you normally wouldnt be able to.

    Another player who is a DEFAULT user is able to...

    Set ChestShops for someone else....
    and force the players to buy/sell dirt...

    Is there a fix incoming for this? its pretty major...

    Update: this was with the latest - it also appears it doesnt obey the permissions on who can create the shop or not - no one has permissions to buy/sell/create.
  23. Offline


    Eggs are bugged.

    Anyone including myself can't create shops for eggs using the item name EGG.

    Also including admin stores.
  24. Offline


    It appears I can't recreate this issue with the Selling to shops - it keeps recreating the users name .. yet a player named "Danda" can keep selling to me without me giving him permission.
  25. Offline


    I just tested this with a multiple users, default ones and donors and it would auto change to their name. Even had them use different users names.
  26. Offline


    I also tested this - in depth. The only user that could do this was Danda so far. He could set it to anyones name - I tried deleting his entire permissions (even removing him) and for whatever reason - hes integrated into this plugin - as if he were neo and the matrix.

    I tried deleting his player.dat file, removing him completely from permissions etc - he was still able to do this. I have no clue why or how this is possible but I cannot reproduce it even with him not being present in the permissions file. He can't do LWC but hes still able to make a chest shop.

    Another strange thing is - whenever he leaves the TOP line blank - it doesnt auto fill with his name - as if he was invisible to the plugin - thoughts?
  27. Offline


    I'd like to be able to specify only specific shops to be able to be sold to, so I can let players sell their junk to a "trash" chest for x price per block, possibly variable per block type they're selling (stone would be worth more than dirt)
  28. Offline


  29. Offline


    Now that's weird...
    I'll test it when I get home, but seems like strange one.
    Also, the "_Manito_" bug - hmm, I think I can fix it.

    Remember, I am re-writing this to be readable and fast.

    The "EGG" bug - I'll test it, but I think it's due to item name's length :p
    EDIT: I think it isn't...

    Just set up buying price to 0?
  30. Offline


    thanks i have find my problem now it is a very nice plugin
    joun my server its a offlinemode serverand the server is24/7 ip:
    we have teamsteake too ip: ts3.nitrado.net:24900
  31. Offline


    Whenever I set up a shop to sell for <amt> and buy for 0, nobody can buy anything from my shop. I don't want to completely disable selling to shops, so is there a way that people can specifically set their shop to sell only without changing the option in the config to disable selling to shops?

Share This Page