[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


    Perhaps a line in the sign, or it takes it off of the maximum currency of that player.
  3. how do i give permission to moderators and builders if im using essentials
  4. Offline


    Well, there is no "option" to turn command off, but you can go into iConomyChestShop.jar with WinRAR/sth, open plugin.yml, delete the buy and sell command blocks and save it to jar again :)

    Hmm, but I use Register.
    This could only work if you had something like addMoney(double howMuch, String player) function.
    You can discuss it with me on PM, however I am probably in a different time zone, so please give me some time to respond :)

    You didn't steal my crayon, did YOU?

    Okay, you're probably using GroupManager.
    Please watch this: http://www.youtube.com/watch?v=tYIUgi25Los
    You should add

    to your permissions config.
  5. Offline


    it still dosent work it says "you cant buy here" i can sell perfectly fine but it wont let me buy also it dosent do anything when i typ "/buy" or "/sell" on the sign i put
    <blank> ex.
    <#> 1
    B: <#> S: <#> B: 1.0 S: 1.0
    <item name> dirt
  6. Offline


    It's not
    B: price S: price
    B price: price S
    (B and S can be on either side of the prices)
  7. Offline


    how do u solve when it says not enough items to sell
  8. Offline


    If it says that YOU haven't got enough items to sell, it means you haven't got enough items to sell to this shop.
    Look at the sign, 2nd line tells you how many items you need to have to sell, and the last line tells you what item you can sell here.
    If it says that SHOP hasn't got enough items to sell (is out of stock), it means that the shop is empty or hasn't got enough items to sell.
  9. Offline


    Ya that may be my only option at this point, but so far I've gotten them used to using the mouse. Most people don't use commands on the server just a few admins. They're to busy mining, farming, building, and surviving.

    Thanks for your time.
  10. Offline


    Lol ok well i set up a whole shop, have almost every item. Long story short, When purchasing an item, it Says it took out lets say 50 from my account, but in reality it only withdrew 25. And when selling, is Says that it gave me 50, but didnt give me any credits at all. Ive checked the configs a thousand times and cant find a problem at all. My server is still on 1.6.6, but can still connect to it when updated to 1.7.3. All of the signs are for adminshop, and i made sure that everyone has access to it in the permissions. I am clueless at this point. Any help would be much appreciated
  11. Offline


    Actually, ChestShop 3's only commands are iteminfo and csversion =)

    Did you try ChestShop 3?
  12. Offline


    Thanks for the info gonna go 3.0.9 now.

    I installed the plugin with a fresh config. Still can use the commands, but at least they're not in the help menu.
  13. Offline


    But the plugin version 3.0.9?
    It doesn't even HAVE those commands D:
  14. Offline


    Sorry about the number I'm used to the older way people use to make version numbers (Major.Minor.Beta.Alpha)

    I've restarted the server 2 times right now and still can use /buy and /sell, but I guess 3 times is the charm since now it's telling me selling is disabled and and internal error happens wile trying to use buy.

    My server is a little odd plugins that shouldn't work together do, and some that should work together don't. Never ceases to amaze me.
  15. Offline


  16. Offline


    I never copy over the old jar file for any plugin, bad things seem to happen.

    In any event like I said before it only started to work after my 3rd restart.

    Sorry those errors I was talking about were from the second restart, not the third.

    Thanks for your time.
  17. Offline


    Hmm yes, I know, but you know, the old version was named iConomyChestShop.jar, and the new one is called ChestShop.jar :)

    If it still does that, could you PM or paste here a screenshot of your plugin folder? =)

    And no problem :)
  18. Offline


    Na I haven't had the iConomyChestShop.jar since I installed the ChestShop.jar.

    There's no need to send anything it works just fine for now.

    Like I said my server is weird.

  19. Offline


  20. Offline


    I think many people will like this :)
    ChestShop BETA 10 SUPPORTS long names!
    Also, you will experience less lags + less errors!
    dervonz likes this.
  21. Offline


    Great job man!!!!
  22. Offline


    Thanks for the update, don't know may people with names longer then mine.
  23. Offline


    Im hoping that the old shop would transfer over with the new build (as in functionality)? Im just going all the way and updating the server to 1.7.3 as well as using ChestShop v3
  24. Offline


    Yep, the shop layout didn't change (I mean, older stores work, but you can also make for example only buy shops doing "B price")
  25. Offline


    Great plugin me and my server loves it ;D
  26. Offline


    Sweet. Luckily i found the problem before i worked on completely updating everything haha. It turns out that all i really had to do was give the server an account name, and *poof everything worked lol. But Thank you VERY much for your fast response times for my concerns. +1
  27. Offline


  28. i get this pretty must constantly with beta 10:

    [SEVERE] javax.persistence.PersistenceException: Query threw SQLException:[SQLITE_ERROR] SQL error or missing database (no such table: cs_transactions)
    Bind values:[null]
    Query was:
    select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from cs_transactions t0
    where t0.sec < ?
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:849)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:829)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:238)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:104)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:344)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1469)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:906)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.util.DefaultExpressionList.findList(DefaultExpressionList.java:201)
    2011-07-23 22:26:40 [SEVERE] 	at com.Acrobot.ChestShop.DB.Queue.run(Queue.java:21)
    2011-07-23 22:26:40 [SEVERE] 	at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-23 22:26:40 [SEVERE] 	at java.lang.Thread.run(Thread.java:636)
    2011-07-23 22:26:40 [SEVERE] Caused by: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: cs_transactions)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.DB.newSQLException(DB.java:383)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.DB.newSQLException(DB.java:387)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.DB.throwex(DB.java:374)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.NativeDB.prepare(Native Method)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.DB.prepare(DB.java:123)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.Conn.prepareStatement(Conn.java:404)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.Conn.prepareStatement(Conn.java:399)
    2011-07-23 22:26:40 [SEVERE] 	at org.sqlite.Conn.prepareStatement(Conn.java:383)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:426)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:396)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.CQuery.prepareBindExecuteQuery(CQuery.java:399)
    2011-07-23 22:26:40 [SEVERE] 	at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:198)
    2011-07-23 22:26:40 [SEVERE] 	... 8 more
    Bukkit 1000
  29. Offline


    ah i see what i did worng. I downloaded the beta. lol thx. =)
  30. Offline


    This looks like an error with EBean... hmm
  31. Offline


    Is there anyway to protect against creeper explosions with basic protection, Acrobot?

Share This Page