[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

    djdelmar

    I don't have access to server.log unfortunately. Yes I uploaded it straight after I downloaded it. (The BETA, although clanforge has 2.75 and that didn't work either).
    I have edited my post above.
     
  3. Offline

    Acrobot

    @djdelmar
    Hmm, that's really weird. Try putting iConomyChestShop (case sensitive) in plugins line.

    I have no clue what might cause this, could you PM me your server ip?
     
  4. Offline

    djdelmar

    That's what I did.

    I don't think I can PM you as I'm a new member of this site.
     
  5. Offline

    Acrobot

  6. Offline

    Hrnmhmm

    I'm also using Clanforge, so djdelmar and I are having the same issue. Unfortunately we can only install plugins from a populated list they regularly update, and they don't give us root access, so we wouldn't be able to edit the .jar and reinstall.

    djdelmar
    You can download the server log under Files on the ClanForge console.

    Here's mine again (reposting, page 89): http://pastebin.com/8mqibMuU
     
  7. Offline

    Acrobot

    @Hrnmhmm
    Oh yeah, I fixed it right now :)
    Just go to your files - configuration - iConomyChestShop/config.yml and in the last line, change it so it says:
    Code:
    Incorrect_item_amount: "The item amount you specified is invalid!"
    
    They somehow uploaded not-full config file.
     
  8. Offline

    StClaus

    How to sell with iConomy Chest Shop 3?
     
  9. Offline

    Acrobot

    @StClaus
    Left click?
    Or if you have REVERSE_BUTTONS set to true - right click.
     
  10. Offline

    djdelmar

    Thanks for your help Acrobot :)
     
  11. Offline

    Cookieee

    Now sure if you have fixed this or not, but it wont let my players sell to signs? They can buy, but nothing happens when they left click on the sign to sell =/.
     
  12. Offline

    Acrobot

    @Cookieee
    Hmm?
    Why don't you try it and tell me?
     
  13. Offline

    Cookieee

    I have root access, so my account has all the permission nodes.
    Not sure if it is something in permissions, in terms of nodes? I have given players iConomyChestShop.shop.buy and iConomyChestShop.shop.sell. Do they need any more to just buy/sell fro mshops? Becasue I do not want them setting their own up atm.
     
  14. Offline

    Acrobot

    @Cookieee
    Nope, this is everything they must have.
     
  15. Offline

    jacob4507

    Can you make this op only? i have trouble with Permissions.
     
  16. Offline

    Acrobot

    @jacob4507
    It can be used without permissions if they are not there.
     
  17. Offline

    Hrnmhmm

    Wow, that was it? I'll check for that next time a plug-in doesn't work. Thank you!
     
  18. Offline

    jacob4507

    I mean on my Server if people are not op They can make chest and I dont want them to sell things
    can you please make a Op only please.
     
  19. Offline

    Cookieee

    I don't see that the problem can be then? Literally nothing happens when they left click (to sell). I can buy an seell, but I don't know if it because I have root access?
     
  20. Offline

    Acrobot

    @jacob4507
    That's why the Permissions plugin exists.
    If you don't want them to create things, just use Permissions plugin and disallow it.

    @Cookieee
    /version?
    My plugin's version?
    Any errors in console?
    Maybe some plugin conflict?
     
  21. Offline

    Cookieee

    I am using iCCS v2.7.5, absolutely nothing comes up in console or logs =/.
    Is it something I am doing with the signs? I set the up basically like this:
    Admin Shop
    64
    2:1.6
    4

    Didn't use the names of things, can that affect anything?
     
  22. Offline

    Acrobot

    @Cookieee
    Nope, it should work.
    Try it without the dot and tell me if it works.
     
  23. Offline

    Cookieee

    I have used it with and without dots, none of the signs I have set up work at all for normal players selling :<. Does this plugin conflict with citizens?
     
  24. Offline

    Acrobot

    @Cookieee
    Nah, I don't think so.
    Mind providing me with IP?
     
  25. Offline

    Cookieee

    gangwarsmc.com
     
  26. Offline

    xLoGiiKzZo

    i deleted the .jar and redownloaded the new version and then uploaded the new .jar
     
  27. Offline

    CAPSLOCKNINJA

    Okay, I did what you said and that worked, it fixed the plugin not working for a while. However, it just doesn't work anymore now again because now it's saying all of the shops are out of stock. I also don't have any special errors or anything, and nothing about my bukkit version has changed.
     
  28. Offline

    mattekure

    I am trying the 3.0 beta. I get the following error every time I try to buy or sell to a shop.

    Code:
    2011-06-12 01:41:27 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: com.nijikokun.register.payment.methods.iCo5$iCoAccount.<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(playerInteract.java:101)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:306)
    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:166)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
    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)
     
  29. Offline

    Acrobot

    @mattekure
    That seems like either your iConomy 5 is failing, or other plugin is using something called "Register" and it is an older version.
    Mind posting your plugin list?
    Also, be sure that you do not have ChestShop and iConomyChestShop at the same time!

    @CAPSLOCKNINJA
    @xLoGiiKzZo
    Try ChestShop 3.
     
  30. Offline

    Hempa

    U mean like Permission plugin?
    I have Permissions v2.7.4 (Phoenix)
     
  31. Offline

    Acrobot

    @Hempa
    Not permission plugin, permission world file.
     

Share This Page