[ECON] ChestShop 3.50 (iConomyChestShop) - Chest&sign shop for economy plugins [1.5.1]

Discussion in 'Plugin Releases' started by Acrobot, Feb 12, 2011.

     
  1. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!

    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 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.

    Bulgarian - Muff1Ncho
    Czech - LordPgsa
    Chinese (Simplified) - tab415263
    Danish - blasterweb
    Deutsch (newest) - xGhOsTkiLLeRx
    Dutch - marinus15
    French- Chbrams
    Hungarian - Anachen
    Italian - Massimo1993
    Korean - Zwing87
    Norwegian - _AlexN_ and TheUnkownGamer
    Polish - Holls1
    Portugese (Brasil) - FelipeMarques14
    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]

    This post has been edited 210 times. It was last edited by Acrobot May 15, 2013.
  2.  
  3. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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
  4. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    "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

    This post has been edited 3 times. It was last edited by ShootToMaim Jun 30, 2012.
  5. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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

    This post has been edited 1 time. It was last edited by Acrobot Jun 30, 2012.
  6. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.

    This post has been edited 3 times. It was last edited by ShootToMaim Jun 30, 2012.
  7. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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.  
    ShootToMaim likes this.
  8. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You're awesome.
    1 last thing. Lockette integration :D.

    This post has been edited 2 times. It was last edited by ShootToMaim Jun 30, 2012.
  9. Offline

    1born2kill

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 :)
  10. Offline

    gabessdsp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  11. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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.
    ShootToMaim likes this.
  12. Offline

    gabessdsp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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?
  13. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  14. Offline

    Cordicuss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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".
  15. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Cordicuss
    Ehh, I believe it's not ChestShop's issue, which CS version are you running?
  16. Offline

    Buckethead

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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 <-------
  17. Offline

    Buckethead

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I believe what iliketrains meant was he probably cant put up a sign for Buying at 0 price
  18. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Buckethead
    Well, that's actually obvious. The question is - what happens when he tries to do that?

    And yeah - thanks for explaining :)
  19. Offline

    Buckethead

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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
  20. Offline

    Buckethead

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    why do u need lockette intergration other players cant open each others chesthops unless they have the permission node for it
  21. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Didn't know that :p. I'm a noob at ChestShop.
  22. Offline

    ShootToMaim

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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. :).
  23. Offline

    Cordicuss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    V.3.42
  24. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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
    ShootToMaim likes this.
  25. Offline

    Cordicuss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Cordicuss
    Hmm... If you do /iteminfo on a stone shovel, you get a "Stone Spade", which works just fine to me :p[/quote]

    Ugh, I'm a derp. Thanks so much for being a developer that actually ansers its community.
  26. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Cordicuss
    Haha, no problem - I always try to help :)
  27. Offline

    GreenBeing

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi. I noticed that items with four enchantment on them seem to have incorrect item codes. I was looking through the encodeEnchantment routine, and you have the decimal encoding being stored in an Integer, which should not be able to hold many of the encodings for a four-enchant item. The base 32 result code is therefore truncated... Not sure if this is a real problem, but couldn't this cause some differently enchanted items to use the same item code?

    An example:
    Item code: btqp7d Infinity I, Flame I, Punch III, Power V
    Shouldn't this be? : esbtqp7d
  28. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @GreenBeing
    Hmm, is it even possible to have 4 enchantments on an item (in vanilla game)?

    Nevertheless - really thank you for spotting that - I'm fixing it now.
  29. Offline

    GreenBeing

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep, weapons and tools can have four enchantments in vanilla. Thanks for work on this great mod!
  30. Offline

    Buckethead

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really when what? like since we havent needed lockette. As long as ive used it i know. If someone whos not a mod or admin on my server tries to open a players chetshop who doesnt own it they cant. i dont remember exactly what the error was because now i have a sort of communist server where only the server sells things and no one can make shops at all :p
  31. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Buckethead
    No no, about the "free" price :p

    Don't worry about it though, I was just wondering :p

    @GreenBeing
    Sure, I'll release a fix soon.
    Buckethead likes this.
  32. Offline

    Nickshelton80

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Test build 3.45 has been working perfectly for me =)

Share This Page