[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. Any chance you can make it so the chest shops do not allow broken tools to be traded, and thus repairing them? It seems to block broken armour, but not tools :(
     
  3. Offline

    MontyLike

    fixed it. thanks

    but another (misc) problem occured:
    the graph should explain it :)
     

    Attached Files:

  4. Offline

    olly146

    It says sellers account doesn't exist. Help!
     
  5. Offline

    Acrobot

    @olly146
    So you don't have economy account.

    @Joy
    It is configurable in config file.

    @MontyLike
    Not "& 6", but "&6"
     
  6. Oh wow, overlooked, thanks!
     
  7. Offline

    Scipione

    Don't know if this is already sugggested / in the making process.. but if not: Can you implement an option that allows to take tax on each transaction ?
    For my needs, this tax can just be substracted from the payment the buyer does (Don't need it transfered to a special account)
    Would be nice :)
     
  8. Offline

    olly146

    I have fixed it now! Thanks!
     
  9. Offline

    Torrental

    Adminshop is basically, having a shop without having the items. The server spawns them when they are bought.

    But for the space problem, my permissions used to be something like this
    Code:
    info:
                prefix: '&f[&fNormal]&f '
                suffix: ''
                build: true
                rank: 2
                    inheritance:
                    - Guest
                    permissions:
    
    And to fix it:
    Code:
    info:
                prefix: '&f[&fNormal]&f '
                suffix: ''
                build: true
                rank: 2
            inheritance:
            - Guest
            permissions:
    
     
  10. Offline

    neddoom

    Will BOSEconomy Bank Account support be added into 3.0?
    And also, is 3.0 for MC version 1.5 or 1.6?


    Also, do you have a viewable To-Do list by any chance?
     
  11. Offline

    Acrobot

    @neddoom
    Yes, but not in 3.0, maybe in 3.1

    3.0 will be probably for 1.6, because I must test it, so Minecraft will come out by this day. I will code it for 1.5 though.

    TODO list - not yet, it's in TODO (See what I did there? :D)
     
  12. Offline

    RustyDagger

    My permissions file keeps deleting all my ' ' i put in are you sure your permissions is up to date?
     
  13. Offline

    Donny

    Is there any other way to make it product the stats.html file in a different directory, like my www directory for example =P?
     
  14. Offline

    Donny

    Permissions does that if you don't have ' ' on everything. Looks like you have something wrong with yours post them please.
     
  15. Offline

    thefoxygranpa

    Getting an error on the logs.

    To help me fix it, I need to know:
    - What CraftBukkit build have you got (type in "version" in console and paste everything)
    - Have you got a Permission plugin, if yes, which one? Permissions v2.1.1
    -If you have Permissions plugin, please post your config on pastebin and give me the link.
    - http://pastebin.com/xVv6dcwy That's the only group that has iconomy&iconomychestshop perms
    - iConomyChestShop's config file (It's located in /plugins/iConomyChestShop/config.yml)
    - http://pastebin.com/UgyxZWM1
    - Did anything pop in the console during loading/transaction? I believe this is happening on log in of players? I don't see any transactions taking place during the time of the errors.
    - What have you been doing?


    Code:
    2011-05-24 21:18:33 [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-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlHandler.checkRowCount(DmlHandler.java:123)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DeleteHandler.execute(DeleteHandler.java:81)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:105)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.delete(DmlBeanPersister.java:67)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeDeleteBean(DefaultPersistExecute.java:128)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:535)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:557)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.delete(DefaultPersister.java:654)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.persist.DefaultPersister.delete(DefaultPersister.java:464)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.core.DefaultServer.delete(DefaultServer.java:1860)
    2011-05-24 21:18:33 [SEVERE]    at com.avaje.ebeaninternal.server.core.DefaultServer.delete(DefaultServer.java:1845)
    2011-05-24 21:18:33 [SEVERE]    at com.Acrobot.iConomyChestShop.Logging.removeOld(Logging.java:77)
    2011-05-24 21:18:33 [SEVERE]    at com.Acrobot.iConomyChestShop.Logging.run(Logging.java:82)
    2011-05-24 21:18:33 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-05-24 21:18:33 [SEVERE]    at java.lang.Thread.run(Thread.java:662)
    
    Thanks for your help! Let me know if you need any more info
     
  16. Offline

    RustyDagger

    My permissions work just fine It is you that has the problem. No coder would ever code what you just said why would a coder make a bigger problem of a small problem. It would be plain stupidity if what you are saying is true.
    (its not)

    Just to prove my point here:

    On a related note it seems like only half the admin node is working i can put any name i want on the top line but i cant open other players shops or make admin shops very weird.
    Code:
    plugin:
        permissions:
            system: default
            copies: null
    groups:
        Noob:
            default: true
            info:
                prefix: '&c(&8N&c)'
                suffix: '&f'
                build: true
                rank: 1
            inheritance: null
            permissions:
            - commandbook.spawn
            - commandbook.rules
            - commandbook.motd
            - commandbook.who
            - commandbook.kit.kits.trees
            - myhome.home.basic.*
            - lwc.protect
        Player:
            default: false
            info:
                prefix: '&c(&eP&c)'
                suffix: '&e'
                build: true
                rank: 2
            inheritance:
            - Noob
            permissions:
            - iConomyChestShop.command.iteminfo
            - iConomyChestShop.shop.create
            - iConomyChestShop.shop.buy
            - iConomyChestShop.shop.sell
            - iConomy.access
            - iConomy.rank
            - iConomy.list
            - iConomy.payment
            - commandbook.say.*
            - commandbook.whereami.*
            - commandbook.msg
            - worldedit.extinguish
            - worldguard.locate
            - jobs.job.Hunter
            - jobs.job.CityGuard
            - jobs.job.LandScaper
            - jobs.job.CityWorker
            - jobs.job.Miner
            - jobs.job.LumberJack
            - jobs.job.Electrician
        Respected:
            default: false
            info:
                prefix: '&c(&2R&c)'
                suffix: '&e'
                build: true
                rank: 3
            inheritance:
            - Player
            permissions: null
        Vip:
            default: false
            info:
                prefix: '&c(&2V&c)'
                suffix: '&6'
                build: true
                rank: 4
            inheritance:
            - Respected
            permissions:
            - nocheat.speedhack
            - nocheat.moving
            - worldguard.stack
            - commandbook.clear
            - commandbook.kit.list
            - commandbook.kit.kits.suit
            - commandbook.bans.isbanned
            - logblock.me
            - commandbook.call
            - iConomy.bank.*
            - jobs.job.Farmer
            - jobs.job.Knight
        Mod:
            default: false
            info:
                prefix: '&c(&aM&c)'
                suffix: '&e'
                build: true
                rank: 5
            inheritance:
            - Vip
            permissions:
            - commandbook.slap.other
            - commandbook.rocket.other
            - commandbook.barrage.other
            - commandbook.kick
            - commandbook.time
            - commandbook.teleport
            - commandbook.mute
            - lwc.mod
            - worldedit.fixlava
            - worldedit.fixwater
            - logblock.lookup
        Admin:
            default: false
            info:
                prefix: '&c(A)'
                suffix: '&6'
                build: true
                rank: 6
            inheritance:
            - Mod
            permissions:
            - commandbook.clear.other
            - commandbook.teleport.other
            - commandbook.spawnmob.*
            - commandbook.weather.*
            - nocheat.*
            - worldguard.god.*
            - worldguard.heal.*
            - worldguard.slay.*
            - worldedit.history.*
            - worldedit.superpickaxe.*
            - worldedit.navigation.*
            - permissions.reload
            - kiwiadmin.tempban
            - lwc.admin
            - logblock.rollback
            - logblock.area
            - p2.promote
            - p2.demote
            - myhome.home.soc.others
        SuperAdmin:
            default: false
            info:
                prefix: '&c(&3SA&c)'
                suffix: '&d'
                build: true
                rank: 7
            inheritance:
            - Admin
            permissions:
            - iConomyChestShop.shop.admin
            - worldguard.*
            - commandbook.*
            - worldedit.*
            - myhome.admin
        Owner:
            default: false
            info:
                prefix: '&c(&bO&c)'
                suffix: '&b'
                build: true
                rank: 8
            inheritance:
            - SuperAdmin
            permissions:
            - iConomy.admin.*
            - jobs.job.*
            - p2.*
    users:
        RustyDagger:
            group: Owner
            permissions: null
        Ice_Dragon_God:
            group: Owner
    
    # player data removed
    
    EDIT UBER LOL MY admin node was wrong I had iconomychestshop.shop.admin Dont neeed the shop herp derp.
     
  17. Offline

    bfanboy

    Ok...a player on my server setting up an automated smelting operation with MineCartMania. He put a sign on a furnace with [Deposit Items], Fuel: blah blah Smelt: blah blah. All that nonsense. No buy or sell written anywhere on the sign. He clicks done and the sign pops off and it says [Shop] You do not have a chest set up! The furnace is surrounded by other furnaces. This is CB 803. IChestShop 2.73.

    Any ideas?
     
  18. Offline

    Mr_Mellow

    Do double chest work?
     
  19. Offline

    RustyDagger

    Ok bug / report i am getting this in my server start up log every single time and i am 100% sure its not my problem

    Code:
    [INFO] DataSourcePool [BukkitPiston] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-25 21:40:50 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-25 21:40:50 [INFO] trimming off 'is' from boolean field name  isOp in class com.bukkit.redspider.bukkitPiston.PersistentPlayer
    2011-05-25 21:40:50 [INFO] Entities enhanced[0] subclassed[3]
    2011-05-25 21:40:51 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-25 21:40:51 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-25 21:40:51 [INFO] Entities enhanced[0] subclassed[1]
    2011-05-25 21:40:51 
    Yes i am aware that there are 2 plugin names mentioned in the chunk there both of witch are receiving this post.

    Any info or clues as to the problem would be awesome.

    I also have another request.

    I would like to request some better error handling for when iconomy disables its self as it is this plugin spams could not pass Errors making it very hard to work out the true problem because the console won't stop moving and the real error is removed because the console is too full a simple message saying disabled due to no connection with Economy plugins would be suffice.
     
  20. Offline

    vgamers

    Whenever someone trys to buy something it says 'out of stock' i have followed everything whats happening?
     
  21. Offline

    Acrobot

    @Donny
    Not yet

    @thefoxygranpa
    Something is wrong with your Database, please delete iConomyChestShop.db from plugins/iConomyChestShop and optional - turn useDB: to false.

    @RustyDagger
    That's not an error :)

    And yeah, sure.

    @Mr_Mellow
    IDK, plugin supports them, I had no bug reports yet.

    @bfanboy
    There is option to turn it off in the config file.
     
  22. Offline

    Tadas159

    Why do i get this?

    Code:
    2011-05-25 08:18:05 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.IllegalAccessError: tried to access method org.h2.expression.ExpressionVisitor.getNotFromResolverVisitor(Lorg/h2/table/ColumnResolver;)Lorg/h2/expression/ExpressionVisitor; from class org.h2.expression.Comparison
        at org.h2.expression.Comparison.createIndexConditions(Comparison.java:364)
        at org.h2.command.dml.Select.prepare(Select.java:804)
        at org.h2.command.Parser.prepare(Parser.java:202)
        at org.h2.command.Parser.prepareCommand(Parser.java:214)
        at org.h2.engine.Session.prepareLocal(Session.java:426)
        at org.h2.engine.Session.prepareCommand(Session.java:374)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1100)
        at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
        at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:243)
        at com.iConomy.system.Accounts.exists(Accounts.java:32)
        at com.iConomy.iConomy.hasAccount(iConomy.java:441)
        at com.nijikokun.register.payment.MethodiCo5.hasAccount(MethodiCo5.java:41)
        at com.Acrobot.iConomyChestShop.EconomyManager.hasAccount(EconomyManager.java:14)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:73)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  23. Offline

    paste120

    Ok I know that part. I'm wondering about the account thing. What does it do exactly? Does it collect the money or does the money just disappear? im talking about
    Code:
    serverAccountName: ""
    If I put an account from iConomy in there is that where the money goes?
     
  24. Offline

    Acrobot

    @paste120
    If you put account from iConomy/any other econ plugin, it will use admin shops as regular shops, just without chests. The money will get substracted/added to your specified account.

    @Tadas159
    Your iConomy fails. Please contact Niji.
     
  25. Offline

    paste120

    What version is your Bukkit? Mine runs fine on as low as 740.
     
  26. Offline

    paste120

    Ah ok thanks.
     
  27. Offline

    Donny

    Code:
    2011-05-25 07:38:10 [INFO] [iConomyChestShop] s*******e bought 32 DIRT with durability of 0 from selfservice0 for 100.00 $
    2011-05-25 07:38:10 [INFO] DataSourcePool [iConomyChestShop] grow; id[iConomyChestShop.5] busy[6] max[20]
    2011-05-25 07:38:11 [INFO] Can not test connection as heartbeatsql is not set
    2011-05-25 07:38:11 [INFO] Closing Connection[iConomyChestShop.4] psReuse[0] psCreate[1] psSize[0]
    2011-05-25 07:38:11 [INFO] DataSourcePool [iConomyChestShop] grow; id[iConomyChestShop.6] busy[7] max[20]
    2011-05-25 07:38:11 [SEVERE] javax.persistence.PersistenceException: Query threw SQLException:[SQLITE_BUSY]  The database file is locked (database is locked)
    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 ics_transactions t0
    where t0.sec < ?
    
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:849)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.CQuery.createPersistenceException(CQuery.java:829)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:238)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.DefaultOrmQueryEngine.findMany(DefaultOrmQueryEngine.java:104)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.core.OrmQueryRequest.findList(OrmQueryRequest.java:344)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1469)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.querydefn.DefaultOrmQuery.findList(DefaultOrmQuery.java:906)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.util.DefaultExpressionList.findList(DefaultExpressionList.java:201)
    2011-05-25 07:38:11 [SEVERE]     at com.Acrobot.iConomyChestShop.Logging.removeOld(Logging.java:77)
    2011-05-25 07:38:11 [SEVERE]     at com.Acrobot.iConomyChestShop.Logging.run(Logging.java:83)
    2011-05-25 07:38:11 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-05-25 07:38:11 [SEVERE]     at java.lang.Thread.run(Thread.java:679)
    2011-05-25 07:38:11 [SEVERE] Caused by: java.sql.SQLException: [SQLITE_BUSY]  The database file is locked (database is locked)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.DB.newSQLException(DB.java:383)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.DB.newSQLException(DB.java:387)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.DB.throwex(DB.java:374)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.NativeDB.prepare(Native Method)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.DB.prepare(DB.java:123)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:404)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:399)
    2011-05-25 07:38:11 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:383)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:426)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.lib.sql.PooledConnection.prepareStatement(PooledConnection.java:396)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.CQuery.prepareBindExecuteQuery(CQuery.java:399)
    2011-05-25 07:38:11 [SEVERE]     at com.avaje.ebeaninternal.server.query.CQueryEngine.findMany(CQueryEngine.java:198)
    2011-05-25 07:38:11 [SEVERE]     ... 9 more
    2011-05-25 07:38:11 [INFO] [iConomyChestShop] s*******e bought 32 DIRT with durability of 0 from selfservice0 for 100.00 $
    Never had this problem until recently. I await your new version excited yet patiently.
     
  28. Offline

    Acrobot

    @Donny
    Eh, I don't like EBean now, I guess :/

    It's ebean that fails. If error still exists, delete iConomyChestShop.db in your plugins/iConomyChestShop folder.
     
  29. Offline

    paste120

    Just updated to bukkit 803 to check if my server having version 740 was an issue. I still get this.
    [​IMG]

    Code:
    10:47:19 [INFO] [iConomyChestShop] AgentOrange0x78 created shop in world-survival, x = -263, y = 72, z = -68, which first line is AdminShop and it buys/sells 10 Water, and the buy/sell line looks like: "Buy $20"
    
     
  30. Offline

    Donny

    Will this delete any of my current shops? or it is just a log of transactions?
     
  31. Offline

    paste120

    It was the dollar sign :/ I really wish it could be formated better like that. Ex. Buy $20 instead of B 20
     
  32. Offline

    Acrobot

    @paste120
    Yeah, I considered making it ignore other text, like "I want to Buy for 5" would work, but then, it could be malicious. However, I can make it ignore $ character, ok?

    @Donny
    Nope, it's just a temporary database for generating html page. If you don't even use it, change "useDB" to false in config file.
     

Share This Page