[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

    Alphamaid

    i had set Permissons
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'ChestShop.shop.*'
    So after deOp i can buy and sell anything exclued Gold ingot, Iron ingot and Diamond.
     
  3. Offline

    Acrobot

    @Alphamaid
    Hey :)
    You may have missed my post.
    Go to bukkit.yml, change spawn-radius to 0.
     
  4. Offline

    Massimo1993

    @Acrobot the new version of chest shop (3.2) don't work with odditem
     
  5. Offline

    Acrobot

    @Massimo1993
    Could you tell me which oddItem version are you using?
     
  6. Offline

    flymia

    My fail: You can't create this shop type. WTF?
     
  7. Offline

    Acrobot

    @flymia
    You probably haven't got ChestShop.shop.create permission.
     
  8. Offline

    flymia

    Sure. I have, im a admin!
     
  9. Offline

    Acrobot

    @flymia
    Hmm...
    What's on your sign?
     
  10. Offline

    Cristof

    When a normal user make a chestshop on server log i receive this error:
    My Towny support was disabled on config!
    TOWNY_INTEGRATION: false
    #Do you want to only let people build inside shop plots?
     
  11. Offline

    Acrobot

    @Cristof
    Please re-download the file - I fixed it.
     
  12. Offline

    Cristof

    Work Fine bro!
    thx for your help... and your wonderful plugin!
     
  13. Offline

    Acrobot

  14. Offline

    Alphamaid

    oh, Sorry i missed your post.
    So bukkit.yml changed and test, can buy Gold Ingotw with deOP.
    thank your advise.
     
  15. Offline

    Xehara

    Is there a way you can set up a chest that you can sell anything to? For instance some form of donation box or, or a drop box? I know you'd have to buy everything for the same price but...
     
  16. Offline

    Massimo1993

    0.7.3.1 because the 0.3.4 is breaked
     
  17. Offline

    Acrobot

    @Xehara
    Hmm, I guess not :/
    I guess this is a feature that needs to be added.

    @Massimo1993
    Hmm, it should work fine. What happens if you try to use a name from OddItem on the sign?
     
  18. Offline

    Massimo1993

    the modded version you send me work but the new version don't
     
  19. Offline

    Acrobot

    @Massimo1993
    Works fine for me.
    19:06:48 [INFO] [OddItem] 0.7.3.1 enabled

    On the sign:
    AcrobotPL
    1
    B 1:1 S
    plank
     
  20. Offline

    Massimo1993

    don't work
     
  21. Offline

    Acrobot

    @Massimo1993
    Please try to re-download OddItem, make sure it's 0.7.3.1
     
  22. Offline

    Cristof

    New strange error!

    my bukkit.yml config

    database:
    username: minecraft
    isolation: SERIALIZABLE
    driver: com.mysql.jdbc.Driver
    password: ***
    url: jdbc:mysql://localhost:3306/MineCraft
     
  23. Offline

    Acrobot

    @Cristof
    It seems like EBean failed to save - it's just a temporary problem, if it happens again - delete ChestShop/ChestShop.db
     
  24. Offline

    spunkiie

    @Acrobot

    VERY CRITICAL BUG WITH THE LATEST VERSION

    Haven't tested it with older versions or native ChestShop protection.

    If using LWC protection with ChestShop, any user with shop create permissions could easily open other players chests. The bug is very simple to execute, here's some pics:

    1) This chest isn't mine (but I am a BAD person who want to steal other players stuff)
    [​IMG]


    2) I can't normally open it, because it's protected by LWC.

    3) But, with a little help from ChestShop and a few dirts, the magic is done:
    [​IMG]

    4) Yeap, just place a ChestShop sign and the chest you be opened for you.

    This is a VERY critical BUG, and alot of ppl are abusing it on my server. :(

    BTW: My config.yml

    Hope it helps :)
     
  25. Offline

    Sadikum

    Hey, thanks for this amazing plugin ! I've found an issue :
    If you want a chest which buy all types of log you can't. Putting LOG on the last sign line only allow normal log to be sold (not birch and pine). Same for all block with a data value (and it make vines unsellable to chest).
     
  26. Offline

    Acrobot

    @Sadikum
    Yep. That's more of a feature - you can't sell the wrong type.

    @spunkiie
    Doesn't work for me - I get a "You don't have permissions to access that chest" error.
    Are you sure you didn't give people ChestShop.* permission?
    (It contains both ChestShop.admin and ChestShop.mod permission)
     
  27. Offline

    flymia

    @Acrobot
    The Default letters and words *sorry for bad english* Can you write the letters and words again?
     
  28. Offline

    gbumoon

    love this plugin!!

    We have a shop for just about everything in town but we're probably going to either remove some product from town or make the pricing a bit less competitive because tonight we built a mall with 18 suites for users to sell their own product. I used Regios to region off the suites, then I just change the region owner when a user claims a suite. Fun stuff!!
    http://minecraftgb.wordpress.com/2011/09/24/new-mall-claim-your-suite/

    [​IMG]
     
  29. Offline

    Acrobot

    @gbumoon
    Nice one :)
    Remind me of a mall in my old server :)

    @flymia
    Hmm, I don't exactly understand, but yes, you can change the translation in local.yml file.
     
  30. Offline

    Sadikum

    What I mean is that you should be able to sell every log if the shop has LOG but only normal log if you put LOG:0. But the issue is really with the vine because sometimes in your hand you've 106:2, other time 106:4 (in short words you never have just the itemid 106) so we can't sell vine :/
     
  31. Offline

    Acrobot

    @Sadikum
    Oh right :/
    I really should re-write the plugin (for example, to let things like that happen). Sorry, for now, you'd have to make 4 signs :/ (They can be attached to one chest, though)
     

Share This Page