[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

    Trainerdusk

    I have a suggestion that should hopefully make this plugin even better. I dont know the logistics of it or if it could even work, but would it be possible to set up a shop that is connected to a BOSEconomy bank account instead of a player or adminshop.
    I run a little shop with a friend of mine on my server and I'd love it if our profits could go straight into the shared account.

    If it is possible, please make sure only bank owners can create these shops, as it could be exploited to steal money.

    Thanks anyway :)
     
  3. Offline

    Acrobot

    @Trainerdusk
    Sure :)
    I'll try!
    Currently I'm removing unused/not needed code :)
    Removed almost 500 lines now!
     
    Trainerdusk likes this.
  4. Offline

    Trainerdusk

    Brilliant :)
     
  5. Offline

    Luis Almeida

    Can any1 tell me where to get the Permissions file??????
     
  6. Offline

    imaxorz

  7. Offline

    Unjust

    Acrobot, I LOVE the plugin but, I have one problem. My players always get confused because the selling and buying are switched. Is there anyway I could fix this? or you have this in mind for a future update?
    It could really help :S. Right now I have to place a warning before they buy and sell.
     
  8. Offline

    Acrobot

  9. Offline

    NotYetRated

    Hmm I had 2 users report to me that they were able to do it and could have bankrupted anyone they wanted. I will check into this myself tonight as a non-admin to see whats up.
     
  10. Offline

    imaxorz

    Yeah check your permissions settings. I tried to replicate it and I couldn't with my non-admin account. It kept changing the name to mine when I put someone else's on the sign.
     
  11. Offline

    Acrobot

    @NotYetRated
    Don't give players iConomyChestShop.shop.* permission, because it contains iConomyChestShop.shop.admin.
    Gonna be changed in next version.
     
  12. Offline

    NotYetRated

    Yes I quite literally just noticed this. I sincerely apologize for wasting your time....

    Were the original permission nodes different? I can't ever see myself giving everyone access to everything. Though, thats not too say I didn't :)
     
  13. Offline

    Gunpower

    What about put lime wool on admin shop?
    i just cant get the correct id for colored wool or materials to color! help!
     
  14. Offline

    Acrobot

    @Gunpower
    WOOL:5
    or
    35:5

    @NotYetRated
    There wasn't any admin node long ago, but from version 2.0 (I think) it was initialized.
    I'm changing this to iConomyChestShop.admin
     
  15. Offline

    Demonofbirth

    How exactly do I use this with lockette. I have both plugins. I want users to be able to make their own shops while other user's cannot break or open their chest.
     
  16. Offline

    Acrobot

    @Demonofbirth
    Just create a chest and lock it with Lockette.
     
  17. Offline

    pvtv3ga

    I just installed this plugin. I have iConomy 5 on my server, Permissions 2.7.2 (the most recent version) and iConomyChestShop for iConomy 5. My server is running build 740. When I create a shop it says that my shop has been created successfully. I put the items in the chest but whenever anyone tries to buy from my shop it says 'No economy plugin found.' Any idea why? iConomy is definitely installed :p

    Permissions config:

    Code:
    # System is no longer used, but may become used in the future
    # Copies is for multiple-world support
    # Put the name of the world you wish for it to be a clone of, otherwise leave it empty.
    # If this file is for your default world (the one in server.properties) then you must
    # leave copies blank.
    # Example: copies: Derp - This will clone the permissions of the world Derp
    #
    # Make sure to rename this file to the name of the world that is in sever.properties under
    # level-name. So if it is level-name: world then this should be world.yml and in the
    # plugins/Permissions directory (ie. plugins/Permissions/world.yml)
    #
    # NOTE: Do not use tabs while editing this document. Use only spaces. A good way to avoid
    # doing this is to use Notepad++ and replace the tab with 4 spaces.
    plugin:
    permissions:
    system: default
    copies:
    
    ##
    # AntiBuild is included with this. To disable a group from being able to build then
    # set the build: flag to false (build: false). If you want a group to be able to build
    # then set it to true.
    ##
    # Groups can contain inheritance.
    # To make a group inherit the permissions from another
    # group simply place the groups name in the "inheritance:" like so:
    #
    # Example:
    # inheritance:
    # - Default
    ##
    # All permissions including the asterisks must be placed in single quotes.
    # like so:
    #
    # - 'foo.bar'
    #
    # Otherwise errors will happen!
    ##
    # Globalized Permission settings:
    #
    # If a permission contains periods (.) you can denote a globalized parameter:
    #
    # - 'foo.*'
    #
    # This will allow you to use all general commands.
    #
    ##
    # Single Asterisk denotes all commands:
    #
    # - '*'
    # If you give a group this permissions, do not have the group inherit any permissions
    # from other groups. Any users assigned to this group should NOT be given any additional
    # permissions either.
    ##
    # To exempt a node use the - prefix like so:
    # - '-foo.bar'
    ##
    # prefix: and suffix: do not do anything on their own. You need another outside plugin
    # such as iChat or HeroChat in order for these to do anything.
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'multihome.home'
    - 'multihome.namedhome'
    - 'multihome.sethome'
    - 'multihome.setnamedhome'
    - 'multihome.deletehome'
    - 'multihome.listhomes.myself'
    - 'general.spawn'
    - 'general.spawn.set'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.teleport.to'
    - 'general.player-info'
    - 'chestlock.own'
    - 'chestlock.lock'
    - 'chestlock.unlockable'
    - 'chestlock.usekey'
    - 'chestlock.coowner'
    - 'simplewarp.add'
    - 'simplewarp.list'
    - 'simplewarp.remove'
    - 'simplewarp.warp'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.buy'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.command.iteminfo'
    Moderator:
    default: false
    info:
    prefix: 'Mod'
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    
    Admins:
    default: false
    info:
    prefix: 'Admin'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
    pvtv3ga:
    group: Admins
    permissions:
    - '*'
    half_life_strike:
    group: Admins
    info:
    prefix:
    suffix:
    permissions:
    - '*'
    
    ChestShop config:

    Code:
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true
    
    LWCprotection: true
    signLWCprotection: false
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    sneakMode: true
    allowUsedItemsToBeSold: false
    stackUnstackableItems: false
      
    separatingLineAfterTransaction: false
    
    #allowUsedItemsToBeSold - allows used items to be sold. WARNING. the tools will be "fresh" if player sells them. I don't reccomend it, really.
    #protection - do you want to use anti-stealing protection?
    #sell - do you want to activate selling?
    #distance - distance between the chest and the sign
    #position - position of the chest, goo.gl/YItRO
    #LWCprotection - do you want to protect the chests with LWC?
    #signLWCprotection - do you want to LWC-protect the sign? Warning: it will show LWC message every transaction.
    #logFilePath - where will the log be stored?
    #sneakMode - if on, left-clicking the sign automatically sells to shop, if you want to break the sign, just sneak and break it.
    #separatingLineAfterTransaction - if on, after every transaction there will be one line of "------" in the chat
    #stackUnstackableItems - if turned on, plugin uses default MinecartMania behavior - stacks food, etc. I reccoment to turn it OFF!
    
    # prefix will be dispayed at the beggining of every message.
    # you can use terms like <buyer>, <amount> or <item> in messages, however
    # only certain messagess offer this.
    #
    #
    # <buyer> - nick of the person who bought.
    # <owner> - nick of the person who own the shop.
    # <amount> - amount of item
    # <item> - name of item
    # <money> - amount of money with iConomy currency
    #
    # You can always use hMod colors, like
    # &1, &f etc...
    # For example: This is my&6 golden text.
    
    #MAXIMUM OF 55 CHARACTERS WITH PREFIX!
    
    #Experimental: Try changing the prefix to ' &a[Shop] &f '
    #The text will be centered!
    lang:
    prefix: '&a[Shop] &f'
    Somebody_sold_items_to_your_shop: '<seller> sold <amount> <item> for <cost> to your shop!'
    Somebody_bought_items_from_your_shop: '<buyer> bought <amount> <item> for <cost>!'
    Your_shop_is_out_of_stock: 'Your <item> shop is out of stock!'
    You_cannot_use_your_own_shop: "You can't use your own shop!"
    
    You_bought_items: 'You bought <amount> <item> from <owner> for <cost>.'
    
    Your_inventory_is_full: 'Your inventory is full!'
    You_have_got_not_enough_money: "You don't have enough money!"
    Shop_is_out_of_stock: 'This shop is out of stock!'
    
    You_have_not_enough_items: 'You have not enough items to sell!'
    You_sold_items: "You sold <amount> <item> for <cost> to <owner>'s shop."
    Chest_is_full: 'This chest is full!'
    
    Seller_has_not_enough_money: "Seller has not enough money!"
    Seller_has_no_account: "Seller's account doesn't exist!"
    No_selling_to_this_shop: "Shop owner doesn't want you to sell here!"
    No_buying_from_this_shop: "Shop owner doesn't want you to buy here!"
    
    Your_balance: 'After transaction you have <money>.'
    
    Shop_is_created: 'Your shop has been successfully created!'
    Shop_cannot_be_created: "You have no chest set up!"
    Shop_was_LWC_protected: "Your shop was successfully protected with LWC."
    
    Mode_changed_to_sell: 'Mode set to selling!'
    Mode_changed_to_buy: 'Mode set to buying!'
    
    You_tried_to_steal: "Don't steal!"
    
    iteminfo: "&aItem ID and names:"
    incorrectID: "Incorrect item ID!"
    Couldnt_fit_on_sign: "Couldn't fit something on the sign!"
    Negative_price: "Can't make shop with negative buy/sell price!"
    Incorrect_item_amount: "The item amount you specified is invalid!"
     
  18. Offline

    Acrobot

    @pvtv3ga
    You don't have iConomy 5 or iConomyChestShop for iConomy 5 :)
     
  19. Offline

    pvtv3ga

    Not to sound ignorant man, but I have both of them installed :p
     
  20. Offline

    Demonofbirth

    But then it has to be a double chest correct? You can't put 2 signs on a single.
     
  21. Offline

    Acrobot

    @Demonofbirth
    Lockette (and iConomyChestShop) both support double chests.

    @pvtv3ga
    Yeah, I know you said that, but that error shows up when one of the components isn't installed. Mind posting your server.log?
     
  22. Offline

    Designdecay

    Every time I try to use the shop it says my inventory is full any tips?
     
  23. Offline

    po24

    Um.... I get this error when someone buys from my shop.
    Error-No translation for Someone_bought_items_from_your_shop
     
  24. Offline

    EwMeep

    I have same error as pvtv3ga.
     
  25. Offline

    Cryptite

    Having a recurring error where I create a shop and after applying the sign, get both LWC protection and shop creation success messages, then the sign immediately disappears. I've run out of ideas why this might be other than perhaps i've exhausted the max number of shops or something, yet I haven't seen any such setting. Any ideas?
     
  26. Offline

    ValBGaming

    Question about the last line, "If you just want admin shop, but not like this one, create an iConomy account "Bank" and set up signs using it!", how does this work? I made an account called Bank and tried to make a sign with it but it didn't treat it as an Admin Shop. It just says that the shop is out of stock.

    EDIT: What I would like to have happen is so that when people sell or buy to/from admin shops the money gets put into an account.
     
  27. Offline

    EwMeep

    any help on iconomy isn't found?
     
  28. Just a little thing I made
    It is likely I will revise it...

     
  29. @Acrobot
    How can i make it after an update that all ChestShops work without create them new?
    Also N1 new Update with the html file^^ also n1 new other features one [diamond] for you xD
     
  30. Offline

    Acrobot

    @Taverne
    It is backwards-compatible :)
    They are working both with old and new version :)

    If they don't, just tell me, but they should.
     
  31. ok then i have to look after the new update if our server technician come back xD
     

Share This Page