[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

    suna950907

    Where in the 'src' folder???????????
     
  3. Offline

    unrivaledneo

    Just a little bug using the sign distance, everything works as far as i know (Im using 5 down, i go into the basement to restock) However just doesnt give me the same messages as if i had the sign directly on top, like Shop created, you cant buy from your own shop. Didnt think it was working at first. Still best plugin for shops yet. (Perfer this over that npc ne anyday)
    --- merged: Feb 22, 2011 12:43 PM ---
    The source? He said just unpack the jar its in there.
     
  4. Offline

    GyD

    I found an exploid with iCCS :
    create a chest, add a sign with:
    L1: Name
    L2: [whatever]
    L3: [whatever]
    L4: [nothing]

    Put something in the chest: L4 is not updated

    Remove the sign
    put a diamond in the chest and add a sign

    L1: Name
    L2: 1
    L3: [big price]
    L4: [nothing]

    The sign return:
    L4: Diamond

    Remove the diamond, put a dirt in the box
    L4 Still: Diamond

    If a user want to buy a diamond, he'll have a dirt. :/
     
  5. Offline

    Acrobot

    Ugh, this is what I said: "the last line will show up what was taken last time as the first item from chest!"
    But I'll change it, I guess.
    Also, I added wget friendly download, but jar-only.
     
  6. Offline

    schemen

    The Sell feature is awesome, but can you add something like a Link to the sellers iConomy account ?

    So it would look like that:

    I want Dirt, so i'll open a shop that someone can sell me his dirt for the price written on the sign.

    or is it already like that ? it could be my fault cuz im testing it on my own right now :(
     
  7. Offline

    Acrobot

    It's not that at the moment :/
    I'll need some time to code this, could you please wait? :3

    Also, there is a new version of plugin, bugfix for the bug Red00 told me about.
     
  8. Offline

    Jeppe

    Code:
    Preparing spawn area: 20%
    Preparing spawn area: 44%
    Preparing spawn area: 77%
    2011-02-22 16:23:04 [INFO] [General] version [1.9] (Yakuza) loaded
    2011-02-22 16:23:04 [INFO] [iChat] version [1.0] (Reborn) loaded
    2011-02-22 16:23:04 [INFO] [iConomy] version [2.2] (Aime) loaded
    22-02-2011 16:23:04 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\iConomyChestShop.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:83)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:43)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.Acrobot.iConomyChestShop.
    iConomyChestShop.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.b
    ukkit.plugin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassL
    oader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:79)
            ... 8 more
    please help
     
  9. Offline

    Acrobot

    You have old CraftBukkit.
    Update it or download iConomyChestShopForOldCraftBukkit.zip
     
  10. Offline

    Jeppe

    How do i update my craftbukkit
     
  11. Offline

    Acrobot

  12. Offline

    Jeppe

    so you recommend i keep the old?
     
  13. Offline

    Acrobot

    I don't know what plugins you are using.
    But my plugin supports CB323 and higher, so if you have lower, update, if you have 323 or higher you can keep it and download the old version.
     
  14. Offline

    timboland

    im getting this error when i place the sign

    Code:
    2011-02-22 17:06:49 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFace.
    at java.lang.Enum.valueOf(Unknown Source)
    at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:458)
    at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:262)
    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:834)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:78)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:325)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:240)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    & this error when i click on it after im done

    Code:
    2011-02-22 17:08:05 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFace.
        at java.lang.Enum.valueOf(Unknown Source)
        at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
        at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:110)
        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:232)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:78)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:325)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:240)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  15. Offline

    GyD

    yes, I know. But i can't use the noID option with this "exploit" and I need it because user don't speak english ^^
     
  16. Offline

    iSushi

    I wish someone could do this more, set up a file that has the settings of the shops (first line with name) in them.
    Might end up making a API plugin for this >w>
     
  17. i like chestshop more, but thats just me... more control...
     
  18. Offline

    aodgizmo

    Small Suggestion, You should make it so you cant sell to your own sign shops. At the moment you can sell stuff to your sign, and then pick it back up from the chest you just sold it to and sell it again for money. It needs to be like the buy setting where you cant buy from your own shop.
     
  19. Offline

    uncovery

    nijikokun jumped ship and gave up all his plugins. What will happen with this here? Will you transfer to a different economy plugin? Maybe the one shipped with essentials?
     
  20. Offline

    soloman981

    Code:
    2011-02-23 19:10:30 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.hasPermissions(iConomyChestShopBlockListener.java:56)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:219)
            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:486)
            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:252)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    any idea whats wrong i got this thing on craftbukkit 424
     
  21. Offline

    Acrobot

    You don't have Permissions/Permissions are outdated.
    I think :/
    I don't have time ATM, sorry everyone.
     
  22. Offline

    Spathizilla

    Same error on cb432 with Permissions 2.1 (and they're set correctly) using iConomy 3.0

     
  23. Offline

    Acrobot

    They broke something, I'll recompile it for the newest CB
    Uh, there is no iConomy 3.0?
    --- merged: Feb 23, 2011 8:10 PM ---
    Compilled for newest CraftBukkit and everything, works for me.
     
  24. Offline

    Daveyo

    how does everything work with no iconomy?
     
  25. Offline

    LucidLethargy

    iConomy 3.0 I believe was released without the OP being updated to reflect it - or so I have heard this morning through that thread.

    So just download it through the same link, and if that's not 3.0 then I would be very curious to know where one would download it from.
     
  26. Offline

    Acrobot

    It doesn't work without iConomy.
    I clicked the iConomy forum thread, there was only 2.something o.0
     
  27. Offline

    PandaVidya

  28. Offline

    Moe041991

  29. Offline

    axebyte

    It seems to be working okay for me..
    I just have one issue.. i can not buy from myself so that is great!
    but i can sell to myself... so if i gave persmissions to others to use this.. they could set up a sign buy dirt for 1000 and sell dirt to themselves and make money.

    whats the chances of a minus money from BUY shop owner of the amount someone sold it, this way the money would go from Shop sign owner to person,and actually be usable. right now this is highly bad for anyone who wants to cheat (and we know thats 90% of the players :D )
     
  30. Offline

    PandaVidya

    so does chest shop work with that fixed version?
     
  31. Offline

    Acrobot

    I've tested iConomy 2.2b and it works with 1.3 for me :)
    Also, everyone saying about selling to your shops - as I said, I will make it toggle to sell/buy things, so everything will work properly, but I've got a lot of schoolwork to do at the moment :/
     

Share This Page