[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


    Thats because you are "Selling". If you want them to be able to buy from that chest. Use B
  3. Sorry if this is old or already fixed, but what about people whose names' are too long? Has this been fixed yet? If so, thanks. If not, I really hope it's implemented soon...
  4. Offline


    when people create the shops with signedit
    this error appears in the console
    15:58:31 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjav
            at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(Protectio
            at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.jav
            at org.bukkit.plugin.java.JavaPluginLoader$32.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:969)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I know that people are not intended to create them with signedit, just reporting it ^^ Not a biggie
  5. Offline


    Help please!
    Iwanted that Normal users and Mods can create Shops too and in Essentials GroupManager i wrote:

    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.create
    - iConomyChestShop.shop.create.<id>
    - iConomyChestShop.shop.exclude.<id>
    - iConomyChestShop.shop.sell
    - iConomyChestShop.shop.*

    i tried everything but mods and normal people can't create shops or use them!?
    Please Help

    I'm German, sorry for my bad english ;D
  6. Offline


    A day into using this, I have a problem.

    Whenever someone tries to sell items to the AdminShop I created, it tells them "[Shop] Seller has not enough money!". Even though it was working fine yesterday, and as far as I know, an AdminShop has unlimited money?

    Am I missing something obvious?
  7. Offline


    ChestShop 3 dv #9 - seeing this on RB1000

    2011-07-21 17:11:27 [INFO] [Heroes] Loaded hero: dmil23
    2011-07-21 17:11:28 [SEVERE] Could not pass event SIGN_CHANGE to ChestShop
    java.lang.NoClassDefFoundError: com/Acrobot/ChestShop/Items/DataValue
    at com.Acrobot.ChestShop.Items.Items.getItemStack(Items.java:46)
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:37)
    at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:462)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:969)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  8. Offline


    I've setup everything, permissions, and did what it says on the youtube videos but it still doesn't work.
  9. Offline


    Hmm... I guess it's because you're running newest, ChestShop 3 version. If that's the case, just add this permission node:

    Seems like a broken download - redownload please, and re-start the server?

    What exactly do you mean by "doesn't work"?
    Do you get any errors?
    Is the plugin active? (You can check that by typing /plugins in chat)

    ChestShop 3 - (The newest version of the plugin) has fixed this error, but be sure to change your permission nodes :)

    Somehow, some servers provide pre-configured config that does that.
    In plugins/iConomyChestShop/config.yml, change serverAccountName to "" (two quotation marks)

    @Michael Mitchell
    Thanks :)

    Yep, I fixed that, HOWEVER it's not relased yet. Expect it to be out in about 1-7 days :)

    @Anthon Fredriksson
    Not really possible, unless Bukkit team implements region API.
    I could link to WorldGuard, but it will be hard to update for me - longer update time.

    Wow, briliant idea about empty chests :p

    It's implemented in version I told @ShaDooM about in this post, however it's not as good as I want it to be, because I can't check if someone uses Permissions 3 or SuperPerms or none of them :/
    I wish Permissions & GroupManager supported superPerms soon (so nag them to do it! :D)

    How exactly should this work?

    Nope, believe me it's already hard to update everything every plugin update :/

    You should probably ask @Nijikokun , as he is responsible for Register API, but if I have time, I'll add this (but I'm not entirely sure how should currency work. One currency for everyone?)
  10. Offline


    It is enabled in server.properties, just doesn't show up on /pl (plugin list)
  11. Offline


    And that's the problem.
    You don't enable plugin in server.properties (however some server wrappers may store their configuration there)

    I guess it's because Java is bugged and CraftBukkit's persistence fails :/

    Just add "-Dfile.encoding=utf-8" to your start up file, so it looks like (for example):
    java -Dfile.encoding=utf-8 -jar CraftBukkit.jar 
  12. Offline


    Is there any way for this plugin to hit up an external mysql database? I notice this new beta does not generate a configuration file (until I guess it successfully loads perhaps?) but I can't get it to connect to my external database without a config file.

    Any ideas?
  13. Offline


    Yes, beta generates config on loading, however database configuration is in bukkit.yml

    For MySQL, you should do something like this:

    Amrac likes this.
  14. Offline


    Thank you, I COMPLETELY forgot about the base bukkit.yml file housing the database there. Thanks for reminding me - I have since changed it. :)
  15. Offline


    Just make an option to remove a % of all shop transactions as 'tax'. This helps prevent inflation and should be fairly easy to implement.

    If I sell 1 Diamond to a shop with a posted price of 30 coins then I receive 27 coins and 3 coins would go to the server tax of 10%. The 3 coins would just be deleted, but the users could receive a message calling it a tax.
  16. Offline


    i can get it to sell but it wont let me buy it just says "you cant buy here" can someone help
  17. Offline


    I just checked my config, but the value is already what you said I should change it to:
    serverAccountName: ""
    Yet I'm still having the same problem?
  18. Offline


    What do you have on the sign?
    Did you try it with ChestShop 3?

    Hmmm... Try ChestShop 3, tell me if it works :)
  19. Offline


    What can i do to have signs in my language? (french)
  20. Offline


    You mean text?

    Click "translations" in my main post, choose French and paste it in your config, to replace the default "lang:" section.
  21. Offline


    No, i want to translate the id value (the value on the line4 of the sign) in my language. for example, when i write "1" on my sign, it s "stone" after clicking "done". i want to translate that.
  22. Offline


  23. Offline


    Going to try that, will check back!

    More of a random suggestion, but it would be cool if you could somehow update the last line of the sign based off of what is in the chest. :p
  24. Offline


    ok im trying it i hope it works because everyone on my server wants it thanks [cake]
  25. Offline


    It was actually in first iConomyChestShop, but it didn't work as expected, believe me.
  26. Offline


    I have a question, what is the correct command , that i can create a admin shop chest, with buy 0 ?

    that does not work here:

    B 0​

    I will create a sign with costs 0.0 $ per item transfer ... ist this possible ?
  27. Offline



    B free
    (same for S - S free)
    (I would change it to 0, unfortunately, there are too many shops that used 0 for no selling in iConomyChestShop 2 :/)
  28. Offline


    I can only get signs to work as a shop if it is directly above the chest. How can i allow it to have 1 block space between the sign a chest?
  29. Offline


    I have a small question are there nodes for the buy and sell commands I see you listed one for /iteminfo, but none for /buy and /sell. I had an admin get stuck in sell mode wile I was off, and didn't know how to reset himself to normal without rejoining the server. I just don't want my users to have to use commands if they use one or the other at anytime during their session.
  30. Offline


    They don't have to use command.
    Turn sneakMode: true, and
    left-click - sell,
    right-click - buy
    (Unless you turn on reverseButtons)

    iConomyChestShop 2.75 or ChestShop 3?
    If iConomyChestShop, then turn "distance" to 2, if ChestShop 3 - well, not really possible.
  31. Offline


    My sneak mode has always been true, but they can still use /buy and /sell I would just like to turn the commands off. If it's not an option no need to worry, I'll just have get them used to using their mouse.

Share This Page