[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

    Dazzel

    Possible Feature:
    Link the AdminShop with an chest. So you can reward people for farming items for the server. So you can for example build an wall, a church etc. for your town

    Another Feature:
    Calculate the prizes based on demand. This would work best with my first idea ^^
     
  3. Offline

    Syluxlenny

    Found a bug:

    Bukkit console version 860 RB

    Permissions 3.1

    Config and permissions file in here

    Only message on console was "Seller does not have enough money" for an Admin shop.

    Selling diamonds to an admin shop
     
  4. Offline

    Dazzel

    Not a bug ;) You have not set an Adminaccount (serverAccountName: ""). Or is this optional? :D
     
  5. Offline

    Syluxlenny

    on the Sign it is:

    B: 250 : S: 170

    and all other signs work so no Problem, we are only using Admin shops atm
     
  6. Offline

    Dazzel

    No no. In the config. You must set an serverAccountName....
     
  7. Offline

    Syluxlenny

    Yeah I see your point, but if the rest of the signs work, why should this then be a Problem of an for all signs usable Parameter?

    And seems to be optional
     
  8. Offline

    Dazzel

    Ahh now i get it :D Puhh.. dont know ^^
     
  9. Offline

    Tealk

    ty
     
  10. Offline

    Miss_Lion_Heart

    I'm also having the same problem, it says that the plugin is there, but when using /pl it doesn't show up.
    Nothing happens when making the sign, so it's obvious the plugin isn't working in the server.
    If there is any idea as to why it's doing this, that would be nice. I'm stumped.
     
  11. Offline

    Acrobot

  12. Offline

    Hempa

    thanks for the link :D noticed one little space xD now it works!
     
  13. Offline

    dfdgsdfg

    CB 860
    CS 3.0 beta 2
    iConomy 5.0.1

    with money used plugin
    ecoCreature, HeavenActivity (just two)

    iCS 2.75 works fine with same things.


    :'(:'(:'(

     
  14. Offline

    Acrobot

    @dfdgsdfg
    Some plugin overrides my plugin :/
    Can you list all the plugins that use money?
     
  15. Offline

    Miss_Lion_Heart

    Thank you for the help~!
    It's working fine now :)
     
  16. Offline

    Acrobot

    @dfdgsdfg
    It's actually ecoCreature :/
    In the next version I'll make this error-proof, I promise!
     
  17. Offline

    dfdgsdfg

    @Acrobot
    Thank you so much!!!
    Everybody loves your plugin in my server.
    :):):):):):):):):):):):):)
     
  18. Offline

    Syluxlenny

  19. Offline

    PedroN041

    THANKS! Found the error! LAST LINE IT SAYS: ""The item amount you specified i you have to complete this phrase to "The item amount you specified is invalid!"
     
  20. Offline

    Cookieee

    Still doesn't work :<

    I deleted the databse: true at the top of plugin.yml in the jar file, and set useDB to false in the config file, but it still does not let people sell items to the signs. Right click (buy from sign) works fine, but nothing happens to them if they left click, and nothing is showing up in console or logs at all now.

    I really don't want to be a hopeless case here =/.
     
  21. Offline

    Acrobot

    @Cookieee
    PM me your teamViewer details please.
     
  22. Offline

    Cookieee

    PM Sent (I think, I used start a conversation)
     
  23. Offline

    xWaffleH

    hello does this work with BOSE bc if it does do u have to change the nodes to BOSEconomy.shop.create or do u do the iConomyChestShop.shop.create even if u have BOSE on??? thank you for this sexy plugin
     
  24. Offline

    Acrobot

    @xWaffleH
    Hey :)
    It works with BOSEconomy as well as with iConomy and Essentials Eco.
    The name is from the times when there was no BOSEconomy nor Essentials :)

    The plugin's name is still iConomyChestShop (that will be changed in version 3), so the permission nodes are like:
    iConomyChestShop.shop.create
    Etc.

    And thanks :)
     
  25. Offline

    xWaffleH

    thank you soo much ur the one developer that made sence
     
  26. Offline

    vapid2323

    Great plugin, I wanted to know if it was possible to restrict access to some shops. For instance I would like to setup a shop that buys things at a higher rate for my Donors, but I have not found a good way to restrict access to the other users.

    Any tips?
     
  27. Offline

    Acrobot

    @vapid2323
    Not yet, will be possible with "info" Permissions.
     
  28. Offline

    rmb938

    When ever someone starts buying or selling a lot of things from a shop I get the can't keep up message. I am not to sure if its iConomy(mysql) or your plugin.
     
  29. Offline

    Acrobot

    @rmb938
    Not sure, my plugin was tested and it has 100 ms delay between transactions.
     
  30. Offline

    ShaDooM

    cb 860
    iconomy5
    ics 3.0 beta 2

    this happens when i try to sell/buy
    Code:
    04:06:56 [INFO] [iConomyChestShop] shadoom created shop in world, x = 587, y = 7
    1, z = 18, which first line is shadoom and it buys/sells 1 Sand, and the buy/sel
    l line looks like: "B 10:10 S"
    04:07:17 [INFO] [iConomyChestShop] shadoom created shop in world, x = 588, y = 7
    1, z = 18, which first line is admin shop and it buys/sells 1 Sand, and the buy/
    sell line looks like: "B 10:10 S"
    04:07:19 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.methods.iCo5$iCoAcco
    unt.<init>(Lcom/iConomy/system/Account;)V
            at com.nijikokun.register.payment.methods.iCo5.getAccount(iCo5.java:47)
            at com.Acrobot.ChestShop.Economy.add(Economy.java:17)
            at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:128)
            at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:25
    )
            at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:103)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:166)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:6
    3)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:453)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04:07:19 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.methods.iCo5$iCoAcco
    unt.<init>(Lcom/iConomy/system/Account;)V
            at com.nijikokun.register.payment.methods.iCo5.getAccount(iCo5.java:47)
            at com.Acrobot.iConomyChestShop.EconomyManager.add(EconomyManager.java:1
    8)
            at com.Acrobot.iConomyChestShop.Shop.sell(Shop.java:128)
            at com.Acrobot.iConomyChestShop.ShopManager.sell(ShopManager.java:73)
            at com.Acrobot.iConomyChestShop.ShopManager.transaction(ShopManager.java
    :32)
            at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerI
    nteract(iConomyChestShopPlayerListener.java:87)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:166)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:6
    3)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:453)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04:07:36 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.methods.iCo5$iCoAcco
    unt.<init>(Lcom/iConomy/system/Account;)V
            at com.nijikokun.register.payment.methods.iCo5.getAccount(iCo5.java:47)
            at com.Acrobot.ChestShop.Economy.hasEnough(Economy.java:25)
            at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:46)
            at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:18)
    
            at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:101)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:166)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:212)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:550)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    04:07:36 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.methods.iCo5$iCoAcco
    unt.<init>(Lcom/iConomy/system/Account;)V
            at com.nijikokun.register.payment.methods.iCo5.getAccount(iCo5.java:47)
            at com.Acrobot.iConomyChestShop.EconomyManager.hasEnough(EconomyManager.
    java:25)
            at com.Acrobot.iConomyChestShop.ShopManager.buy(ShopManager.java:57)
            at com.Acrobot.iConomyChestShop.ShopManager.transaction(ShopManager.java
    :43)
            at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerI
    nteract(iConomyChestShopPlayerListener.java:87)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:306)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:166)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:212)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:550)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            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:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    I'm not using ecoCreatures (like above)
    but several other iconomy related plugins

    Blackjack, Showcases, Towny, MonsterHunt, MonsterArena, Simplespleef etc. (dunno if u need all)
     
  31. Offline

    Dmurr

    I'm sorry if you've answered this question before, but is it possible to sell items like the different types of wood and wool?
    I was reading the data charts for these types of items and their ID's are really weird.
    I'm only asking this because I tried to open a store on the server I'm on that sells all three types of wood, but I can only manage to get the original wood to work.
    Thanks in advance.

    Edit: Scratch that, I found the way to fix it by searching the thread.
     

Share This Page