[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


    No problem, I'm preparing 3.50 to be bug-proof :)
  3. Offline


    Im using chestshop a long time, then I stopped with minecraft, and now im playing again..
    and I tested chestshop(I updated it) and when I create a chestshop :
    1) placing chest (server says: Created a Private Sign successfully)
    2) placing a sign( server says : Created a Private Sign successfully) on sign:first line:nothing
    second line:1
    third line: 1
    fourth line: stone
    3)then server says : [shop] Shop succesfully created!
    4) want to buy a stone and server says : Notice: That Private Sign is locked by you.
    5) logged in with another account and server says: The sign is locked with a magical spell
    I am using IConomy,Bpermissions,LWC,Chestshop..

    Can someone help me pls? Thanks in advance! ps: Im server owner
  4. Offline


    ok I tested something and it was because it was in creative mode :s.. :s
  5. I keep getting this Error, and i cant find out what's wrong ????
    Anybody knows ?

    [SEVERE] Could not pass event InventoryOpenEvent to ChestShop v3.50t0026
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:494)
    at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:446)
    at net.minecraft.server.BlockChest.interact(SourceFile:295)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:375)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:650)
    at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94)
    at net.minecraft.server.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:111)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:578)
    at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:495)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
    Caused by: java.lang.ClassCastException: org.bukkit.block.DoubleChest cannot be cast to org.bukkit.block.BlockState
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInventory.onInventoryOpen(PlayerInventory.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
    ... 19 more
  6. Offline


    Which CraftBukkit version are you using?

  7. craftbukkit-1.4.2-R0.2
  8. Offline


    im hosting a tekkit server with chestshop and odditem and ive wrote in the energy condenser in odditem to be encondenser and when i put it in the shop like this
    Admin Shop
    B 1
    and i click enter the encondenser changes to
    Admin Shop
    B 1
    is there any way to change this?
  9. Offline


    I see, it's a bug.
    Just to make sure.
    Are you sure that the item you added in the config is EXACTLY the same (with letter case taken into consideration) as the one on the sign?

    Also, which CS version are you running?
  10. Offline


    Is there any way to implement sell of what you hold on your main hand? Seen on a few servers but didn't seem to work.
  11. Offline


    Yes the name is EXACTLY the same and the cs[if its chestshop] version is R: v3.42 for CB 1.2.5-R1.2 May 10, 2012
  12. Offline


    Ha, you see - this might be the problem. 3.42 is WAY outdated. Try 3.50 TEST VERSION or at least 3.46.

    What do you mean?
    When you left-click the sign, you sell what you have in your inventory.
  13. Offline


    Hi i get this error when using your plugin.. Happens on the latest RB build and the dev build of your plugin.

    Can you tell me how to fix this please?


  14. Offline


    "craftconomy3" is your problem.
  15. Offline


    @ Acrobat - If I install the test version 0026 - will all my current admin shops / player shops remain the same? will anything break? I would be upgrading from Chestshop 3.4.6 - do I have to do anything special or differently or is it as simple as dropping in the new Jar?

    Edit: Also, does the latest test build support bukkit 1.4.5 ?
  16. Offline


    No, nothing should break. It's simply dropping the .jar in place of the old one.

    Also - I'm not sure, because I haven't tested it on 1.4.5, but I believe it's going to work.
  17. Offline


    Anyone got a good method of switching from Showcase to Chestshop? :confused:

    Never mind, I just went through 25+ shops of players and stuck everything into a chest.
    I didn't want to wait longer with a half broken SCS plugin.

    They can hate me for having them redo the shops.
  18. Offline


    Sorry for the inconvenience! I am trying to code ChestShop to support SQLite, so you'll be able to, for example, import Showcases as ChestShops :)
    LiLChris likes this.
  19. Offline


    It's cool, though its nice that your adding that feature. :D
    Running it now with 1.4.5 (#2478) I will report back if I find any errors/bugs but I don't expect any.
  20. Offline


    Error: ChestShop v3.50t0026


    Occurs when sign attempts to change certain item names. For example, Ink Sack:14 changes to Ink_sack:14, but Ink Sack:1 does not change to Ink_sack:1. It merely returns the aforementioned error.
  21. Offline


    Is this still considered, I know its almost a year old. :p

    I would like to allow Factions to have there own shop but be limited by land/power or some type of system to not abuse it.
    Each land = 1 chestshop
    Every 10 power = 1 chesthop
    Only Officer/Leader can create the shop

    Some thing like that would be nice to have, of course this is no where near important right now.
    A steady build is much preferred. :D

    Getting a few errors already mentioned, but hasn't broke anything.
    When I did add the plugin and i had 5-10 players redoing all there chestshop it spammed a few errors and halted my server for a brief sec.

    Blamed it on Minecraft 1.4 and they were ok with it. Lol
  22. Offline


    Well. Factions will eventually be possible to support with 3.50's ChestShop API, that's why I'm concentrating on it that much.

    Also - spammed errors? Please post them!

    Well, this has been already reported a few times - it's fixed, but I'm introducing a big change in the codebase, so please bear with me - the plugin will eventually be uploaded.
  23. Offline


  24. Offline


    Oh yeah, THOSE...
    Well, sorry, I'm making a huge change in the code of ChestShop - you'll see soon on Github :)
    LiLChris likes this.
  25. Offline


    But 3.46 is for 1.4.0 and im playing on 1.2.5 will it still work and not mess up my stuff?
  26. Offline


    Plyers on my server is able to duplicate items with this plugin .. is there any fix, i don't gave them permission to make chops, but they still can? :s
  27. Offline


    ...could you believe my words? 1.2.5's API is compatible with 1.4.0 API, so even plugin written for 1.4.0 should work on 1.2.5.

    Sorry, my crystal ball broke again. Unfortunately, I have no idea how, why and when it happens.
  28. Offline


    Here is a guide i found on an forum:

    The dupe allows you do dupe an entire inventory of stuff at a time. The method is as follows.

    1. Place a chest down and put whatever item you want to dupe in the chest
    2. Create a shop for an item that IS NOT in the chest
    3. TPA to a buddy, of if the server has delayed teleports just go to spawn
    4. Before you teleport, left click the sign to open the chest
    5. Take the item out of the "chest" when at the place you teleported to
    6. Go back to the chest and find the items are both there and in your inventory.
  29. Offline


    This is a Bukkit bug - if your inventory isn't closed on teleport, this is a serious bug.
  30. Offline


    Any idea on how to fix it maybe? :/
  31. Offline


    I'm currently investigating it and will report it on leaky.bukkit.org soon

Share This Page