[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

    Acrobot

    @zipfe
    Oh :/
    Nah, I rather plan not to change this - I may change it in the future though (just not atm)
    I'm so sorry for that :/
     
  3. Offline

    zipfe

    @Acrobot
    Curse you @#$! :)
    Just kidding, we'll build a bigger mall anyway, but that will take some time. We just don't want to turn it into an Admin shop, so that players can't sell when stock is full. And the old option in config was nice to hide chests, for aesthetic reasons.

    Thanks for the awesome plugin.
     
  4. Offline

    Acrobot

    @zipfe
    Haha :p
    Yes - I guess aesthetics are VERY good reason for this (I am very concerned about the looks and how easy to use the plugin is). However, I feel that this could cause incompatibilities with other parts of the plugin. Thanks to you for using the plugin :)
     
  5. Offline

    Ikarirain

    I scanned the last several pages to see if this was mentioned already, but there's 161 pages, for forgive me if I overlooked whether or not it was already asked.

    Would it be possible for line 4 to search for an ID>Data and ID<Data as well as the current ID:Data? So that when searching a players inventory for, say, 307<20, it would look for Iron Chestplates who's durability are under 20 and allow them to be sold to a shop? If this could be possible, then players could use the : symbol to prevent people from selling damaged goods, but be able to use > and < to purchase damaged goods as well. It's very helpful for servers with mcMMO or other plugins with repair skills, because blacksmiths and repairmen would gain more items to repair and re-sell.
     
  6. Offline

    Acrobot

    @Ikarirain
    Haha, an awesome idea :)
    I just have to re-code the plugin a bit, because the current implementation would just sell the items, and in the chest they'd appear as new :p
     
  7. Offline

    Kaosvf

  8. Offline

    Acrobot

    @Kaosvf
    It seems like you started the server while the file was still being downloaded or just a broken download. Re-download please? :)
     
  9. Offline

    Redstorm3265

    Please add PermissionsBukkit Support! :(
     
  10. Offline

    Acrobot

    @Redstorm3265
    I already works with them, why wouldn't it?
    Even in the main post it says so :)
     
  11. Offline

    Tactical_Toad

    This plugin is crashing my server alot! Any suggestions because I would like to keep this awesome plugin!
     
  12. Offline

    Redstorm3265

    @Acrobot Idk why but anyone can create a shop, I am not diggin it lol please help?
     
  13. Offline

    Hopium

    with latest version of towny, register, iconomy and todays i can't interact with shops anymore. ie left/right click doesn't work to buy/sell. only happened after i went to register 1.5 and updated worldguard/worldedit. using todays release of chestshop.towny is set to false in the config as well just so i can test, TOWNY_INTEGRATION: false
     
  14. Offline

    jenks1999

    just wondering if this plugin can support SignColourer. As everytime someone scrolls , it bugs out the Admin Shop's.
    - CraftBukkit: 1.8/1185
    - ChestShop: 3.22
    - Economy plugin: iConomy 6

    - Permission plugin: PEX
     
  15. Some errors in console? Which plugins are installed? Latest version of ChestShop?

    Just forget colors. When you write a sign you add a color (fex: &4) and ChestShop reads it with these symbols. So if you colored last line which should be 'stone' but is '&4stone' - ChestShop(bukkit?) simply can't find item by name '&4stone'. And it's hard work (I think) to make it compatible with Colors.
     
  16. Offline

    Acrobot

    @Redstorm3265
    "I am diggin it"?
    What do you mean?

    @Tactical_Toad
    @Hopium
    Any errors in console?
    Did you try restarting the server, because sometimes bugged chunks occur? (not related to ChestShop)

    @VADemon
    @jenks1999
    Yep - the issue with sign colors is - they take 2 characters.
    If you remember, that sign can hold only 15 characters a line, this means that every color leaves less space to write anything. For example, I can't make your name, f.e. red, because it just wouldn't fit.
     
  17. Offline

    Redstorm3265

    @Acrobot I am not digging it= I dont like it, but yeah anyone can make a shop and i have the permissions set up to where they can only buy and sell and VIPs can only make shops but anyone can make them :/
     
  18. Offline

    Acrobot

    @Redstorm3265
    If you have PermissionsEx/PermissionsBukkit or any other permission plugin, you must deny the ChestShop.shop.create node - it defaults to all players.
    For example, in PermissionsBukkit, you have to do:
    ChestShop.shop.create: false (instead of true, as every other one)
     
  19. Offline

    Hopium

    @Acrobot no errors in the console which is strange, i had to find another shop plugin :[ but i want this one to work its the best one. the /iteminfo command works and when i create a admin shop and user shop it says shop successfully created. just no actual interaction with the shop.
     
  20. Offline

    Acrobot

    @Hopium
    :(
    What is on your sign?
    I am 99% sure that there's something wrong there.
    Can you also send me your config file?
     
  21. Offline

    Hopium

  22. Offline

    Acrobot

    @Hopium
    Try with uppercase b and s :p
    BTW, awesome domain :D
     
  23. Offline

    xxKoMiSxx

    Bukkit:
    ChestShop: 3.22
    Enocony: iConomy 6.0.6b
    Permissions: around 3

    I've got problem.
    I'm Admin and everything works for me, but for default players doesn't....
    Players can sell items, but can't buy, even from AdminShops.. If they buy - there's message. But if they click right mouse button to sell there isn't any message and nothing is sold.
    It's my permissions file:
    PHP:
    groups:
        
    Gracz:
            default: 
    true
            info
    :
                
    prefix''
                
    suffix''
                
    buildtrue
            inheritance
    :
            
    permissions:
                - 
    'commandbook.who'
                
    'commandbook.motd'
                
    'commandbook.rules'
                
    'commandbook.time.check'
                
    'commandbook.home.set'
                
    'commandbook.broadcast'
                
    'commandbook.say'
                
    'commandbook.say.me'
                
    'commandbook.msg'
                
    'commandbook.mute'
                
    'commandbook.whereami'
                
    'commandbook.whereami.compass'
                
    'commandbook.spawn'
                
    'reporter.report'
                
    'lwc.protect'
                
    'ChestShop.shop.buy'
                
    'ChestShop.shop.sell'
                
    'ChestShop.shop.create'
                
    'ChestShop.shop.create.itemID'
                
    'ChestShop.shop.buy.itemID'
                
    'ChestShop.shop.sell.itemID'
                
    'iConomy.holdings'
                
    'iConomy.holdings.others'
                
    'iConomy.help'
                
    'iConomy.payment'
                
    'iConomy.accounts.create'

    (...)
        
    Admin:
            default: 
    false
            info
    :
                
    prefix'&cAdmin&f'
                
    suffix''
                
    buildtrue
            inheritance
    :
            
    permissions:
                - 
    '*'
     
  24. Offline

    Acrobot

    @xxKoMiSxx
    Go to bukkit.yml, change spawn-radius to 0 :)
     
    xxKoMiSxx likes this.
  25. Offline

    xxKoMiSxx

    DUDE, THANKS! It works!
     
  26. Offline

    Acrobot

  27. Offline

    xrobau

  28. Offline

    Acrobot

  29. Offline

    Malaras

    I'm not sure if its possible or if its there, i don't seem to see it. When charging to open shop. Is it possible to refund the money once the sign is broken? Or a percentage?
     
  30. Offline

    Acrobot

    @Malaras
    Not possible to return the money - could be implemented. Thanks for the suggestion :)
     
  31. Offline

    Malaras

    Also thanks for the Towny Wilderness update just noticed different version. If you could as another suggestion. Could you add the wilderness to perms or config what ever u thing is better.? Thanks allot for being on top of things ;) And your work.
     

Share This Page