[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

    Superch00b

    It doesn't work for me :( when somebody tries to buy it says "shop owner doesn't want you to buy here!" Please help :O
     
  3. Offline

    Acrobot

  4. Offline

    Gawdbot

    hey, when i attempt to load plugin - I get "23:30:01 [SEVERE] Could not load 'plugins\iConomyChestShop.jar' in folder 'plugins':" with just a crap tonne of error after it.

    All other plugins load fine.

    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    [INFO] [iConomy] v5.01 (Eruanna) loaded.
    [INFO] LWC At version: v2.31

    Any ideas? Cheers!
     
  5. Offline

    Acrobot

    @Gawdbot
    Eh, that "crap tonne of error" is what I was asking for, paste it on pastebin.com, but I bet it is because your server path has special characters in it. Move your server for example to C:/Server
     
    Gawdbot likes this.
  6. Offline

    Gielfransen

    is there anyway i can stop people from letting into the chests? They can just open them and pick stuff out of it.
    Do i need anymore plugins to stop this?
     
  7. Offline

    Acrobot

    @Gielfransen
    Either use LWC, Lockette or change "protection" in config.yml to true.
     
  8. Offline

    Gielfransen

    Also whenever i try to buy something at someones chest it says The owners doesnt want you to sell at this chest. Or something alike. Even when i'm trying to buy.
     
  9. Offline

    Gielfransen

    Thanks will try that.
    Edit : I looked and it was already on true.
     
  10. Offline

    Acrobot

    @Gielfransen
    Hmm, weird. Just install LWC, in that case.

    And for the first issue - your 3rd line is incorrect (on the sign)
     
  11. Offline

    Gielfransen

    The third line says B5:0S
    Also will install LWC.
    Could it be that my mouse buttons are fucked up? because if i right click or left click it both says Owner doesn't sell. Also other players on my server dont have these problems.
     
  12. Offline

    Gawdbot

    Moving server from Desktop folder to C:\Server worked a treat. Thanks a bunch :)
     
  13. Offline

    Bluecola

    How can i sell/buy an item like Lapis Lazuli? /iteminfo = 351:4 INK_SACK. When i set line 4 to 351:4, nothing happens.
     
  14. Offline

    Acrobot

    @Bluecola
    Yeah, I know that nothing happens, but it works!
     
  15. Offline

    Gielfransen

    Is there anyway i can configure my mouse buttons? it apears that both are set to sell.
     
  16. Offline

    Acrobot

    @Gielfransen
    No, but you just can't do that, UNLESS you typed /sell or something like that. If so, just type /buy.
     
  17. Offline

    neddoom


    That would be great!

    Would be such a nifty feature to be able to use.
     
  18. Offline

    Cidun

    I have the latest version of bukkit and iconomychestshop.
    When I set up shops, players can buy from my adminshops normally, but my players cant sell items to them.
    I have sneakmode enabled, and the permissions are set correctly for
    iConomyChestShop.shop.sell

    I can't figure out the problem.
    Please help.
     
  19. Offline

    Acrobot

    @Cidun
    Did you try re-downloading the ChestShop?
    If so, do you get any errors in console?
    What do you mean by "can't sell"?
     
  20. Offline

    EraSus92

    First of all Acrobot:
    This is an amazing Plugin!

    But i got one problem and i hope you can help me :/

    I installed your plugin and there where no problems with LWC to make "NPC" Shops and destroy/modify them.
    Now i installed the Jobs Plugin for iConomy and i can't destroy the old Shops of the NPC. It always says "Don't steal" although i am admin of the server.
    Other LWC protected chest are no problem, i can open them etc.

    I hope that you can help very fast because my server is full and everyone wants to buy at the store because they make money now :D


    Greetz EraSus92
     
  21. Offline

    Acrobot

    @EraSus92
    Hmm, it IS weird...
    My plugin only checks if player is admin

    Code:
    boolean admin = PermissionManager.hasPermissions(p, "iConomyChestShop.admin");
    
    Please post your Permissions file on pastebin.com
     
  22. Offline

    EraSus92

  23. Offline

    Acrobot

  24. Offline

    EraSus92

    I don't have a permission player part ^^ It works fine until now without that lol ^^
    I will try it and post my feedback in the next 5 minutes :) Thank you!

    edit: Is Line 69 correct?^^ In your pastebin Link
     
  25. Offline

    Acrobot

    @EraSus92

    Oh, honestly, I didn't test it.
    I guess not, just delete the line 69.

    Also, players part:

    http://pastebin.com/EMJRJ3AE

    This should work, change yourAdminName to your admin name (obviously : P)
     
  26. Offline

    EraSus92

    It works!
    Wow you are so amazing ^^
    Thank you very much Acrobot!
     
  27. Offline

    false_chicken

    For some reason Bonemeal and Lapris Lazuli have the same name. INK_SACK. I can see they have different IDs but the name is the same. Why is that?
     
  28. Offline

    DrBowe

    I have a question:
    Is it possible to limit the items allowed from a 'server' chest, per player?
    For example, I want some secret 'free goodies' spread throughout my map. I want them to simply find the sign, and then be able to click it to recieve ONE of said item, instead of being able to rapidly click getting TONS of them.

    If there is a way to do this, please help me out.
    If there isn't, I highly recommend this as a feature request :)
    Everybody likes secret easter eggs and goodies, but nobody likes ones that can be abused.
     
  29. Offline

    Felonu

    Both, bonemeal and Lapis Lazuli are block id 351 or dyes the difference between them and all the other dyes are the damage value (15 for bonemeal or 4 for Lapis Lazuli)

    on a sign you should either use
    351:15
    or
    351:4
    as the fourth line to use these items
    you can get more info at the data value page on the minecraft wiki here
     
  30. Offline

    Acrobot

    @DrBoweNur
    Nope, not yet.

    It will go to TODO, I guess...

    @Felonu
    Thanks for help :)
     
  31. Offline

    Cirtapk

    When I create an adminshop how come I can buy multiple items from it, but can't sell multiple items back?
    Is this how its supposed to work?
     

Share This Page