[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

    Acrobot

    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!
    [​IMG]
    I've put a LOT of effort into making this plugin,
    you can donate if you appreciate my effort =)

    Requirements:
    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    Optional:
    - 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


    Setup:
    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.

    Translations:
    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/


    Permissions:
    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:

    [​IMG]
    (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:
    [​IMG]

    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:
    [restricted]
    firstGroupName
    2ndGroupName
    3rdGroupName
    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)

    USING SHOPS
    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)

    DESTROYING SHOPS
    If you want to delete your old shop, simply SNEAK and destroy the sign.
    It's that easy =)

    STOCKING THE SHOPS
    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?

    [​IMG]
    Changelog (open)

    Changelog can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/
     
  2. Offline

    zoolder101

    You using servercraft? Cause as of june first, all aparently use McMyAdmin D:[​IMG]
     
  3. Offline

    Acrobot

    @zoolder101
    I don't use servercraft, neither McMyAdmin
    Hmm, that's not McMyAdmin panel, could you show me that middle tab that says "mcMyAdmin"?
    Or PM me your teamviewer details?
     
  4. Offline

    LazerLump

    can you make it so you can sell to your own shop because that would be really useful to me....and also like not get any money for it just to get it out of your inventory
     
  5. Offline

    Kainzo

    @Acrobot - I'm having some issues with 3.0+ ... it seems that the basic protection does NOT work. Thoughts?
    USE_BUILT_IN_PROTECTION: true #Do you want to use built-in protection?
    Is set to true.
     
  6. Offline

    Acrobot

    @Kainzo
    What exactly does not work?

    @LazerLump
    In ChestShop 3.0, clicking on your own sign brings menu similar to chest one.
     
  7. Offline

    Kainzo

    @Acrobot - anyone could open ChestShops despite owning them and take items out freely.
     
  8. Offline

    Acrobot

    @Kainzo
    Oh, WOW. Thanks for letting me know, that's such a stupid bug...
     
  9. Offline

    zoolder101

    Wait, how do I turn on the messages? In Config?
     
  10. Offline

    Acrobot

    @Kainzo
    Fixed, thanks!

    @zoolder101
    You can't turn OFF the messages...
    There's probably something either with my plugin loading, or McMyAdmin
     
  11. Offline

    Kainzo

    @Acrobot - may want to just internally test that :p I released it to a server that usually has 100 online
    bad things happened.

    How are those limits per person going?
     
  12. Offline

    Tagz

    Is there an issue with players with too many characters in their name?

    I've got a player with the name:
    Ctrl_Alt_Destroy

    When he creates a shop the sign shows Ctrl_Alt_Destro

    The shop will work for a bit, but eventually it will stop working saying the Seller account doesn't exist.
    Thanks!
     
  13. Offline

    Tony Xu

    Is it possible to make a chest shop that only buy stuff from the players?
     
  14. Offline

    Acrobot

    @Kainzo
    That's why it's called beta.
    I invited many people to test this, but you know, it's kinda big plugin, so it went unnoticed :p
    Limits per person - I have more work to do ATM (Just had my FCE exams :p)
    I will try to make it work fully before adding new functions.

    @Tagz
    Yeah, I didn't implement full-name-check yet.

    @Tony Xu
    Sure!
    Just type in
    "S price" in your 3rd line!
     
  15. Offline

    Tagz

    Thanks. any idea if this will work sometime in the future? Just want to see if there is an option for my member to still buy/sell.
     
  16. Offline

    zoolder101

    kk, is it cause there were already shops made when I installed it?
     
  17. Offline

    Acrobot

    @Tagz
    Yep - it's in plans.

    @zoolder101
    Not possible. My plugin doesn't use any kind of database/file/anything to store shop information.
     
  18. Offline

    zoolder101

    aha! Fixed! The config file was all *Blah*, if you have the same problem as me, simply save the jar, and the config to a zip, upload the zip to your data base (Plugins folder) Unzip, delete the zip. Tada!
     
  19. Offline

    jacob4507

    ?
    ? all i want is a OP only. ICS please
     
  20. 2.75 workin' fine on 860 :)

    Thanks for this great plugin, by the way.
     
  21. Offline

    numidark

    Hello Acrobot, I have a problem with my server Voxelia, this error is :
    09:06:21 [INFO] DataSourcePool [ChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    09:06:22 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    09:07:45 [INFO] Entities enhanced[0] subclassed[1]
    This error caused a laggy when start, restart or reload server
    When reload all plugin with /rel command
    All player disconneting of the server with error : read timed out
    You are a idea for this problem ?
    I have a similar problem with Minecart Mania
    Cordialy
     
  22. Offline

    Cookieee

    Still having the same problem =/. When a player tries to sell things to a sign (admin shop), absolutely nothing happens, client or server side. They can still buy things from the shop :<.
     
  23. Offline

    Acrobot

    @numidark
    That's not an error, and it's in Bukkit - please report it to leaky.bukkit.org

    @Cookieee
    I joined your server - your bukkit version is 818 - please update? :3
    Also, do you have sell: true and sneakMode: true in your config?

    @TheBritishEditor
    Thanks :)
     
  24. Offline

    Tealk

    @Acrobot
    Have the beta new permissions?
     
  25. Offline

    Cookieee

    Sell and sneakmode are both true, yes.
    And I was refraining on updating till I check to make sure there are no errors with plugins, haven't had time to check yet :). If you could tell me whether updating will break any specific plugins, it'd be great or I'll just find out later XD.
     
  26. Offline

    Acrobot

    @Tealk
    As in ReadMe:
    they are all normal, just changed from iConomyChestShop to ChestShop

    @Cookieee
    I don't know if it will - if plugins use normal, Bukkit API nothing should be broken. I'd reccomend that you back up your old craftbukkit and start with new one and just test it :)
     
  27. Offline

    Tealk

    i use beta and if i klick on a lwc closed chest i become this message

    [​IMG]
     
  28. Offline

    PedroN041

    I dont know ehy the plugin is not working anymore. It used to work.... :(
     
  29. Offline

    Acrobot

    @Tealk
    Yep, I actually wasn't able to stop that. I'll try later.

    @PedroN041
     
  30. Offline

    PedroN041

    ok,
    I am using a host called multiplay. Iam using craftbukkit 860. I am using plugin permission, everyone has the permissions configured.
    I have the plugin and avrything, but if i use /pl the plugins doent appear. this is the problem.
     
  31. Offline

    Cookieee

    Okay so it if giving me this whenever a person tries to sell not:
    Code:
    2011-06-13 18:36:55 [SEVERE] javax.persistence.OptimisticLockException: Data has changed. updated [0] rows sql[delete from ics_transactions where id=? and buy=? and shop_owner=? and shop_user=? and item_id=? and item_durability=? and amount=? and price=? and sec=?] bind[null]
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.dml.DmlHandler.checkRowCount(DmlHandler.java:123)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.dml.DeleteHandler.execute(DeleteHandler.java:81)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.delete(DmlBeanPersister.java:67)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeDeleteBean(DefaultPersistExecute.java:128)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:535)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:557)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.DefaultPersister.delete(DefaultPersister.java:654)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.persist.DefaultPersister.delete(DefaultPersister.java:464)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.core.DefaultServer.delete(DefaultServer.java:1860)
    2011-06-13 18:36:55 [SEVERE]     at com.avaje.ebeaninternal.server.core.DefaultServer.delete(DefaultServer.java:1845)
    2011-06-13 18:36:55 [SEVERE]     at com.Acrobot.iConomyChestShop.Logging.removeOld(Logging.java:77)
    2011-06-13 18:36:55 [SEVERE]     at com.Acrobot.iConomyChestShop.Logging.run(Logging.java:82)
    2011-06-13 18:36:55 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-06-13 18:36:55 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
     

Share This Page