[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

    Acrobot

    kamild1996
    Yeah, it will work, but you need to use Vault.

    Inna forma kontaktu?
    Hmm... Po co? :p Jestem dość często na forum. No ale mam steama: acrobot
     
    kamild1996 likes this.
  3. Offline

    kamild1996

    I started to use Vault plugins and I'm quite satisfied, so OK.
    And all already registered shops will be working after changing Econ plugin from iConomy to EssentialsEcon?
     
  4. Offline

    Acrobot

    kamild1996
    Yep :p
    "Registered" is a wrong word - the shops aren't saved anywhere :p
    It will work even if you copy the map from another server.
     
  5. Offline

    HerobrineX

    I'm using ChestShop version 3.35
     
  6. Offline

    buz_mihai

    have a problem i can't sell items to AdminShop only if i am OP. I whant to know what i need to make work for players to sell to shop. To Sign shop not /sell command. To AdminShop Players can only buy sel don't work :|. TX
     
  7. Offline

    Acrobot

    HerobrineX
    Hmm...
    Have you tried using Vault?

    buz_mihai
    Go to bukkit.yml, change spawn-radius to 0.
     
  8. Offline

    HerobrineX

    no but ill try that

    also I am confused about register.
    Is it a separate plugin u have to install? Do I have to have Iconomy and register?
     
  9. Offline

    Etsijä

    OK, setting SERVER_ECONOMY_ACCOUNT to "" seems to have fixed the problem with Essentials Economy.

    A hint: Since you shouldn't make it mandatory for people to always update your plugin to exactly every new version - they WILL skip versions! - why not make it known somehow to all how the server stores should be set up with Essentials?

    Anyway, thanks for the help. You are active here, as always, and that makes you (sadly) a bit unique amongst the plugin developers...I just wish authors of Essentials, WE and WG would be equally active...
     
  10. Offline

    tappestry

    I don't mean to sound rude but I hope this can be taken constructively.
    We just experienced the [Shop] You don't have permission for that message. I followed the instructions to use Pex 1.7. After doing so, McMMO broke, Heroes Broke, and a number of other plug ins. Now I have been using Pex 1.8 since its release which was on 1/29/2012. ChestShop updated on 02/16/2012. So nearly 2 weeks, everything was working perfectly untill the [Shop] You don't have permission for that, when I updated ChestShop. I do not think its fair to say downgrade to pex 1.7 to simply use ChestShop, as I never had a problem with it before. Instead, I would suggest that people downgrade to ChestShop V3.34 and have EVERYTHING work, instead of having only ChestShop work and a number of other plug-ins blink out because of downgrading to an older permissions file. Just my Two Cents. :) Great plug-in btw, we loves it!!!!
     
  11. Offline

    Nekuroi

    i get this error and i don't know why, since is there your name, can you light me?

    Code:
    00:28:24 [SEVERE] javax.persistence.PersistenceException: ERROR executing DML bindLog[] error[Duplicate entry '18753' for key 'PRIMARY']
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:116)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.insert(DmlBeanPersister.java:76)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeInsertBean(DefaultPersistExecute.java:91)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:527)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:557)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersister.insert(DefaultPersister.java:404)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaInsert(DefaultPersister.java:377)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveVanillaRecurse(DefaultPersister.java:361)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:308)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:282)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1765)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1751)
    00:28:24 [SEVERE] at com.Acrobot.ChestShop.DB.Queue.run(Queue.java:24)
    00:28:24 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    00:28:24 [SEVERE] at java.lang.Thread.run(Unknown Source)
    00:28:24 [SEVERE] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '18753' for key 'PRIMARY'
    00:28:24 [SEVERE] at sun.reflect.GeneratedConstructorAccessor119.newInstance(Unknown Source)
    00:28:24 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    00:28:24 [SEVERE] at java.lang.reflect.Constructor.newInstance(Unknown Source)
    00:28:24 [SEVERE] at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    00:28:24 [SEVERE] at com.mysql.jdbc.Util.getInstance(Util.java:382)
    00:28:24 [SEVERE] at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
    00:28:24 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
    00:28:24 [SEVERE] at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    00:28:24 [SEVERE] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    00:28:24 [SEVERE] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    00:28:24 [SEVERE] at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    00:28:24 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    00:28:24 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
    00:28:24 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
    00:28:24 [SEVERE] at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.lib.sql.ExtendedPreparedStatement.executeUpdate(ExtendedPreparedStatement.java:164)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.type.DataBind.executeUpdate(DataBind.java:74)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.dml.InsertHandler.execute(InsertHandler.java:155)
    00:28:24 [SEVERE] at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)
    00:28:24 [SEVERE] ... 14 more
    
     
  12. Offline

    buz_mihai

  13. Offline

    superpizza33

    nice plugin! I put it in my server :)
     
  14. Offline

    ಠ_ಠ

    I gave myself all permission nodes, but I cant create an Admin shop. Any ideas as to why? D:
    Latest CB and Chest shop.
    PermissionEx iConomy 6

    Also, No one can buy from the shops, unless they're OP... so idk what's going on. I gave everyone the proper permission nodes too :\
     
  15. Offline

    milos100

    Hi, how to i make shop where you can buy and sell for free.

    I tried like this
    <empty>
    <1>
    <FREE:FREE>
    <id>

    but nothing happened.. So how to do that right?
     
  16. Offline

    Niickerz

    Hello, sorry to be a pain but can someone help! it says I can't create this type of shop so where am i meant to put my permissions, Iv'e looked everywhere but can't find anything to help me. I have a mac does that mean anything? I put the permissions in the groups but nothing happened is it because of the essentials protection chest thing? Thanks...
     
  17. Offline

    xduckxx

    hey i have the latest version of cb and cs but for some reason when i buy and see my balance doesnt change... im using iconomy 6 too.
     
  18. Offline

    Fungreenfox

    When Chestshop is making the statistics .html page, the consol says, it hasn't got permission to write in the html folder. I have no problems with other plugins of this type.
     
  19. Offline

    Acrobot

    Etsijä
    No, it was just a really special case - switching to Vault, and since Vault handles the accounts differently (it actually creates the account if they don't exist) - you needed to clear the server_eco_account

    Normally it would work fine :)

    HerobrineX
    No, Register is a part of ChestShop. It's like Vault, but it was before Vault.

    tappestry
    Really? Does 3.34 work fine?
    That's weird, 'cause I didn't change anything in the Permission handling code. Well - I guess it can be a problem with SuperPerms bridge and PEX. PEX doesn't support it since 1.18, and I also support Permissions 3 (will be dropped in R5), so SuperPerms bridge thinks it's Permissions 3, but it doesn't have any permission.
    That's why it happens.
    It would be fixed if PEX deleted its bridge.

    Nekuroi
    Sorry, that's actually not my plugin's fault :/
    It's a Bukkit/EBean fault - I only use them.

    xduckxx
    Sorry, but that would be iCo's fault.
    Do you get any errors in the console?

    Fungreenfox
    Did you chmod +x plugins/ChestShop and plugins/ChestShop/HTML?
     
  20. Offline

    Fungreenfox

    Did you chmod +x plugins/ChestShop and plugins/ChestShop/HTML?[/quote]

    Yes, running windows 7, and write permissions are there.
     
  21. Offline

    Fungreenfox

    Well, it works now. Somehow it needed a few server restarts or time to see the permission.
     
  22. Offline

    xduckxx

    Acrobot
    No, I didnt get any errors. and i figured it would be iCo but i wasnt sure. any suggestions?
     
  23. Offline

    Acrobot

    xduckxx
    Hmm... Switch to any other economy plugin?
    I know that, for example, BOSEconomy is good.
     
  24. Offline

    mrhelton

    Hello

    I have having issues. I (admin) can buy and sell but my users can't. (this is for an adminshop)

    I'm running 1938 R4
    chestshop 3.35
    iConomy
    PEX with permissions for - ChestShop.shop.buy and - ChestShop.shop.sell for my users.

    Any thoughts?

    edit: to clarify, users can't buy or sell. It's not that spawn issue. The store is far away from spawn anyway.
     
  25. Offline

    Epics

    Version of PEX & iConomy?

    CraftBukkit may have removed deprecated code that was not updated yet in the latest recommended build of this plugin. Try downgrading to the recommended build.
     
  26. Offline

    mrhelton

    I'm using the newest non-beta version of each (pex 1.18 and iConomy 6.0.8b)
    Are you talking about downgrading my bukkit version? If so, what is the recommended build? I thought 1938 was
     
  27. Offline

    Kainzo

  28. Offline

    Epics

    1.18 PEX is buggy. Try downgrading to 1.17 to see if this fixes your problem!
    FYI: 1846 is the recommended build. :)

    Indeed. Register is outdated and buggy.
     
  29. Offline

    Sleaker

    Kainzo - my mistake I didn't see that it already did support Vault ;)

    The more pertinent issue is that it's still using the deprecated Configuration classes and needs to upgrade :-/
     
  30. Offline

    DJDUDE

    Yes of coarse i did
     
  31. Offline

    Kainzo

    There's a 3.36 ready for r5 :p (we were using it)
     

Share This Page