[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


  3. Offline


    First off, great plugin.
    Just a small sugguestion. I use Iconomy and BosEconomy. Would it be possible to add in the config.yml an option to force chestshop to use Iconomy instead of auto choosing BosEconomy as its first choice. I would like to use Iconomy for chestshop and use BosEonomy for other thing.

    Running 815 with Iconomy = Working Good (Details below)

    2011-05-29 10:26:18 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-762-g69e11d1-b815jnks (MC: 1.6.4)

    2011-05-29 10:26:21 [INFO] [iConomyChestShop] version 2.74 initialized!
    2011-05-29 10:26:21 [INFO] [iConomyChestShop] Permissions version 2.7.3 loaded.
    2011-05-29 10:26:21 [INFO] [iConomyChestShop] LWC version 2.31 loaded.
    2011-05-29 10:26:21 [INFO] [iConomyChestShop] Lockette version 1.3.6 loaded.

    2011-05-29 10:26:22 [INFO] [iConomy] Logging is currently disabled.
    2011-05-29 10:26:22 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-05-29 10:26:22 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-05-29 10:26:22 [INFO] [MultiVerse] Found iConomy, enabling payments.
    2011-05-29 10:26:22 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    2011-05-29 10:26:22 [INFO] [iConomy] hooked into Permissions.
  4. Offline


    Yes, I'll add the posibility in ChestShop 3.0
  5. Offline


    Ok I'm curious - Im trying to create an admin shop and the instructions seemed vague on setting up a public shop like this - I'm typing "Admin Shop" as the first name (And tried ("AdminShop" as well), 12 in the second line, 1:1 in the third line, and 4 in the last (for cobblestone) - it says it makes the shop successfully, but the sign is blank. Am I missing something?
  6. Offline


    Turn off LWC sign protection. It's a bug with LWC, AFAIK
  7. Offline

    Johnny Lunder

    No one gets deducted their iConomy-money or use them upon buying / selling.
    Using CB815, iConomy 5.0.1, iConomyChestShop 2.73
    Error-MSG in spoiler.

    Show Spoiler
    2011-05-29 20:30:49 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.IllegalArgumentException: Listener already listening
    at net.minecraft.server.Container.a(SourceFile:28)
    at net.minecraft.server.EntityPlayer.syncInventory(EntityPlayer.java:70)
    at org.bukkit.craftbukkit.entity.CraftPlayer.updateInventory(CraftPlayer.java:217)
    at com.Acrobot.iConomyChestShop.Shop.sell(Shop.java:118)
    at com.Acrobot.iConomyChestShop.ShopManager.sell(ShopManager.java:73)
    at com.Acrobot.iConomyChestShop.ShopManager.transaction(ShopManager.java:32)
    at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:87)
    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.dig(ItemInWorldManager.java:64)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:215)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:396)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  8. Offline


  9. Offline


    Hey acro, great plugin, mind making something similar for buttons? so that theres a sign above a button that when pressed deducts an amount from that players account, or else the button doesn't get pushed?
  10. Offline

    Johnny Lunder

    Gawd I'm stupid today, sorry ;)
  11. Offline


    Hey. I was wondering what im doing wrong here. I Just got LWC & chest shop on my server. but as soon as i reloaded server after a few min or so it crashed couple of time.. checked the logs and found!

    2011-05-28 17:35:55 [SEVERE] java.lang.UnsatisfiedLinkError: /tmp/sqlite-3.7.2-libsqlitejdbc.so: /tmp/sqlite-3.7.2-libsqlitejdbc.so: failed to map segment from shared object: Operation not permitted

    Once i removed Chestshop's everything is working fine. I'm new to plugin's so problly something Newby on my part. but could someone give me a hand?
  12. Offline


    Seems like EBean is failing, try turning off "useDB"
  13. Offline


    So is there any chance of the 'limited use' shops / free item chests being in 3.0? Or will those be in a later version (if you add them) :)
  14. Offline


    Alright so i tried makeing use DB false but im still getting the error :( know anything else it might be?
  15. Offline

    John Vasgird

    I don't know why, but the players on my server can buy items, and the seller receives the money, but the money is not deducted from the buyer. Any insight on this?
  16. Offline


    User on the server can buy items. But nothing can sell.
  17. Offline


    @John Vasgird
    Do you have Minecraft 1.6?
    Did you download iCS for MC 1.6?

    Try deleting plugins/iConomyChestShop/iConomyChestShop.db

    If that doesn't work, open iConomyChestShop.jar with WinRAR and in plugin.yml delete the line that says "database: true"

    Anyways, I'm going for 3-day-trip, so cya everyone!
  18. Offline


    Yes, I downloaded for MC 1.6
  19. Offline


    Any errors in console?
    And what do you mean by "can't sell"?
  20. Offline


    Everything works.Only permission Admin. Usual players, by pressing the right buttons, wrote in a chat and console that make a purchase. But when you press the left button, nothing happens.
    P.S. Sorry. I'm from Russia, my English through a translator
  21. Offline


    Hmm, do you have "sneakMode:" set to true?
    And does writing /sell or /chsell and right-clicking the sign work?
  22. Offline


    My config -
    Does writing only buy all.
    "And does writing /sell or /chsell and right-clicking the sign work?" Not understood.
  23. Offline


    Write /sell or /chsell in chat.
    If you have seen confirmation, it's ok.
    Now, right-click the sign.
    Does selling work?
  24. Offline


    hey i really need help,
    i have tried setting up this plugin about 5 times in the past month and everytime i set up a shop it says 'shop owner doesnt want you to buy/sell here' why is that, how do i fix it?
  25. Offline


    Why right-click? It is a not buy, but a selling
  26. Offline


    If you right-click after typing /sell or /chsell, you will sell by right-clicking. To reverse this, type /buy or /chbuy.

    Something is incorrect on the sign - it goes like this (B and S can be on either side of the number):
    B price
    S price
    B price: price S
  27. Offline


    / sell and / buy. Toggle buying andselling. All work. Thank you. But why the administrator right-click buy , left-click sell. Not write in chat /sell or /buy.
  28. Offline


    Explain what is it?
  29. Offline


    Totally unrelated - Minecraft does this when people close minecraft with "X"

    Are you sure that nothing blocks iCS? It's at the Highest priority, but still... OH, ALSO! The players MUSTN'T be sneaking.
  30. Offline


    Meyby this plugin "Spawn".
  31. Offline


Share This Page