[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

    Cyprias

    @Acrobot
    Will do. May take me awhile, I'll try to reply back tomorrow with my findings.
     
  3. Offline

    PatrickFreed

    I saw you were in the server, sorry I wasn't there. (I've been in bed sick :()
    I'm on right now though
     
  4. Offline

    Acrobot

  5. Offline

    PatrickFreed

  6. Offline

    LlmDl

    Hi Acrobot, me again, another user tried to buy from someone's shop (not an admin shop) and was given a message something like "Cannot, your inventory is full".

    Again, using CB658, I know this isn't built for it and this could be the cause of the problem. Just thought you should know!
     
  7. Offline

    bruterules

    Download link's broken....
     
  8. Offline

    Acrobot

    New version!
    If sneakMode is turned on, you can just left-click the sign and it sells items!
    LWC is now optional!
    Small bugfix!

    @bruterules
    That's because I have just uploaded the newer version!
     
  9. Offline

    PatrickFreed

    Error
    Bukkit is a beautiful thing isn't it :p
     
  10. Offline

    PatrickFreed

    Acro it's all my fault! *I think*
    I forgot to use the new config.
    The plugin works, it just spams the console
    With new config: 100% working thanks!
     
  11. Offline

    RyanTheLeach

    arco, could you modify the first post with this sneak mode stuff?
     
  12. Offline

    PatrickFreed

    One bug: anyone can make admin shops, the node iconomychestshop.admin is not on for anytone, just .create, and people are making admin shops :oops:
     
  13. Offline

    BioRage

    I got a Request.

    Could you make it so people can sell used items to a certain shop?

    I run an RP/Type server, and I want users to be able to sell to the blacksmith, when their items are near broken..

    what do you think?

    Thanks.
     
  14. Offline

    Acrobot

    @PatrickFreed
    Oh, I tested it on your server and it worked, lemme see.

    @RyanTheLeach
    It's there, under "sell to shop"
     
  15. Offline

    Virtlink

    Would it be possible to configure the name "admin shop" for the admin shops, so that it can be translated? Maybe even the ability for an admin shop to use any one name from multiple names (for admin shops in different districts of the world)?

    There are some considerations to my feature request:
    • Whatever names are configured, they should take precedence over any actual player with that name. For example, if I where to put "Store" there, someone named "Store" would not be able to create and own a store, until the configuration file is changed and the admin shop with the name "Store" is removed. Otherwise, you'd introduce weird bugs.
    • A command which can reassign all shopsigns from player A to player B would be very helpful. If I want to solve the problem of the user "Store" not being able to create a store, I'd first have to remove "Store" from the admin shop name list (of course), and then manually rename "Store" on each and every sign in the world to something else. Otherwise, the "Store" user would suddenly own half the shops on the continent :p. It is also useful if someone takes over another player's shops.
    • It would be nice if it supports spaces in the name(s).

    What do you think? Thanks in advance for just considering this. :)

    In addition, I have another question: is it possible to put spaces on the price line of the sign? E.g. "10 : 5", for readability?

    Thanks.
     
  16. Offline

    Flenix

    I can't get this to work, at all.
    I've installed it, when I load the world it says on the server its working fine. I tried to put up a shop, following the guide and making the same one as that guide, and nothing "changed automatically"

    I've tried to use this plugin before, didn't work then so looked for alternatives.. this looks like the best one though, am I just doing something wrong?
     
  17. Offline

    PatrickFreed

    Some helpful things to post are
    Craftbukkit build
    IconomyChestShop Version
    IconomyChestShop Config
    Iconomy Version
    Permissions Config
    use pastebin.com for the configs :p
    Also, @Acrobot Does the 2.11 bugfix fix the admin shop problem?
     
  18. Offline

    Nieksas

    cud u update to 670? because its not working
     
  19. Offline

    Nieksas

    ohh working now btw translate to Lithuanian language:

    Code:
     prefix: '&a[Shop] &f'
        Somebody_sold_items_to_your_shop: '<seller> pardave <amount> <item> uz <cost> i tavo parduotuve!'
        Somebody_bought_items_from_your_shop: '<buyer> nusipirko <amount> <item> uz <cost>!'
        Your_shop_is_out_of_stock: 'tavo <item> parduotuveje beigesi!'
        You_cannot_use_your_own_shop: "Negali naudotis savo parduotuve!"
    
        You_bought_items: 'Tu nusipirkai <amount> <item> is <owner>.'
    
        Your_inventory_is_full: 'Tavo inventorius pilnas!'
        You_have_got_not_enough_money: "Tu neturi pakankamai pinigu!"
        Shop_is_out_of_stock: 'Sioje parduotuveje baigesi daigtai!'
    
        You_have_not_enough_items: 'Neturi pakankamai daigtu parduoti!'
        You_sold_items: "Tu pardavei <amount> <item> uz <cost> i <owner> parduotuve."
        Chest_is_full: 'Si parduotuve jau pilna!'
    
        Seller_has_not_enough_money: "Pardavejas neturi pakankamai pinigu!"
        Seller_has_no_account: "Pardavejas neegzistuoja!"
        No_selling_to_this_shop: "Pardavejas nenori kad parduotum si daigta!"
        No_buying_from_this_shop: "Pardavejas nenori kad pirktum!"
    
        Your_balance: 'Po pinigu pervedimo turi <money>.'
    
        Shop_is_created: 'Tavo parduotuve buvo sekmingai sukurta!'
        Shop_cannot_be_created: "Neturi paruoses chest!"
        Shop_was_LWC_protected: "Tavo parduotuve buvo sekmingai uzrakinta su LWC."
    
        Mode_changed_to_sell: 'Rezimas pakeistas i pardavima!'
        Mode_changed_to_buy: 'Rezimas pakeistas i pirkima!'
    
        You_tried_to_steal: "NEVOK!"
    
        iteminfo: "&aItem ID and names:"
        incorrectID: "Neteisingas ID kodas!"
     
  20. Offline

    Ryole

    I found a huge bug:

    EVERYBODY can create a Shop named Ryole or so.
    Then when he writes:

    Ryole
    1
    B 10:2000 S
    Cobblestone

    He can take all my money with a few Cobblestone!
    Please take a look at it!
     
  21. Offline

    Nieksas

    disable sell function :p
     
  22. Offline

    Nieksas

    oh fuck there is mayor problem u cant disable selling ...
     
  23. Offline

    MacVaultDweller

    Feature request
    "If you want to set up an admin shop - just type in "admin shop" in the first line.
    You can sell and buy to the server, but it won't need item in the chest and it won't ever be full, because items people sell to it are vanishing!"

    Would it be possible to make it so that an admin shop doesn't need a chest only the sign since you never have to fill or empty it?

    if "admin shop"
    no chest required.
     
  24. Offline

    Snookieboy

    Anyone have problems getting this to work on 670? :O
     
  25. Offline

    Cyprias

    I feel like an idiot. I gave the Default group iConomyChestShop.shop.* which included the admin permission. That's why everyone could put any name they wanted on the sign. /sigh
    I removed it and added just the create, buy and sell permissions and it works as expected. Sorry for wasting your time Acrobot.

    edit: my issue was players could put anyone else's name on the sign and steal their money, in case you're wondering what I'm talking about.
     
  26. Offline

    LucidLethargy

    For some reason on build 670 my users are getting the error [permissions] You can't buy from shops!
    Any advice? This is stumping me... my permissions nodes are in place, and this came out of nowhere 0.0 Worked perfectly fine on 617.

    Edit: i see now, you changed "use" to "buy" recently in the permissions - all fixed now :D
     
  27. Offline

    Ryole

    But when someone writes :

    Ryole
    1
    B -100:10 S
    Bread

    And he Buys a Bread, he gets 100Coins from me :O
     
  28. Offline

    solidsnake916

    Im having an issue selling a MOB_SPAWNER, with the use of creaturebox and without it.
     
  29. Offline

    BioRage

    Set Permissions...

    And do B0:10S or vice versa.
     
  30. Offline

    RustyDagger

    Nice Plugin Very easy to set up No big problems my users love the iteminfo command Makes it very simple for them.
    Should have a new video Out soon showing my users how to use the plugin on my server so you could add that to the op then as well if you wanted.

    EDIT

    I take back what I said I should not have to install a second plugin so that this plugin can be used with data values That's inefficient for my server. As it stands this plugin can not Handle Data values and to be honest I bet a lot of people are not using it for that reason I want to uninstall it right now but I need some form of chest shop for my players. What good is a chest shop if it cant handle all the items in the game on its own. its like world edit requiring Lwc (aka not cool and dont make sense.)

    (please note that I know world edit dose NOT require LWC and it was used as an example.)
     
  31. Offline

    IceReaper

    i have set up all permissions and basicaly it works. when creating an admin shop i have a small problem: normal players can buy from it but not sell to it, however admins can. anyone knows this problem?
     

Share This Page