[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

    Kirbyflys

    Haha, alright, thanks for the help :D
     
  3. Offline

    Cory_

    We're using ChestShop with LWC and I don't know of this is possisble or not...Here's the scenerio.

    I own the "ChestShop" and the sign has my name on it and all the details, I'm within the region set alloted too me as well the chest being private.

    I add another user to the region and allowed them access to chest with /cmodify or adding a password...but the users cannot access the chest as the "ChestShop" takes over and overides those settings.

    Basically, The ideal thing I'm trying to do is hire workers to keep the "Shop" stocked and they cannot access chests, therefore if there is a setting I'm over looking I need to set, please point me in the right direction or if this isn't a feature, please considering adding this as a option. Maybe some sort of command /cs (chestshop) /cs addworker <name> or something - Don't allow them take stuff out.

    Regards,
    Cory
     
  4. Offline

    Zidkon

    I was just thinking, you want them to fill up chests but without accessing em.

    I guess that would be a little difficult since the only way (I know) to fill a chest and check if is empty is by accessing em, and you cannot restrict them to "only put items in, cannot withdraw", sounds like a good idea but is harder to make (I think because I don't know how to check a chest without opening it) than it sounds.
     
  5. Offline

    Cory_

    Well allowing them to access the chests is fine.

    Allow LWC to do the security and allow the ChestShop to the shop, but some kind of a way to allow users to still access the chests, What's happening is ChestShop is overriding the permissions even if "WorldGuard", "A password/access" is set to the chest, the person allowed to it cannot access it regardless of the permissions that are set.
     
  6. Craftbukkit version git-Bukkit-1.8.1-R4-86-g5b64d80-b1558jnks (MC: 1.0.1)
    19:18:13 [INFO] ChestShop's version is: 3.29
    Essentials​
    Permissions 3
    Hi, my problem is, that people can't create a chestshop. Users are given the message: You don't have permission to access this chest.​
    What can I do? :(
    Thank you! freaky​

     
  7. Offline

    _Jonte_

    What item are the buying COIN?
     
  8. Offline

    Freakinstar

    Hi

    I, am using
    Craftbukkit #1501
    iConomy 6.0
    ChestShop 3.29
    and PermissionsEx.

    I gave the permissions ChestShop.shop*
    Also tried
    ChestShop.shop.buy
    ChestShop.shop.sell

    User can create the shops but nobody ca buy or sell from it!

    Any Idea??
    Greetz
     
  9. Offline

    rbos

    Players get "You don't have permission to access this chest." when creating shop chests. I can create them fine. CB1566, CS 3.29. PermissionsEX.

     
  10. Offline

    Kirbyflys

    Aha!!

    I found out why "You do not have access to this chest." Happens whenever you try to make a shop. Apparently, LWC is conflicting with ChestShop. I removed LWC and it started working fine :D
     
  11. Offline

    rbos

    I'd get rid of chestshop long before I got rid of LWC. Hmm. Maybe I can prevent them conflicting somehow.
     
  12. Offline

    Riwolfes

    Hey, I'm not up to date. How do you solve the problem if someone has a too long name for a sign?
    Any fixes over there or still a bug?
     
  13. Offline

    mikeyyy4life

    Its ironingot
     
  14. Offline

    Acrobot

    @VADemon and all other interested people
    Work on potions almost finished :p

    @Riwolfes
    Sure, it is fixed for a long time now. If a player has too long name, his name goes to "longName.storage" - so his long name can be retrieved back :)

    EDIT: Wait. WHAT. I messaged, and like 10 messages show up for me...

    @1born2kill
    @Zidkon
    That's a feature of superperms. To disable that, in PEX:
    add a permission like -ChestShop.shop.create
    in bPerms: ^ChestShop.shop.create

    And for your error - it seems like you either don't run any economy plugin, or you haven't got an account.

    @jeroen1602
    Which version of ChestShop?

    @CosmicVoyager
    Just do /iteminfo, it should tell you what to write :)

    @Chaotchen
    @freakyy85
    @rbos
    @Kirbyflys
    Seems like it's connected to LWC. Try doing /cremove before placing the shop.
    I'll try fixing that now.

    @Cory_
    Yeah, in config, you can disable default protection.

    @Freakinstar
    What do you mean by "can't buy or sell"? Maybe your sign format is wrong?

    It's either:
    B 5
    S 5
    B 5:5 S
     
  15. Offline

    FuRiouSOne

    LWC is conflicting with this new version of chest shop. If you /cremove on the chest you can place the shop sign but if the chest is protected by you, YOU CAN NOT place a shop sign.

    Please fix this. having to revert back to an older version of chest shop is the only fix for now. 3.24 is a working chest shop version that WORKs with LWC.....
     
  16. Offline

    Acrobot

    @FuRiouSOne
    Yep, I know. I just fixed that. I'll finish the work on Enchancments, and I'll send a new version soon.
     
  17. Offline

    Zombiebrine

    So how would i sell potions? They don't fit on signs and theres a lot of combinations to them.
    For example splash potions, potions of different levels ect? Thanks :D
     
  18. Offline

    Acrobot

    @FuRiouSOne
    @Anyone interested

    OK, ChestShop BETA is out there. I don't guarantee much, because I'm going to sleep now. Cya!

    @Zombiebrine
    You can just do /iteminfo
    They just have a damage value :)
     
  19. Offline

    Zombiebrine

    But how do i put that into a sign, order wise
     
  20. Offline

    Acrobot

    @Zombiebrine
    Do /itemid
    It should show you exactly what to write on the sign.
    SomeId:SomeValue
    (Yeah - there is no space between the ID/Value and the colon)
     
  21. Offline

    FuRiouSOne

    Thanks bunches, ill just wait on full release version after you wake up :).
     
  22. Offline

    benthamanowns

    dude love the plugin and how you actually took the time to give people step by step instructions on how to set it up.
     
  23. Offline

    clintyip

    For some reason, Default users can buy from Chest shops, but they can't sell them back to the shop. I have GroupManager permissions with the Chestshop.chest.sell in the permissions config...help please?
     
  24. Offline

    benthamanowns

    hmm. when i set my shop up i get the message saying you setup a shop but when i go to sell my items it says you dont have enough or it just doesnt respond.
     
  25. Offline

    Acrobot

    @clintyip
    @benthamanowns
    It's the default spawn protection. Go to bukkit.yml, change spawn-radius to 0.
    And if it says you don't have enough of the item - check if your /iteminfo is the same as the item on the sign.
     
  26. Offline

    acejet124

    Will support for PermissionsEx be added?
     
  27. Offline

    Acrobot

    @acejet124
    PEX is supported since its beginning :)
     
  28. Offline

    acejet124

    I didn't see PEX in the supported permissions plugins and when I try using the nodes, I get:"You are not allowed to use that" or what ever come up when you are not allowed. I had the all(* thing) permissions node, so i don't get why I couldn't use it.
     
  29. Offline

    mineHAVOC

    Well, i attemped to do this, but it turns out, even following tutorials, i cant program plugins. I just suck I guess.
    Only thing i found what a 100ms not a 150, dunno if i was missing something, either way, when i recompiled it, it threw out massive errors.

    What would I have to do to get a 1000ms (aka 1sec) timer? :) (or a configureable set time coded in)
     
  30. Offline

    Acrobot

    @acejet124
    Firstly - could you give me the exact error?
    Secondly - try adding the ChestShop.* node.

    @mineHAVOC
    I will recompile it for you to have configurable time. However, this will be the BETA version.
     
  31. Offline

    ginner159

    hey just wondering if there is a way to sell kits via the shops? say kit1 = wood tools and a cooked chicken, kit2 = basic armour and sword.

    cheers! btw great plugin
     

Share This Page