[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

    Proffessionel

    Thank, it work :p
     
  3. Offline

    Acrobot

  4. Offline

    Rorato

    Thanks, works now. Didn't even notice I had 3.0. I was still having trouble with it, but then one of my friends stood directly in front of the sign and it worked. But, I guess it doesn't work if they don't stand right in front of it, because they were all gathered in a circle, and only one got it right...
     
  5. Offline

    Guvnors

    In our server it has suddenly said that users can not buy from the admin shop including ops themselves with all permissions.

    All users have iConomyChestShop.shop.buy

    But no-one can buy at shops anymore.
     
  6. Offline

    Proffessionel

    Oh ! I can't put several item in a chest
     
  7. Offline

    Proffessionel

    I will make a chest with all tool, but I can't with this plugin
     
  8. Offline

    Acrobot

    @Proffessionel
    What exactly happens?

    @Rorato
    Hmm... That would be weird, but sounds a bit like spawn protection...

    @Guvnors
    Try ChestShop.shop.buy and tell me if it works, do you get any errors in the console?
     
  9. Offline

    Mhalkyer

    @Acrobot
    I'm getting this error when running CraftBukkitUpToDate:
    Code:
    iConomyChestShop.jar: Not able to update check if URL https://github.com/downloads/Acrobot/iConomyChestShop/iConomyChestShop.zip correct. If not ask the Author to give me the new one
     
  10. Offline

    Acrobot

    @Mhalkyer
    Hmm... It works for me, but it seems like it redirects, so I'll PM the new URL :p
     
  11. Offline

    Mhalkyer

    Yeah, I guess he's still working out the re-directs =D
     
  12. Offline

    Valgor

    Ok, did that and it says "You Can't Buy from Shops!"
    And I know I cant buy from my own, I have been having one of my members test them.
    Thanks for the help so far. I hope my problem gets fixed though :p lol.
     
  13. Offline

    Acrobot

    @Valgor
    Hmm...
    Mind posting both iConomyChestShop's config.yml and Permission's groups.yml on pastebin.com?
     
  14. Offline

    Valgor

    Ok, should be here:
    http://pastebin.com/u/Valgor

    If you cant access let me know.
     
  15. Offline

    Acrobot

    @Valgor
    Unfortunately, it's not there :/
     
  16. Offline

    GTA4rox08

    I have a quick suggestion, as this plugin was recently added on my server, Godcraft. I allways like to know how much money I have made while I was away, I was thinking a feature that if you sold anything while logged off, when you log back on it would allert you, example

    I think this would be a nifty addition to the plugin.
     
  17. Offline

    Acrobot

  18. Offline

    GTA4rox08

    Thanks for considering the suggestion, hope to see it in another update :]
     
  19. Offline

    Valgor

  20. Offline

    Kane

    I like the idea too but maybe condense it. So if your offline coming on it would show you bob bought 1x iron block 22 times. Rather then have it spam him 22 times.

    Also be nice if you can add more features on a second sign. Some people only want to buy certain quantity and don't want to get owned while offline by someone who sells them 1000x of what their buying.
     
    GTA4rox08 likes this.
  21. Offline

    facelifter77

    I have a problem, when the users wanna sell something by the adminshop it says:
    Selle have not enought money.

     
  22. Offline

    gofoufi

    how do i do a [trade] sign?
     
  23. Offline

    Haduke

    I am having another problem. It seems that no one can sell certain items like different colored dyes, different colored wool, or wood/cobblestone/sandstone slabs. When they first make the shops, it seems to work just fine. But once the player logs out and back in again, their shops containing those items revert to ink sacks (dyes), white wool (colored wool), or stone slabs (other kinds of slabs). Everything in the chest changes like that. And if someone tries to buy from that shop, it says the chest is out of stock. This is quite frustrating because the admins on my server were wanting to build a massive store that sold virtually everything available in the game. Now we can't seem to do that because of this problem. Is there a way to fix it? Thanks!
     
  24. Offline

    thehutch

    I was wondering if there are any new permissions for the chestshop beta 9 because im redoing my permissions at the moment so i was wondering what the others were because if the permission is chestshop.shop.* then what is under the.*

    Thank you.
     
  25. Offline

    Tagz

    Curious if the beta fixed the issue of players with names too long?
    Cheers.
     
  26. Offline

    jinrey

    I have problem! Only OP can remove shop! how can i make my member players can remove owns shops?
    this my permissions:
    Rzemieslnik:
    default: false
    info:
    prefix: '[M]'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'iConomy.payment'
    - 'iConomy.access'
    - 'iConomy.list'
    - 'ChestShop.shop.buy'
    - 'ChestShop.shop.sell'
    - 'ChestShop.shop.*'
    - 'lwc.protect'
    - 'lc.level.*'
    - 'hungry.player.*'
     
  27. Offline

    KrazyBonez

    Getting this error every time a shop is made.

    Show Spoiler
    2011-07-16 19:58:03 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
    at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(ProtectionManager.java:65)
    at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:165)
    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:321)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:967)
    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:84)
    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)
     
  28. I really hope you read this because it will be extremely useful to me!

    On my server we have levels of people who get different discounts at the admin shop. If they were allowed to get discounts automatically at certain admin-set shops that would be great!
     
  29. Offline

    Moparx

    Hello, I am also getting the Could not pass event SIGN_CHANGE to iConomyChestShop error that others have reported recently with iConomyChestShop 2.75.

    According to my logs, this started happening after LWC was upgraded to 3.30. There was no issue with the previous version of LWC (3.21).

    Interestingly, The chestshop detects it perfectly: [iConomyChestShop] LWC version 3.3 loaded.

    I am running Craftbukkit b953 and I reinstalled fresh copies of both iConomyChestShop and LWC 3.30 to no avail.
    The shops do still work, however LWC no longer automatically protects the chests.

    Show Spoiler
    2011-07-17 06:45:16 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
    at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(ProtectionManager.java:65)
    at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:169)
    at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.java:455)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:967)
    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:84)
    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)
     
  30. Offline

    ScottSpittle

    how do i format the shop Database.. or is there any need to, it seems to work fine without it
     
  31. Offline

    kornichen

    Hi,

    I´ve got since long time a problem with iConomyChestShop. I´ve try to clear the error but it failed all times. Now I´ve got BOSEconomy. The error is now an other than when I used iConomy. Please help me. It doesn´t work since one year, I think. At this moment, I´ve use #953, the recommended build. The error is:

    Code:
    2011-07-17 11:28:18 [SEVERE] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins': 
    javax.persistence.PersistenceException: Problem loading Database Driver [com.mysql.jdbc.driver]: com.mysql.jdbc.driver
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.initialise(DataSourcePool.java:234)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.<init>(DataSourcePool.java:208)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.getDataSource(DataSourceManager.java:210)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourceGlobalManager.getDataSource(DataSourceGlobalManager.java:63)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.getDataSourceFromConfig(DefaultServerFactory.java:427)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.setDataSource(DefaultServerFactory.java:388)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:168)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
        at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:176)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.driver
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.avaje.ebeaninternal.api.ClassLoadContext.forName(ClassLoadContext.java:73)
        at com.avaje.ebeaninternal.api.ClassUtil.forName(ClassUtil.java:53)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.initialise(DataSourcePool.java:232)
        ... 18 more
    
    Thanks for help and sorry for my bad english, I´m from germany,

    kornichen
     

Share This Page