[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


    What exactly does not work? What is the error?
  3. Offline


    2011-05-15 05:52:11 [SEVERE] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
    javax.persistence.PersistenceException: Problem loading Database Driver [org.mysql.JDBC]: org.mysql.JDBC
        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:175)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:166)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:191)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:115)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:100)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: org.mysql.JDBC
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        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
    It doesnt let players (even op's) use shops
  4. Offline


  5. Offline


    i have install it new
  6. Offline


    Now, at the moment? I uploaded it like 30 mins ago. And does it work for you now?
  7. Offline


    It would come from my home then? Can use me to resolve this problem?^-^

    20:04:20 [GRAVE] ebean.properties not found
    20:04:20 [GRAVE] Could not load 'plugins\iConomyChestShop.jar' in folder 'plugin
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:175)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Error
     constructing com.avaje.ebeaninternal.server.core.DefaultServerFactory
            at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFac
            at com.avaje.ebean.EbeanServerFactory.<clinit>(EbeanServerFactory.java:5
            ... 10 more
    Caused by: java.lang.IllegalArgumentException: Error constructing com.avaje.ebea
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:107)
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:94)
            at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFac
            ... 11 more
    Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\A
    ur├®lien\Desktop\Aur├®lien\Minecraft\serveur minecraft\craftbukkit-0.0.1-SNAPSHO
    T.jar (Le chemin dÆaccÞs spÚcifiÚ est introuvable)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigL
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.load(XmlConfigLoa
            at com.avaje.ebeaninternal.server.core.DefaultServerFactory.<init>(Defau
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at java.lang.Class.newInstance0(Unknown Source)
            at java.lang.Class.newInstance(Unknown Source)
            at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:104)
            ... 13 more
    Caused by: java.io.FileNotFoundException: C:\Users\Aur├®lien\Desktop\Aur├®lien\M
    inecraft\serveur minecraft\craftbukkit-0.0.1-SNAPSHOT.jar (Le chemin dÆaccÞs spÚ
    cifiÚ est introuvable)
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.checkJar(XmlConfi
            at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigL
            ... 22 more
    I have just downloaded the plugin for this test
  8. Offline


    This is the one thing I don't know why happens.
    Try making a ebean.properties file (blank) in your server directory.
  9. Offline


    I cant, another plugin also uses this file for reference...
  10. Offline


    That means that plugin has got a bugged bukkit.yml

    Try changing "driver" in bukkit.yml to "com.mysql.jdbc.Driver"
  11. Offline


    I tried but that does not still work, that to make?
  12. Offline


    Hmm, I really, really don't know why it happens.
    It's really weird, because it shows that your CraftBukkit is corrupted :/

    If re-downloading CraftBukkit doesn't work, do this:

    in config, change "useDB" to "false"

    unzip iConomyChestShop.jar, and in plugin.yml delete "database: true", so in iConomyChestShop.jar there will be "plugin.yml" that hasn't got a "database: true" line
  13. Offline


    ok with this it works sorry^^
  14. Offline


    Everything is working fine now, thanks!
  15. Offline


    @Acrobot I'm pretty sure I'm on 2.73,

    I'm getting that sell shop error everyone was getting "Player_INTERACT"

    I'll try to redownload.
  16. Offline


    Still not working =(
  17. Offline


  18. Offline



    Thanks for the letting me know. Have you thought about a todo list on the front page?
  19. Offline


    Yeah, but I thought people would always try to force me into doing "TODO"s, when I have more important things to do, for example, now, I am re-writing the plugin and I have problem with Register.
  20. Offline


    whats the correct way to make adminshop? I can seem to do it correctly.
    64 : 64
    and configured /money set adminshop 12345678901234567890
    What am I doing wrong?
  21. Offline


    Put in any variation of "Admin Shop" on the first line - it can be for example:
    Admin Shop
    admin shop

  22. Offline


    Very simple

    adminshop or Admin Shop or AdminShop

    Example: Buying 10 books

    player goes here and do /sell and each 10 books they have in their inventory, they get 4<currency>

    Re-downloaded and it worked :]
  23. Offline


    I keep getting seller has not enough money
  24. Offline


    Oh, look into your config, it means you have set "serverAccountName", which is server's account. Change it to ""
  25. Offline


    Will ChestShop 3.0 be released soon?
  26. Offline


    Hmm, depends if I have problems with it. Currently, Register isn't working for me - Methods.setMethod(event.getPlugin()) fails.
  27. Offline


    For me Method.hasAccount(name); fails...
  28. Offline


    Yeah, it seems like Register fails :/
  29. Offline


    Did you warn Nijikokun?
  30. Offline


  31. Offline


    Register 1.3 is out, does it fix your issue?

Share This Page