[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


    Well, can you tell me if you get any error, or what do you mean by "can't sell anymore"?
    Is your spawn-radius in bukkit.yml changed to 0?
  3. Offline


    If it is possible this is just a general inquiry but if you had the chestshop.admin or chestshop.mod are you able to create shops for people?

    So basically leave the first line empty if it for yourself but like server shop where you type "Admin Shop" or whatever in config you could type person's name to make it their shop.

    Basically this would allow you sell shop permits so that people don't just create shops in the back of their house.

    If you can't that would be a great implementation.
  4. Offline


    ChestShop.admin is able to create shops for other players/towns/whatever :p
  5. Offline


    Oh really? just edit the first line with their name and it works as I described?
  6. Offline


    Yep, if I understand it correctly.
    If you edit the first line with person's name, it will be his/her shop.
  7. Offline


  8. Offline


    nevermind, i just downloaded it and it was...
  9. Offline


  10. Offline


    Is there a way to set max sell/buy price, some players set the shop price to 100000 and others accidently click on those all the time and lose money. Very annoying.
  11. Offline


    Anyway to make the B:x:S be buy:x Sell:x

    I don't like just the letters tbh
  12. Offline


    Not atm, and it's
    B 5:5 S

    Well, there isn't at the moment, but don't you think that you should ask the person that does that to stop it and revert the transaction?
    It's cheating.
  13. Offline


    Chest always says out of stock, even when there are items in there! What do I do?
  14. Offline


    Why does the shop always say out of stock?! My friend puts some wood in a chest forsay, 64 pieces. He does 1 at a time, and just for tests, its free. Looks like this:
    (first line gets filled in like normal, and it says shop created).
    Now I go to buy, and it says "shop out of stock". Like what? This doesnt even make sense, I dont know what to do! I got the latest version of chestshop and everything.. plz help
  15. Offline


    Ok so here is my problem: I created an Admin shop in my spawn and i put myself into the admin group. I could successfully buy and sell. I set myself to the Member group and i could only buy but not sell. I checked the console but nothing bad happend when i tried to sell and i know 200% that there isnt something wrong with permissions since it didnt say "You dont have permission to do this" help?
  16. Offline


    Let me explain first what I am trying to do, and than what I have so far accomplished

    I am trying to setup chestshop in a way that I can allow certain individuals to have a shop in our safezone (we use the factions plugin). This way I can restrict how many chests they have and only the admins can put signs up for them.

    What I have accomplished so far is the following.

    -Allow people to buy, and sell from a sign
    -People named on the sign receive the goods

    Now for the problem.

    I can't for the life of me figure out how to allow people to restock a chest. Even though the sign above specify their name it will not grant them access to the chest.

    Is there a way to allow those named to access that chest?
  17. Offline


    Have you checked if the item name is correct? Do /iteminfo to find out the item name/id.

    Go to bukkit.yml, change spawn-radius to 0.

    You can give the players
    permission. It will let them open the chest.
  18. Offline


    Wow... Whatever you just did worked.. didnt make much sence but thanks!!!
  19. Offline


    Again, this does not work!

    If you disallow with the negative node, it is picked up by groups which inherit permissions after the next server restart and cannot be allowed again. I use PermissionsBukkit which works with every other mod we use just fine (we have a good 10 or so) except this one.

    I suggest you change the default to deny creating chests UNLESS the group has the ChestShop.shop.create permission. This is how most mods do their permissions, not backward.

    Thank you!
  20. Offline


    I think you need to write

    If you want to create an admin shop you need to put AdminShop on first line for infinite items and no chest.
  21. Offline


    Well, I don't know how permission plugins handle this :p
    But yeah - (to others) do what he says :p

    B free:S free
    And "WOOD" is planks, "LOG" is for log.
    Just do /iteminfo.
  22. Offline

    Johnny Lunder

    Making a Diamond-shop doesn't work here, using latest RB Bukkit and ChestShop.
    Even putting in the ID directly, 264, changes it to DIAMONDORE, but Diamond and DiamondOre is 2 quite different things. Which kinda hurts us a bit, as we use it for tickets in VoxelPort :p
  23. Offline


    Permission fix to deny create, buy, and sell by default:

    1. Open ChestShop.jar with a program like 7zip using "OpenArchive" - http://www.7-zip.org/
    2. Right click "plugin.yml" and select "edit"
    3. Find this section of code and change "default: true" to "default: false":

        description: Gives access to all user ChestShop permissions
            ChestShop.shop.create: true
            ChestShop.shop.buy: true
            ChestShop.shop.sell: true
        default: true

        description: Gives access to all user ChestShop permissions
            ChestShop.shop.create: true
            ChestShop.shop.buy: true
            ChestShop.shop.sell: true
        default: false
    4. Close the file and accept the change (write it to the file)

    Then, you can simply add each permission node to the group(s) you wish to give permission to.

    We set this up so users have to be part of a group to gain access to buy and sell, but another group to create shops. Works great now after the change as far as I can tell.

    Acrobot, let me know if there's any issue doing this.
  24. Offline


    Yea I know the item id is correct :p And it's only happening on some shops, not others.. Well I'll keep you posted if anything changes, maybe if you make a new update that'll fix it or something, idk :p I'll try some more solutions, and double check the item id. Thanks for the help :) And admin shops are working fine
  25. Offline


    I just realized, when I try and update from chestshop 3.1 to 3.3, it seems to work, but then after I reload the server, and go check the config, it says I'm still at 3.1. Did you forget to change this when you updated the version? Or is the download link broken or something? Idk I just wanna make sure I'm at the lastest version :p
  26. Offline


    23:27:33 [SEVERE] Nag author: 'Acrobot' of 'ChestShop' about the following: This
     plugin is not properly shutting down its async tasks when it is being reloaded.
      This may cause conflicts with the newly loaded version of the plugin
    Not sure if you wanted this noted here or on the bukkitdev page.
  27. Offline


    Well, I actually do shut down the tasks :/
    It shouldn't affect anything though.

    Erm... ChestShop doesn't save its version in config o.0
    Also if you're using 3.1 - that's your problem :p

    Nope, it's totally fine. I recommend doing that if any other solution doesn't work for you (well - the problem isn't in ChestShop, but in permission plugins. They can't handle the inheritance with negative nodes right)

    Johnny Lunder
    Are you sure you are running the latest ChestShop.jar and you don't have any iConomyChestShop.jar in your plugins folder?
  28. Offline


    Why does every shop I make tell users, even ops, that they can't buy there? They can sell just fine, but when they try to buy they get the "You cannot buy here!" message.

    I updated to 1.1, CB build 1720

    Edit: Found out users can make shops and those shops can be bought from just fine, but when I make an admin shop or my own shop it's not working
  29. Offline


    Cannot buy here:
    3rd sign line is wrong.
    It should be either (B and S can be on either side)
    B 5
    S 5
    B 5:5 S
  30. Offline



    I tried adding the line ChestShop.name.firstSignLine first just the line without anything added and than a second time with the "name" replaced by the actual players name. Both times, however, it failed to let me into the chest. Is there something I am doing wrong here?
  31. Offline


    You need to have
    where "something" is your first sign's line.

Share This Page