[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

    mahari3

    Disapproved: 16:49:46 [INFO] [Metrics] metrics.griefcraft.com
    Apparently this plugin is linked to: metrics.griefcraft.com
     
  3. Between source-code and "Thanks to" is a spoiler: "Videos" (look at the main thread, or search on youtube)
     
  4. Offline

    Epics

    Pretty sure metrics is linked to OpenInv, but I could be wrong.
     
  5. Offline

    mahari3

    Ch
    go to the actual link in what i posted (metrics.griefcraft.com) it has a link to all plugins related to it.
    EDIT1: you are right, openinv is linked to it as well according to that website.
     
  6. Offline

    Epics

    :) glad to be of assistance.
     
  7. Offline

    Acrobot

    mahari3
    That's the statistics webpage. It posts an unique generated GUID (made by doing UUID.randomUUID().toString()), so your web server doesn't get posted twice. It sens a ping packet every 15 minutes to let me know how many servers are using it.

    It doesn't send anything else, even your IP.

    You can find more information about it here:
    https://github.com/Hidendra/metrics.griefcraft.com

    You can opt-out (so not even the GUID will be sent) by changing the "opt-out" value in config, found in plugins/PluginMetrics/config.yml
     
  8. Offline

    SalvadorZXA

    hello. um when ever i type /buy or /sell, it does not work and it says "unknown command. Type "help" for help" what should i do?
     
  9. Offline

    Acrobot

    SalvadorZXA
    /buy and /sell AREN'T the commands for ChestShop.
    The only commands there are are:
    - /iteminfo to find out item information
    - /csversion to find ChestShop's version

    It is simple - if you want to buy from sign, right-click it. If you want to sell, left-click it.
     
  10. Offline

    SalvadorZXA

    ohh no wonder. thanks but i tried that and when i right click on it, the chest opens up but when i left click it, nothing happens. Any help?
     
  11. Offline

    SalvadorZXA

    oh wait nvm i got it. thanks for the help :D
     
  12. Offline

    Buckethead

  13. Offline

    mahari3

    Alright thanks. The only reason it was bothering me was it was creating errors with buycraft, not very often but it has.
     
  14. Offline

    Acrobot

    mahari3
    Really? I didn't know that.
    If you get any errors, could you post them here?
    I will then forward it to the statistics page maker, so he receives it :)
     
  15. Acro, does this plugin not work with GroupManager? We didn't give our builder group permissions to create shops, but they still can create shops. Help?
     
  16. Offline

    Buckethead

  17. Offline

    Buckethead

    yes click the link

    • open ChestShop.jar with WinRAR/7Zip, open plugin.yml and change "default: true" to "default: ops"
    • (if you're using PEX) add "-ChestShop.shop.create.*" for the default group (if other perm plugin) refer to the documentation
     
  18. I'm using Groupmanager, and in that chestshop.jar it's already set to default: ops and everyone can still create shops.


    Edit: Found another line. Testing, i'll reply in a few minutes
     
  19. Offline

    Buckethead

    yes there are multiple lines mine is like this

    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: true
            ChestShop.shop.buy: true
            ChestShop.shop.sell: true
       default: op <---------------------------------
      ChestShop.shop.create:
        description: Allows the user to create a shop that sells and buys any item
        children:
            ChestShop.shop.create.buy: true
            ChestShop.shop.create.sell: true
     
  20. Offline

    Acrobot

    Buckethead likes this.
  21. Offline

    mahari3

    Yes, if or when I get the error again I will send you a copy.
     
  22. Offline

    Buckethead

    np
     
  23. Okay, permissions works. Now i need help with WorldGuard:

    EDIT: Nvm, everything works ! THANK YOU ! <3
     
  24. Offline

    Acrobot

    simuciokas
    You turn on WRODLGUARD_INTEGRATION in ChestShop's config.

    By default, you can't make shops anywhere.
    You must make your region and then do /region flag Shops chestshop allow
     
  25. Offline

    Akxe

    What about to make a /undo buy, /undo sell cause many time you just press the wrong button...
     
  26. Offline

    Epics

    It's pretty straight forward, man.
     
  27. Offline

    mrwealthyhobo

    Am Having A Repetitive Problem I set Up the sign and it says "Shop created Sucsessfuly"But when I right click it it says on The console [SEVERE] Could not pass event PlayerInteractEvent to ChestShop Please Help!
     
  28. Offline

    Acrobot

    mrwealthyhobo
     
  29. Offline

    SniperGuy

    Hey guys, I got MoneyDrop and ChestShop. I want to set up the server so that if a player kills a hostile monster, it'll drop cash so that they can spend it to buy and sell materials in a central store. The store will also be expensive so that players can setup their own stores and get better profits than they would by selling to the store. Anyone have recommendations for a good price system for items and what monsters should drop?
     
  30. Offline

    FolisDHC

    Love the plugin. Awesome job.

    One thing though, I'm currently running 3.39 and trying to make a shop that deals in light gray wool. This definition, however, (for both "light grey" and "light gray") seems to be set to the default white wool. I apologize if this has already been brought to your attention, but I didn't see it in the thread here when I skimmed through.

    Thanks again for this awesome plugin!
     

Share This Page