[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


    I still got this error :

    12.02.2012 21:50:15 [SEVERE] Error occurred while enabling ChestShop v3.34 (Is it up to date?): com/nijiko/coelho/iConomy/iConomy
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at com.nijikokun.register.payment.forChestShop.methods.iCo4.isCompatible(iCo4.java:91)
        at com.nijikokun.register.payment.forChestShop.Methods.createMethod(Methods.java:56)
        at com.nijikokun.register.payment.forChestShop.Methods.load(Methods.java:47)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.loadRegister(pluginEnable.java:48)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:43)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:56)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
        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:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 16 more
  3. Offline


    Could you re-download the plugin?
    It seems like it didn't download properly or your iConomy is corrupted.
  4. Offline


    Problem solved !
  5. Offline


  6. Offline


    Is there a way I can use the signs for purchase, just like they are but not have a chest? I could show the block of what they are buying then just have a sign above it.
  7. Offline


    Well, Admin Shops don't require chests - they are esentially chestless shops.
    They have unlimited stock.

    To make them, you must have ChestShop.admin permission (defaults to OP)
    Then make a sign, but instead of your name, put "Admin Shop" (or w/e is in config)
  8. Offline


    Acrobot any chance to change Sulphur to Gunpowder?
  9. Offline


    I made another suggestion/ticket where instead of 0 for buy or sell price meaning u cant buy or sell i would want 0 to mean free if it is specified
  10. Offline


    if they dont have the perm to snoop in em i think .mod perm they shouldnt be able to break it anyway
  11. Offline


    Hello Acrobot! Latest Chestshop with Towny 78.0 - vault 1.2.8 / icononmy6 - CB R3 - 1846

    [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerInteractEvent to ChestShop


    00:27:26 [SEVERE] Could not pass event org.bukkit.event.block.SignChangeEvent to
            at com.Acrobot.ChestShop.Utils.uTowny.isInsideShopPlot(uTowny.java:16)
            at com.Acrobot.ChestShop.Utils.uTowny.canBuild(uTowny.java:29)
            at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.ja
            at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.j
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1094)
            at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    The above error happens when try to build a chest shop outside a shop plot.

    with config file use towny shop plots: true - I am able to build shops outside of towny shop plots
  12. Offline


  13. Offline



    Eevery two or three seconds or so I get this message in my console log:
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    13.02 16:16:46 [Server] INFO    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:283)
    13.02 16:16:46 [Server] INFO    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    13.02 16:16:46 [Server] INFO    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    13.02 16:16:46 [Server] INFO    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    13.02 16:16:46 [Server] INFO    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    13.02 16:16:46 [Server] INFO    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:43)
    13.02 16:16:46 [Server] INFO    at com.Acrobot.ChestShop.Config.Config.getBoolean(Config.java:17)
    13.02 16:16:46 [Server] INFO java.lang.NullPointerException
    13.02 16:16:46 [Server] SEVERE Could not pass event org.bukkit.event.player.PlayerInteractEvent to ChestShop
    ChestShop doesn't work.. I made a sign with the required info, after that ChestShop convert it to something with my nickname on it (so ChestShop is loaded an working?), but when I punch it, it doesn't work.. either with a left- or a right-mouseclick.

    I'm running the latest iConomy and the latest ChestShop. I'm using Craftbukkit 1.1 R4.

    Does somebody know what I'm doing wrong?

    Oh, and for the record: I'm also using Essentials, LWC and WorldGuard (besides some other plugins which don't affect the working of iConomy or ChestShop, I assume).
  14. Offline


    Acrobot Sulphur has been renamed by Gunpowder long time ago :/
  15. Offline


    Question: Can you sell used items to a shop? If so, where in the config do i edit to add that support? I remember way back you could. but now I cannot. Please reply with ghost0001.
  16. Offline


  17. Offline


  18. Offline


    Hm, I redownloaded the .jar, uploaded it again (I tried it many times before) and it works as a charm. :/ Weird..
    The plugin is nice, thanks for making it!

    I've only one question left. I installed OddItem and created a shop. Everything is OK and the sign is edited by ChestShop. So far so good, but when I try to buy something, your plugin says: "[Shop] The item is not recognised!".
    What am I doing wrong this time?

    Thanks for your reply.

    edit; seems to be case-sensitive; when I write 'foobar', your plugin converts it to 'Foobar' on the sign, while only 'foobar' is in the OddItem.yml.
  19. Offline


    Oh right :/
    Sorry - well, the fix is to make names like they appear on sign or to ask OddItem's author to make an "ignore_caps" config option.

    No problem :)
  20. Offline


    #If true, ALL things (including food, etc.) will stack up to 64
    Unable to stack unstackables. What would be causing this setting not to work? Trying to stack potions within a chest shop.
  21. Offline


    did u use id 265
  22. Offline


    Are you sure that the potions are the same type potions?
  23. Offline


    Yes, being owner/admin i pull potions form the creative window and try placing them in a chest thats selling said item number and they wont stack, even tried on weapons with no luck in stacking.
  24. Offline


  25. Offline


    First, thank you for your great work!!!

    A problem that we have on the server is that many items of the admin shop are just too cheap or expensive. Is there any possibility of having adaptive prices?
    Adapting them manually is just sooo much work!!
    At best in the sense that prices rise when the item is bought from the shop very often, and that prices decrease once an item is not bought that often... anyone know something like that? I'm also ok with using more plugins for that.
    Similar ideas welcome!

    Best, i

    PS: What I *could* do is use the log to file feature, then parse the file for the transactions and adapt the prices accordingly (many buys: price too low.. and so on)
  26. Offline


    Yep, adaptive prices will come eventually, but I don't think I'll manage to squeeze it in CS3. I must force myself to code CS4, where it will be very easy.
  27. Offline


    that IS cool!
  28. Offline


    When you put this plugin in the version 1.1-R4?
  29. Offline


  30. Offline


  31. Offline


    Well, that's the almost-rc build :p Just try if it works, if it doesn't, I'll try something.

Share This Page