[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

    Nieksas

    i am soo stupid , working perfect plugin
     
  3. Offline

    trivials

    K i have try it.
    An with id no problem but with name STONE or gold no effect :(
     
  4. Offline

    Adamadz

    Ok i get this error saying severe could not pass event SIGN_CHANGE to iConomychestshop
    It then goes on saying it will restart and it restarts server. When i go back on the sign does not work i have all the requirements.
    What am i doing wrong or is it a bug?

    Thanks :)
     
  5. Offline

    Acrobot

    @Adamadz - you probably have new plugin with iConomy 2.2b or old plugin with iConomy 3.
    Update iConomy or plugin :)
     
  6. Offline

    Adamadz

    Ok your probably right how do i do it i only downloaded this and put it in my plugins folder and updated my permissions wiht new command things

    I downloaded this

    wget friendly download (only jar!)
    http://dl.dropbox.com/u/11388037/iConomyChestShop.jar

    How do i actually do it and do the update stuff.
    Sorry for being a Noob :p

    --------------Edit----------------
    Sorry for being noob i understand it now u download the thing under the picture i thought it was a text file but it was a zip sorry. Sorry for inconvenience :L
    Thanks :)
     
  7. Offline

    Sevenos

    I have the newest iConomy 4 and ChestShop 0.73

    Code:
    2011-02-26 23:31:18 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:116)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:232)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.iConomy.iConomy
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     
  8. Offline

    Acrobot

    They have changed the Api again, I guess...
     
  9. Offline

    Sevenos

    Yea, managing economy mods is just crap at the moment. Is there a chance that you update your mod soon? iConomy 3 had a bunch of mayor issues.
     
  10. Offline

    Moe041991

    i just want a working iconomy and a working chestshop, my minecraftworld would be awesome!
     
  11. Offline

    Omen

    i updated iconomy and it looks lik ethe packaged zip for iconomy is 4.0.......

    and i get these errors when trying to buy from someones shop
    Code:
    2011-02-26 21:59:59 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.iConomy.iConomy
            ... 12 more
    2011-02-26 22:00:00 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
    oh, i see a user above is reporting the same issue. just adidng that i am having the same problem then :)
     
  12. Offline

    Kr3m1in

    Nothing is working. I have modified permissions, and I still do not have the permission to make a shop. My server is going to count on this system, please if you have a solution please email me at [email protected] .

    groups:
    Default:
    default: true
    info:
    prefix:
    suffix:
    build: false
    inheritance:
    permissions:
    - 'general.spawn'
    - 'iConomy.payment'
    - 'iConomy.list'
    - 'iConomy.rank'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
    Moderator:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    - Default
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
    Admin:
    default: false
    info:
    prefix:
    suffix:
    build: true
    inheritance:
    - Moderator
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
    ##
    # kr3m1in has control over all commands.
    ##
    users:
    kr3m1in:
    group: Admin
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
     
  13. Offline

    FXStrato

    Getting the error of You do not have Permission to create a shop! or something like that; even though I am admin and op.

    EDIT: Using the iConomy3.zip file instead of NEwEverything.zip Works now.
     
  14. Offline

    shane3x

    Does this have support for iConomy 4.0? Also I'm not sure how the buy chests are meant the work. I understand how sell chests work. Say I put Torches inside a chest then type:

    shane3x
    1
    1

    which will automatically generate the item name on the bottom and when people right click it they will receive 1 torch for $1 (although when I do it it says I can't buy from my own shop which I get) but when I try the following to buy items from people:

    buy
    1
    1
    Stone (or using the item ID of 1)

    nothing happens when I right click the sign (from what I understand the sign reads: "I am buying 1 stone for $1).
     
  15. Offline

    bogboom

    Error with Iconomy 4

    Code:
    [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:116)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.java:227)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:510)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            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:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
     
  16. Offline

    Meteo

    Getting really tried of this annoying ass error....
    Code:
    2011-02-26 23:44:58 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyC
    hestShop
    java.lang.NoSuchMethodError: com.nijikokun.bukkit.iConomy.iConomy.getBank()Lcom/
    nijikokun/bukkit/iConomy/Bank;
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:116)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:232)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    All ready did many possible solutions, and still the problem exists. I updated basically everything as well....
     
  17. Offline

    DanDaMan

    Using cookies for now will allow this to run until updated for iConomy 4.0.. I am using with no issues for the last 2 days on 432 and now 440... Hope that helps some of you in the meantime...
     
  18. Offline

    Kr3m1in

    Do you think you can give me your permissions file? I have tried everything and it still doesn't work.
     
  19. It throws a block_right_clicked error AGAIN... Grrr.. I'll try on a craftbukkit only server and see if it still pulls a error... I'll look at the source again...

    EDIT: still pulls an error
     
  20. Offline

    soloman981

    will you rewrite it to work with iconomy 4?
     
  21. Offline

    Acrobot

    Yes, I'm writing ATM.
    BTW, they broke iConomy4 with lastest craftbukkit build.
     
  22. Offline

    Sooks

    You have not enough items to sell! That is what is says when I try and use the Buy sign and clearly I have enough... Very frustrating
     
  23. Offline

    soloman981

    yes i know that but im using 443
     
  24. Offline

    Acrobot

    Sooks - would you mind posting your inventory screenshot/sign screenshot/config.yml of my plugin?
     
  25. Offline

    subenji

    Thanks for the iConomy 4.0 support, this plugin is great and just what our shop owners need!

    Just a note though, we couldn't allow "buy" shops to non-admins. I know it's a "test" feature so this is normal, but a heads up:
    Someone could make a chest with this info:
    buy
    1
    1000000
    DIRT
    and they can sell to their own shop and make ridiculous money in no time.

    I was under the impression the idea was that the money came from the owning players' iConomy account. :)
     
  26. Offline

    Adamadz

    I have the new version for iConomy 4 (is it the iConomyChestShop.zip file?)
    And the new iConomy but still i get this
    "severe could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop"
    Is this a problem as im not sure what do it happens when i right click a sign.
     
  27. Offline

    Acrobot

    @subenji - Yes, yes, I know about it :p
    Thank you for your support, I will change the plugin to toggle buy/sell in the chat, but Bukkit devs are doing something to PLAYER_COMMAND, so I don't know if they changed it or something :p
    http://www.youtube.com/watch?v=wC1yhjIEpYY
    This worked before the updates, now it doesn't :/

    @Adamadz - Could you post your error, your config.yml and server log?
     
  28. Offline

    Puremin0rez

    I get the BLOCK_RIGHTCLICKED problem with v0.73 w/ iConomy 3 when flatfile isn't being used. I assume this is the same problem with iConomy 4 since it doesn't use flatfile by default anymore?

    CB 447
     
  29. Offline

    FXStrato

    Are you using permissions 2.1 or 2.4?
     
  30. Offline

    Adellus

    Code:
    2011-02-27 20:14:12 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyC
    hestShop
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/iConomy/iConomy
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:223)
            at org.bukkit.plugin.java.JavaPluginLoader$21.execute(JavaPluginLoader.j
    ava:232)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.iConomy.iConom
    y
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 12 more
    Getting this when someone right click a sell shop sign. CB 440 and iconomy 4
     
  31. Offline

    Torteth

    This mod is fantastic.

    I'm using this with iConomy 2.2, plus lockette on CB440 and it's flawless.

    I'll look at upgrading to iConomy 4 and the newer version of this later on this week, but all my players are having a blast setting up their shops.
     

Share This Page