[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

    iliketrains

    Good plugin i recommend but Icant make my shops sell free stuff can u fix this
     
  3. Offline

    Buckethead

    Thank you :> ive never spawned or dealt with non normal stuff so idk how that woks with the : and things
     
  4. Offline

    Buckethead

    I put that and it still doesnt let me sell
     
  5. Offline

    Unknowncmbk

    My players are having issues buying item 98 (smooth brick), 98:1, 98:2 from Admin Shops as when they buy it gives them circle stone (98:3). I even tried the names, and the item ids nothing works. So when they go to buy Smooth Brick (98) from the Admin Shop it gives them Circle Stone (98:3) instead. Help! :(

    CSVer: 3.42
    CraftBukkit Ver: 1.2.5 R4.0
    iConomy
    PEx
     
  6. Offline

    Acrobot

    iliketrains
    Sorry, but I can't read your mind. You must tell me the details. What do you mean by "can't create"?

    Unknowncmbk
    Search first, please. This is fixed in the test version.

    Buckethead
    "Doesn't let me sell"? What do you mean by that? What happens when you do /iteminfo while holding the piston?
     
  7. Offline

    Buckethead

    ok i figured it out it was 33:7 not 6
     
  8. Offline

    Acrobot

    Buckethead
    Oh, sorry then - maybe Notch changed something in the new Minecraft version :p
     
  9. Offline

    1born2kill

    All right this is really crazy, I have read all your guide, and I've tried everything but I have the same issue like Niggerbob.

    I dont want all my users to create shops, so I gave - -ChestShop.shop.create.* that permission node to them. But they are still able to create Shops.

    I also tried going to the plugin.yml and change default: true to default: op.

    This fixed one of the problems, but then higher rankers cannot build shops which is frustrating on my part, and yes I gave the permission nodes to them.

    I really don't know what to do at this point, and also, I've tried setting this up on the config file, where you need xxxxx amount of money to create shops. I set the def. price at 5000000000 but it doesn't charge the users when they create a shop :/

    Here is my pex file, just the default rank.

    Permission plugin: PEX
    ChestShop: Latest Version

    Code:
    groups:
      default:
        default: true
        prefix: '&7[Unbound-Souls]&f'
        suffix: '&f'
        permissions:
        - modifyworld.login
        - lwc.protect
        - scrollingmenusign.user
        - modifyworld.blocks.interact.*
        - mywarp.warp.sign.warp
        - modifyworld.items.drop.*
        - modifyworld.digestion
        - modifyworld.items.pickup.*
        - scrollingmenusign.execute.elevated
        - towny.chat.town
        - towny.chat.general
        - modifyworld.chat
        - -iconomy.accounts.*
        - iconomy.*
        - modifyworld.chat.private
        - bankcraft.use
        - heroes.bind
        - essentials.kit.rpg
        - essentials.kit
        - towny.town.plot
        - AJLM.hidequit
        - AJLM.hidejoin
        - essentials.balance
        - essentials.balance.others
        - essentials.balancetop
        - essentials.pay
        - towny.town.spawn.town
        - towny.town.spawn.ally
        - towny.town.spawn.nation
        - spout.plugin.ignorespoutcraft
        - modifyworld.vehicle.destroy
        - modifyworld.vehicle.enter
        - modifyworld.interact.*
        - modifyworld.vehicle.collide
        - -ChestShop.shop.create.*
     
  10. Offline

    Acrobot

    1born2kill
    Oh well... That's why I don't like PEX. If you've already changed "default: true" to "default: op", you can remove the "-ChestShop.shop.create.*" permission, and just give your players ChestShop.shop.create permission :p
     
  11. Offline

    Deleted user

    "You can't buy here!"
    What's up with this? I checked the FAQ, and it said to make sure my 3rd line is correct. Here's my sign:
    Code:java
    1. AdminShop
    2. 1
    3. B 5|5 S
    4. Diamond

    For the | on the 3rd line, I used Shift+[\ button].

    CraftBukkit Version: 1.2.5-R4.0
    ChestShop Version: 3.42
    Economy Plugin: iConomy
    Permissions: PermissionsEx
     
  12. Offline

    Acrobot

    ShootToMaim
    Well, it's a colon, not a vertical line.

    Code:java
    1.  
    2. Admin Shop
    3. 1
    4. B 5:5 S
    5. Diamond
    6.  


    :p
     
  13. Offline

    Deleted user

    Oh. Thanks :D.
    One more thing. Can you add a feature where you can have a "free" shop?
    Code:java
    1. [Free]
    2. 1
    3. Diamond Sword

    Only players with the permission ChestShop.shop.free can use it. This would be great for donators/VIP's on servers.
     
  14. Offline

    Acrobot

    ShootToMaim
    Well, you can already do that.

    You need to put a [restricted] sign above the shop sign (this might change in the future, though!).
    Then, just give your users ChestShop.group.groupName permission, where groupName is one of the names on sign:

    Code:java
    1.  
    2. [restricted]
    3. firstGroup
    4. secondGroup
    5.  


    (This will let ChestShop.group.firstGroup and ChestShop.group.secondGroup buy from shop)

    Code:java
    1.  
    2. Admin Shop
    3. 1
    4. B free
    5. Diamond
    6.  
     
    Deleted user likes this.
  15. Offline

    Deleted user

    You're awesome.
    1 last thing. Lockette integration :D.
     
  16. Offline

    1born2kill

    I finally found a solution, and I guess I want to share this with ppl.

    Instead of changing the "default:true" change it to "default:false" this made it so that newcomers cannot create shops.

    Now, if you are new, go ahead and make a separate rank, for mine is VIP.

    I give my VIPs ChestShop.shop.create.* and now they can create Shops.

    for the default, I gave them the permission to sell/buy.

    Now I'm happy :)
     
  17. Offline

    gabessdsp

    Okay so everywhere i look it tells me ChestShop can sell enchantments and place them directly on items, but nowhere can i find how to do this? So how do I do it?
     
  18. Offline

    Acrobot

    ShootToMaim
    There is a lockette integration already. I have no idea, though, why Acru has ChestShop on the list of "incompatible" plugins, when, in fact, it works...

    1born2kill
    Haha, nice :)

    gabessdsp
    No, ChestShop can't sell enchantments. ChestShop can only sell enchanted items.
     
    Deleted user likes this.
  19. Offline

    gabessdsp

    Well I just went on Craftium and they only use ChestShop, and I also just did it on my server. ChestShop is the absolute only shop plugin that we both have installed. So why did this work?

    [Enchant]
    any
    Efficiency:5
    $5000


    Do you know what plugin that is?
     
  20. Offline

    Acrobot

    gabessdsp
    No idea, but it's not ChestShop.
     
  21. Offline

    Cordicuss

    So... when I try to set a price for shovels, it will just revert to the "makeup". Example, I make the sign and say "Stone Shovel", it will immediately revert to "stone".
     
  22. Offline

    Acrobot

    Cordicuss
    Ehh, I believe it's not ChestShop's issue, which CS version are you running?
     
  23. Offline

    Buckethead

    ahh yes i remember this. open up your chestshop.jar with something like winrar and in there is plugin.yml change to the things i put arrows on and it should work :)

    Code:
    permissions:
      ChestShop.*:
        description: Gives access to all ChestShop permissions
        default: op
        children:
            ChestShop.shop.*: true
            ChestShop.admin: true
      ChestShop.shop.*:
        description: Gives access to all user ChestShop permissions
        children:
            ChestShop.shop.create: false <----------
            ChestShop.shop.buy: true
            ChestShop.shop.sell: true
        default: true
      ChestShop.shop.create:
        description: Allows the user to create a shop that sells and buys any item
        children:
            ChestShop.shop.create.buy: false <-------
            ChestShop.shop.create.sell: false <-------
     
  24. Offline

    Buckethead

    I believe what iliketrains meant was he probably cant put up a sign for Buying at 0 price
     
  25. Offline

    Acrobot

    Buckethead
    Well, that's actually obvious. The question is - what happens when he tries to do that?

    And yeah - thanks for explaining :)
     
  26. Offline

    Buckethead

    Well i remember when i tried it it said u can buy or sell here. then i asked if u could make freee stuff a posibility and u said no lol
     
  27. Offline

    Buckethead

    why do u need lockette intergration other players cant open each others chesthops unless they have the permission node for it
     
  28. Offline

    Deleted user

    Didn't know that :p. I'm a noob at ChestShop.
     
  29. Offline

    Deleted user

    Acrobot
    Can you pretty please make a [Free] feature? :D. It looks nicer than a shop with 0 as a value for the Buy and Sell. :).
     
  30. Offline

    Cordicuss

    V.3.42
     
  31. Offline

    Acrobot

    ShootToMaim
    Well, it's not a shop with 0 value for buy/sell.
    It's a shop that has:

    B free
    S free
    B free:free S

    (So you see it sells/buys for free)

    Buckethead
    Really? When? D:

    Cordicuss
    Hmm... If you do /iteminfo on a stone shovel, you get a "Stone Spade", which works just fine to me :p
     
    Deleted user likes this.

Share This Page