[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


    I meant is it possible for you to write the code in to do so? I see this as a great addition to Chest Shop economy.

    I'd like to be able to do:

    Admin Shop
    <buy:sell> ;usually just sell

    And have that shop sell to the player buying all the items in <kitname>. It would help immensely for Chest Shop organization as well.

    ie: I allow my players on my server 30 starting monies(can be changed, of course). I want to allow them to take that 30 monies and buy a starter kit, which includes all four pieces of Iron Armor, all pieces of Iron Tools(1 each), a bow, and 10 arrows. Right now, this takes up one Chest Shop per item. I'd like to condense the space these shops take up.
  3. Offline


    I've encountered a problem with certain users. If the player name is longer than the sign can hold they can't buy or sell at all. It throws an "account doesn't exist"
  4. Offline


    @Acrobot it seams that the chestshop is not working right in 1046 (most servers upgraded to) and permissionsbukkit yes using superpermbridge. Seams to not prevent players from setting up a shop. Also you must use their name on the sign or it says something about near by shops hehe.

    Using beta 11. Hope you can look into this as our server depends on this wonderful plugin :)
  5. Offline


    Yeah, I will add that, but not at the moment, as I am trying to improve ChestShop as much as I can to finally relase the stable version 3.

    Fixed in BETA 11

    I will look at it, however what exactly should be the issue...
  6. Offline


    Why wouldn't it? Just take a look at how lockette did it. I'm sure if you write your own code (which I'm sure you can do by yourself) it would work.
  7. Offline


    No, I don't mean code.
    I mean - is THE CONCEPT of sticking the signs to chest would work well with shops (I believe it would, however I would need to test it many times - not possible at the moment, as I want to release a stable version of ChestShop)
  8. Offline


    Oh shit I'm bad at explaining things but I will do my best.

    Let start with just the basic permissions:
                    superpermbridge.ChestShop.*: false
                    superpermbridge.ChestShop.shop.buy: true
                    superpermbridge.ChestShop.shop.sell: true
                permissions.build: true
                    superpermbridge.ChestShop.shop.create: true
    Let's start off simple. Everything here your going to say looks good besides what is "superpermbridge.ChestShop.*: false" This is something we try on and off. Some plugins now have pre set permissions that are true (new permissionsbukkit pluigins) For our server we secure everything by putting false at the top.

    But with that on or off it does not matter just want to let you know..

    So now John who is default can place a shop and seams to ignore the whole permissions system. While Rob a VIP 2 can also place a shop.

    Now another thing that seams to have broken is automatic naming of the sign. Rather adding John or Rob to the sign you must fill it in or you get the following message:

    Another player's shop detected!

    To confirm I'm using the right plugin haha!
    ChestShop : 3.00 BETA 11
    PermissionsBukkit : 1.1
    Permissions : 2.7.7 (this is the fake bridge)

    Also I tried this all without superpermbridge. and no difference. The configs are exact same from my other server and work flawless and don't have the bug where the names not added and also does not have the issue of defaults being able to place shops when there not allowed.
  9. Offline


    I looked into it, and it seems like it... works for me

    CB version: git-Bukkit-0.0.0-970-g4345206-b1046jnks (MC: 1.7.3)
    Plugins: Plugins: ChestShop, CommandBook, ForestCraftTools, iConomy, LazyRoad, MagicCarpet, PermissionsBukkit, Permissions, WorldEdit, WorldGuard
    My Permissions config: http://pastebin.com/XmHdrYU5

    I tested:
    - creating a shop, by non-op
    - buying
    - selling

    EDIT: BTW, this plugin supports PermissionsBukkit natively if it didn't find Permissions 2/3
    EDIT2: Could you download TeamViewer and could I see what's the problem? PM me the ID/PW.
  10. Offline


    That's the thing acrobot, it's letting everyone create a shop. It's not disabling it for everyone below VIP2 status.
  11. Offline


    Try removing creating a shop from permissions and see if you can create one? That seams to be breaking on our server unless we have a conflict. Here is my full list:


    I'm going to eat but will check back in 30 minutes.

    The problem is it works but we can't decline it from working hehe.
  12. Offline


    New Permissions config: http://pastebin.com/kCD0wQDM
    If I try to create a shop: You can't create this type of shop!

    EDIT: Try deleting the superpermsbridge.ChestShop.shop.blahblah , just leave it ChestShop.shop.blahblah
  13. Offline


    That is how we had it haha. But I just did it again and now it works. I hate yml and permissions LOL.

    Thanks Acrobot.

    PS: Also auto adds the name again. I really don't know what the hell happen lol.
  14. Offline


    Yeah, it's really weird =)
  15. Offline


    Darn so we cant have players only be allowed x amount of chests? :(
  16. Offline


    i did everything you said. and it still doesnt give other ppl the permission.

    Heres my perms file:
            default: true
                prefix: '&2'
                suffix: '&2'
                build: true
                - 'essentials.help'
                - 'essentials.home'
                - 'essentials.motd'
                - 'essentials.rules'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.spawn'
                - 'essentials.afk'
                - 'essentials.list'
                - 'worldwarp.wwarp'
                - 'worldwarp.wlist'
                - 'deathmessageplugin.sendmessage'
                - 'deathmessageplugin.getmessage'
                - 'scrollingmenusign.scroll'
                - 'scrollingmenusign.execute'
                - 'xauth.register'
                - 'iConomy.*'
                - '-iConomy.admin.*'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'jobs.world.*'
                - 'jobs.join.*'
  17. Offline


    Try ChestShop.shop.* instead, because you might be using the newest version.

    Nope, I'm sorry.
    I avoid adding databases to this plugin, because, for example:
    - If you super-pickaxe a shop (sign or chest) it would not fire the destruction event - so the limit would be wrong, UNLESS I would often check if the shops are valid (and that would lag larger servers)
  18. Offline


    Got a important question for my economy Server:

    Can you buy infinite Items from the shop? For what is the quantity for?

    Thanks for replying...
  19. Offline


    Hey guys, its me again.
    Doesnt working. No commands and the singns doesnt change...
  20. Offline


    Well, now I got it so far, that only an error occurs.

    Couldn pass event SIGN_CHANGE to Chest shop.
  21. Until the chest is empty or full

    Try with iConomyChestShop Beta3.
    Don't forget to remove your nodes.

    Use only for IconomyChestShop 3 Beta

  22. Offline


    You can use Admin Shop.
  23. Offline


    Is there a way to make it so players can't create a chestshop to protect their chests in the wild? I find alot of them using it as a LWC protection instead of a shop.
  24. Offline


    Not exactly, however in ChestShop 3, it is possible to make people pay for shops.
  25. Offline


    Nice plugin :) but is it possible to put color on the sign ?
  26. Offline


    Not exactly. I tried experimenting, but it was easy to hit the character limit for this (remember, to change color you have to put 2 characters more on the sign, while it can hold only 15)
  27. Offline


    is it possible to make a chest shop for two persions?
    like this?
    B 2:0 s
    It will be nice. xD
  28. Offline


    Hmm, yeah, but in your example, you've hit the character limit, and those are short nicks :p
    I know it's a very nice idea, but unless Notch releases modding API and I can change the character limit, there is no way to accomplish that :p
  29. Offline


    oh yeeeees. I forgott that there is a character limit! :D
    maybe in 1.8 i hope. xD
  30. Offline


    Yeah good job on the update!!!
  31. Offline


    Thanks :)

    Yeah, me too :D
    It would be cool if color characters could be ignored, or something :)
    kahlilnc likes this.

Share This Page