[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


    The version prior to Chestshop 3 works just fine for me with no issues, it's what I am using right now.

    I will try that LWC idea when my server is quiet. Problem is I have 30 - 50 people on all the time so its hard to get time to do a big operation like removing all plugins.

    I might try it next Sunday morning and see how it goes.
  3. Offline


    Thx, im a little blind :p
  4. Offline


    I have the same problem.
  5. Offline

    dark garlan

    im really confused, its keeps coming up with this on mycolsole and when i break blocks it it keeps on going. somebody please help me.

    07:30:52 [INFO] Preparing start region for level 0 (Seed: -1439861903)
    07:30:53 [INFO] Preparing spawn area: 52%
    07:30:53 [INFO] Preparing start region for level 1 (Seed: 8748564750169826705)
    07:30:54 [INFO] Preparing spawn area: 48%
    07:30:54 [INFO] BukkitContrib 0.1.7 has been initialized
    07:30:54 [SEVERE] Error occurred while enabling ChestShop v3.0 (Is it up to date
    java.lang.NoSuchFieldError: BLOCK_PISTON_EXTEND
    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:56)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    07:30:54 [INFO] [ChestShop] iConomy 5 loaded.
    07:30:54 [SEVERE] Could not pass event PLUGIN_ENABLE to ChestShop
    at com.Acrobot.ChestShop.Listeners.pluginEnable.onPluginEnable(pluginEna
    at org.bukkit.plugin.java.JavaPluginLoader$41.execute(JavaPluginLoader.j
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    07:30:55 [INFO] DefaultCommands 2.5.3 is enabled. Using OP-version.
    07:30:55 [SEVERE] Error occurred while enabling DefaultCommands v2.5.3 (Is it up
    to date?): PLAYER_ITEM
    java.lang.NoSuchFieldError: PLAYER_ITEM
    at com.vildaberper.bukkit.DefaultCommands.DefaultCommands.onEnable(Defau
  6. Offline


    Would I be able to use GroupManager for this. Because whenever I write in the permissions and reload the server the permissions just simply disappear.
  7. Offline


    What version of Craftbukkit do you use? I had that "is it up to date?" Error last when I had accidentally put in a lower number of craftbukkit (1000 when I meant to put in 1056) than what the plugin needed (1046+). Check you aren't running it with a bukkit build lower than it recommends? As in, don't run this with 953 instead of 1000.

    also, it makes your post easy to read (or skip over if someone is looking for something) if you use the quotes tags, then change them to spoiler tags instead. Hides the long nonsense so even if we can help you, we can read your message first, and it doesn't get lost in the spam.

    edit: @dark garlan
  8. Offline


    Who's post are you referring to?
  9. Offline


    Y does the signs keep popping off the wall is it the ChestShop.shop.create command does that even work
  10. Offline


    No way, what are your Permissions?

    I believe it's not my plugin, it must be a plugin called "firstSpawn"

    Sneak and destroy the sign?

    On the plugin's page it says it works out-of-the-box, so I guess yes.


    What is your config?

    Yeah, I'll add that soon.

    Not really. If you want to follow the BETA-path, it would be ChestShop beta 12. (but it's not beta anymore :D)

    @dark garlan
    It must be really OLD, and even DefaultCommands fails at startup.
    You can find the latest recommended version at http://ci.bukkit.org/job/dev-CraftB...rtifact/target/craftbukkit-0.0.1-SNAPSHOT.jar

    And in GroupManager's tutorial you can read that you shouldn't edit Permissions while the server is running =)

    Hmm... I usually just do Ctrl+F :)
    It is hard to quote/use spoilers, because I sometimes use the forums at my phone, so it is rather hard :)

    It's not a command. It's a permission.
  11. Offline


    Yeah. I've got all the permissions.
  12. Offline


  13. Offline


    All my other admins and members can create shops except me, and I am the owner! When I create the sign above the chest it simply does nothing.
  14. Offline


    Well ChestShop.shop.create: true is not working since i am using bukkitpermissions everyone can buy and sell
  15. Offline


  16. Offline

    dark garlan

    its working lol, thank you. still i didn't think it was that outdated :eek:
  17. Offline


    Here my permissions groups:
    permissions.build: true
    minfo.prefix.member: true
    lwc.protect: true
    towny.wild.switch: true
    towny.town.resident: true
    towny.top: true
    commandbook.spawn: true
    commandbook.call: true
    commandbook.msg: true
    commandbook.whereami: true
    commandbook.who: true
    lottery.buy: true
    myhome.home.basic.home: true
    myhome.home.basic.set: true
    myhome.home.basic.delete: true
    ChestShop.shop.*: true
    BOSEconomy.common.wallet: true
    BOSEconomy.common.pay: true
    BOSEconomy.common.stats: true
    BOSEconomy.common.top5: true
    BOSEconomy.common.help: true
    iConomyChestShop.shop.create: true
    chestshop.shop.create: true
  18. Offline


    Seems ok?
    Actually, can you just delete all the ChestShop permission nodes? It should default to default group and OP as Admin.

    Wait, what?
    Do you put your nickname on the sign?
    If so, stop doing it =)
  19. Offline


    So..if I delete the permissions nodes, it should work for all those groups?
  20. Offline


    I don't know, it should.
    It lets all users create shops/buy/sell, and allows OPs to do everything. You can add ChestShop.* node for admins :)
  21. Offline


    Just tried it. Users still can't use it. Want to check my LWC and ChestShop config?
  22. Offline


    My Default group has permission node : ChestShop.shop.*, but they still cant buy from any shops. They get- you cant buy from this shop. What i wrote on the sign is fine, i think, 1st line mi nickname,2nd 1,3rd B 1, 4th DIAMOND. What can be wrong?
  23. Offline


    I just did not notice any changes on git :p
  24. Offline


    It's posible that create a chestshop cost a price of iconomy for example?
  25. Offline


    i have a problem all my chestshop commands etc are working but when i create a admin shop and put my name in the config file to assigned my account to the admin shop and reload anything, when people buy in the admin shop it does not go into my account. Can you tell me how to fix it please and i am using icomony

    edit - money goes into account buy does no display when someone buys
  26. Offline


    when did the permission commands change?
  27. Offline


    My config for chestshop 3:
    Show Spoiler

    #Preferred economy plugin (iConomy, BOSEconomy, Essentials). If you do not want to specify this, leave it blank.
    #If true, people will buy with left-click and sell with right-click.
    #Economy account's name you want Admin Shops to be assigned to
    ADMIN_SHOP_NAME: "AdminShop"
    #First line of your admin shop should look like this
    #Amount of money player must pay to create a shop
    LOG_TO_FILE: false
    #If true, plugin will log transactions in its own file
    LOG_TO_CONSOLE: true
    #Do you want ChestShop's messages to show up in console?
    LOG_TO_DATABASE: false
    #If true, plugin will log transactions in EBean database
    #If true, plugin will generate shop statistics webpage.
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    #Where should your generated website be saved?
    #How long should transaction information be stored?
    #How often should the website be generated?
    #Do you want to use built-in protection against chest destruction?
    #Do you want to protect shop chests with LWC?
    #Do you want to protect shop signs with LWC?
    #Do you want to mask shop chests as other blocks? HIGHLY EXPERIMENTAL, CAN LAG!
    #Do you want to show "Out of stock" messages?
    #Do you want to show "You bought/sold... " messages?
    #Do you want to show "Somebody bought/sold... " messages?
  28. Offline


    huuuh every time i place a sign it says you cant create that type of shop ???? its really confusing .. normally it says shop successfully created :( help please anyone
  29. Offline


    I dont understand the website thing. Could someone explain what it is and how to use it?
  30. Offline


    i cant do admin shops anymore it says "shop owner dont want you to sell here" why is that? default players can still make there shops it have worked for so long as i can remember somthing happend :/
  31. Offline


    im just annoyed at the fact that i cant make chest shops altogether :(

Share This Page