[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


    If the useID is enabled in the config, does that prevent string names being used?

    Also, would it be possible to have some way to either configure or have it autodetect extra information on the sign which makes more sense. For example:

    Wont make much sense to new players who don't know how the sign system works.

    That would make it better and easier to understand what will happen.

    As a feature suggestion, a way to auto update a (different) sign text with the stock quantity left might be useful. Like have another sign next to the chest with "Stock remaining: 20"
  3. Offline


    Can't get this to work for the life of me. I'm using craftbukkit 326, and chestshop v2 with iconomy, and it gives me no message after I layout the sign to buy stuff from. Am I doin something wrong?
  4. Offline


    You cannot buy from yourself of course but I found if I dont use the item ID when it is turned on in the config, it wont do anything. Try using the item id in the chest. Also make sure the name is case sensitive (unsure if this actually matters tbh)
  5. Offline


    Okay after a while I realized I was using the alias for the Id instead of the actual Id. Made the simple switch. I assume that if you turn off the "use-id: true' option off in the config you can use aliases like "glass" instead of "20"?

    Thanks for the help!
  6. Offline


    does it REQUIRE LWC? cause at the moment I'm seeing players able to just take stuff from the chests?
  7. Offline


    So I tried to get ChestShop running, no dice. I tried changing the config from
    Where <boolean> is true or false to
    Sign format for selling dirt:
    All of which failed to work. Not throwing any errors in the console, nothing popping up on the screen when the sign is placed, it just isn't seeming to work at all.

    I tried every permutation of placing the sign, placing the chest, and stocking the chest I could think of, all of which failed. Is there something I'm missing here? CB323
  8. Offline


    @skadabedop - you need a space between "useID:" and the boolean value
    Also be sure to install Permissions and iConomy plugins :)

    Name is case INsensitive :)

    @acegiak - it doesn't require LWC, but if you want to lock your chests, you need it.

    Also, UPDATED!
  9. Offline


    Seems to work but for some reason a player using this:

    get the message "out of stock" even though he has 10 separate diamonds in the chest, any ideas?
  10. Offline


    I have the error too, think this is a bug...
    --- merged: Feb 15, 2011 5:53 PM ---
    Whould it be possible to have option for sell and buy?

    Like this:
    Item: stone 64 (Item and amout)
  11. Offline


    Any idea when you might implement this? With this feature and the ability to restrict cheat creation to my trader class it'll be perfect for my server :D
  12. Offline


    I also seem to get "out of stock" on certain items.. i tried making a shop that sells glowstone.
    Its got 4 stacks of glowstone and keeps giving me out of stock message, the sign is:
  13. Offline


    Would it be possible to get an update that included confirmation that the chest was successfully created or some sort of chat message to let you know that you're opening up an item store chest?
  14. Offline


  15. Offline


    how are you suppose to know if this is working or not. i dont see anything when i create the sign and i cant buy items from myself... on the server i notice "SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
  16. Offline


    Using ID,s how do you specify damage values?
    Typing 351:15 (Bone Meal) doesn't seem to work.
  17. right now, slight bug/exploit... Users can chose to sell a tool/weapon, and set it to really cheap, have a friend buy it, and it will be fully repaired... a cheating repair shop XD So sadly, i had to disable the plugin and go with somethin else that isn't going to result in abuse :(
  18. Offline


    cant get any signs to work. v.3 cb 323. v.2 seems to work however
  19. Offline


    Diamond is the same way
  20. Offline


    So... i installed, and got the newest craftbukket as well.
    Feb 15, 2011 10:25:08 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.has
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
            at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.j
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:496)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            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)
    And BOOM. Errors apear the moment i right click the chest. Can anyone help me? >.<
  21. Offline


    is a buy/sell feature planned for the future? this is great for users to sell stuff.... too bad none of my users have any money to buy...
  22. Offline


    @ Acrobot

    I too would like to see a "Buy" added as well. That would round this out very well.

    It is working great for my server

    @ all

    I do something on NationCraft that helps out a lot! We created a market area, and used WorldEdit/Guard to protect the market. Then used the child/parent option in WorldGuard to set up different areas inside the market for players to set up shop. I restrict shops to this area only that way is created a server market. Kinda like a flea market!

    Works great.

    We even took this farther by actually building all the shop buildings and are leasing the buildings to players for shops. Economy is great if you use SimpleShop to buy things like gold or diamonds to put money back into the server players
  23. Offline


    Nice plugin! However i can't seem to sell anything in chests that have an ID number. The ID option in the config is "true" but still no-one can buy anything. It works if I write ex "iron_sword" but the reason why I want the ID option to work is that when I write "diamond_leggings" it won't fit into the sign. Any help would be appreciated!
  24. Offline


    I don't seem to have a config file. Could you please direct me to where that config file would be located and or provide me a copy of the config file and tell me where it should be located.

    Also, with the known bug (used tools coming back as new), could you add a banned items list? The items in the banned list would not be allowed to be sold.

    Thanks for all your work!
  25. Offline


    Would it be possible to get update soon, and source code release, so we can help you, and try hack on it ourself?
  26. Offline



    You probably downloaded bad version, I changed it so only the newest stays.
    You can write shortened item names, for "diamond_leggins" - "diamond_leg" etc.
    ID Works, if you have lastest version.
    IDK why if doesn't cause damage to tools, I'll test it and see if it's Bukkit's bug.

    If you have
    org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    bug, be sure to use the lastest version and set up config file with a space between "useId:" and "true"/"false" and be sure you are using all the important plugins and newest craftbukkit.

    Glowstone, diamond etc. don't work, because item names are similar. I can't really fix it, sorry :(

    You don't, you just stock it with the right type :)

    Also, I think I'll relase the code, but don't say anything, it is ugly at the moment, I think it won't be any better :D
  27. Offline


    Cool, when will you release code? I can help you with coding, i was thining to develop a simular plugin, but when i saw this :D I don't think so :)

    So maybe have Gitbub or SVN repository? See you're signed up at Github.
  28. Offline


  29. Offline


    I second this motion. I've been merging ideas and methods from a few of the new chest/sign trading plugins and this one is by far the best as far as simplicity and functionality for player shops. Would love to be able to enhance this with some of my player's wishes, and to help you implement the features you have already planned or squash the bugs we currently have. If you release source on github I will gladly help with the project.
  30. Offline


    OK, source is out there.

    Sadly, github doesn't work for me, source files are in .zip at the moment, if someone helps me with my problem (Doesn't accept my public key, I have it all configured) I may set it up there.

    Also, feel free to update it :)
  31. Offline



    Would it be possible to get an update that included confirmation that the chest was successfully created or some sort of chat message to let you know that you're opening up an item store chest?

Share This Page