[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

    jakki

    22:16:23 [INFO] iConomy (Eruanna)
    22:16:23 [INFO]
    22:16:23 [INFO] [] Required, () Optional
    22:16:23 [INFO]
    22:16:23 [INFO] /money Check your balance
    22:16:23 [INFO] /money ? For help & Information
    22:16:23 [INFO] /money rank (player) Rank on the topcharts.
    22:16:23 [INFO] /money top (amount) Richest players listing.
    22:16:23 [INFO] /money pay [player] [amount] Send money to a player.
    22:16:23 [INFO] /money grant [player] [amount] Give money.
    22:16:23 [INFO] /money grant [player] -[amount] Take money.
    22:16:23 [INFO] /money set [player] [amount] Sets a players balance.
    22:16:23 [INFO] /money hide [player] true/false Hide or show an account.
    22:16:23 [INFO] /money create [player] Create player account.
    22:16:23 [INFO] /money remove [player] Remove player account.
    22:16:23 [INFO] /money reset [player] Reset player account.
    22:16:23 [INFO] /money purge Remove all accounts with inital holdings.
    22:16:23 [INFO] /money empty Empties database.
    22:16:23 [INFO] /money stats Check all economic stats.
     
  3. Offline

    Acrobot

    @jakki
    Did re-downloading fix it?

    @tauquebb
    It is fine, but be sure that it is right (spaces,tabulators)
     
  4. Offline

    jakki

    I re-downlaoded Iconomy and iconomychestshop.. Putted Jar files into /plugins folder, but still the same problem, [config file dosent exist]
     
  5. Offline

    Acrobot

    @jakki
    Oh, that's not a problem - iConomy generates it for you automatically, but my plugin DOES NOT.
    So copy everything from iConomyChestShop's zip to /plugins.
     
  6. Offline

    jakki

    OMG! i have waited so long to do this! Thanks mate! love you! I will doante 5$ :p lol, a small amout but better than nothing :)
    - anyway, You cant buy from ur own shop is normal right? :)
     
  7. Offline

    Acrobot

    @jakki
    Yep :)
    And thanks!
     
  8. Offline

    XxProphet

    Still not working :( thats my config file:

    # <money> - amount of money with iConomy currency
    # <cost> - cost of the item
    #
    # 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!"
    wait: "&4Wait!"

    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!"
     
  9. Offline

    Acrobot

    @XxProphet
    Code:
    Somebody_bought_items_from_your_shop: '<buyer> bought <amount> <item> for <cost>!'
    
    Something is wrong here :/
    Try changing
    --> '
    to
    --> "
     
  10. Offline

    amunro

    Anyone managed to fix the invisible items bug?
     
  11. Offline

    Xordaii

    I thought he said something vague about a setting in the config toward the top. I would have to reread quite a few pages to find it. I haven't tested it yet, was going to do that in the next few days.
     
  12. Offline

    amunro

    Yeah i read that somewhere too, but I couldnt get it to work...
     
  13. Offline

    Courtney

    Any idea when this will be up and running properly for CB# 818?
     
  14. Offline

    rivu

    thanks for replying! it works perfectly now !
    i was doing B:16 S:16
    sorry for asking without reading post first

    one more thing, when i edit a chestshop sign with signedit
    it doesn't seem to work.
     
  15. Offline

    tauquebb

    I have been through all the Permissions files (2 worlds and the group) and replaced every area of blank space with pasted spaces, but still it refuses to let me make a shop, is there anything else I should be looking for?

    Thanks
     
  16. Offline

    Acrobot

    @rivu
    Yep, this might be "not a bug, but a feature"

    @tauquebb
    I have no clue :/

    @Courtney
    Just download normal version.
     
  17. Offline

    Acrobot

    @amunro
    You can download normal version - It works now.
     
  18. Offline

    Morgen

    Need for 818 =(
     
  19. Offline

    footwo

    On CB 820, buying an item from a shop does not put it into your inventory.

    You have to right click on ANY other chest after clicking the sign to make your purchase, then somehow it appears in your inventory.
     
  20. Offline

    rmb938

    b818 items don't show in your inventory till you click something else
     
  21. Offline

    Acrobot

  22. Offline

    footwo

    The normal version?
     
  23. Offline

    rmb938

    What "normal" version lol
     
  24. Offline

    Acrobot

    @footwo
    @rmb938
    The "normal" that was not "CB 815", only one that's left now.
     
  25. Offline

    rmb938

    I don't know what this "normal" one you are talking about. Your plugin states that it should work with 818 which it doesn't.
     
  26. Offline

    Acrobot

  27. Offline

    Spxify

    I'm having trouble with the plugin, the permissions are set right, but we can't sell to the chest when left clicking the sign. Is there a way to fix this?

    Thanks. :)
     
  28. Offline

    rmb938

    hmm works now with that link. Weird. Also any ETA on when we will see price limits?
     
  29. Offline

    Acrobot

    @rmb938
    ETA - I have no clue, I may make it today if you want to.
    (So, in few hours)

    @Spxify
    Do you have config file? Any errors in console?
     
  30. Offline

    rmb938

    Well for my server the sooner the better. Not to sure how others feel about it.
     
  31. Offline

    Spxify

    @Acrobot No errors in the console. The config:

    Show Spoiler
    reverseButtons: false
    sell: true
    distance: 1
    position: 'ANY'
    protection: true
    #reverseButtons - If true, people buy with left click and sell with right click.
    #sell - Do you want to let people create/use shops, that buy things from players?
    #distance - Distance between the chest and the sign. (Warning, chests that aren't exactly that far WON'T work as shops)
    #position - Position of the chest, relative to the sign. ANY for anything in radius of 1 block, other: goo.gl/YItRO
    #protection - Do you want to use built-in shop protection?
    LWCprotection: true
    signLWCprotection: false
    #LWCprotection - Do you want to protect the chests with LWC?
    #signLWCprotection - Do you want to protection signs with LWC? (Warning, gives LWC message when using shop!)
    log: true
    logToFile: false
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    #log - Do you want to log transactions and shop creating?
    #logToFile - Do you want to save the log to file? (Warning, this lags a bit - I reccomend turning this off, as server.log will have these informations too.)
    #logFilePath - Path to log file.
    sneakMode: false
    allowUsedItemsToBeSold: false
    stackUnstackableItems: true
    #sneakMode - Do you want to let people to shop using left mouse button, and destroy the shop signs when sneaking?
    #allowUsedItemsToBeSold - Do you want to let people sell used tools to the shop? (Warning, the tools will be "fresh" if player sells them. NOT RECCOMENDED)
    #stackUnstackableItems - Do you want to stack all items in chest?
    useDB: true
    howLongToStoreInformationInDB: 600
    intervalBetweenTransactions: 100
    #useDB - Do you want to use bukkit's built-in database to log the transactions? (Must be turned on, if you want to generate price list)
    #howLongToStoreInformationInDB - How old the transation must be before being deleted? (In seconds)
    #intervalBetweenTransaction - How often can one person buy or sell to the shop? (In miliseconds: 1000ms = 1 sec)
    generateTransactionList: true
    intervalBetweenGeneratingTransactionList: 5
    showUnusedItemsInGeneratedList: false
    #generateTransactionList - Do you want to generate average price, amount of bought, sold items page? (Currently in ALPHA state)
    #intervalBetweenGeneratingTransactionList - Interval between generating the list. (In seconds)
    #showUnusedItemsInGeneratedList - Do you want to show items, that were not bought/sold on the list?
    separatingLineAfterTransaction: true
    doNotRemoveSignIfNotCorrect: false
    serverAccountName: ""
    #separatingLineAfterTransaction - Do you want to show a line in the chat after transaction?
    #doNotRemoveSignIfNotCorrect - Do you want to keep the sign, if it's not correct?
    #serverAccountName - Account of the server to use with AdminShops, blank if you don't want to use one
    #Messages:
    showOutOfStock: true
    showMoneyAfterTransaction: true

    #showOutOfStock - Do you want to show "Out of stock" messages?
    #showMoneyAfterTransaction - Do you want to show your balance after transaction?
    # If you want to translate this file, do it yourself, or copy the "lang:" part from another translation.
    # 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 from shop.
    # <seller> - nick of the person who sold to shop.
    # <owner> - nick of the person who own the shop.
    # <amount> - amount of item
    # <item> - name of item
    # <money> - amount of money with iConomy currency
    # <cost> - cost of the item
    #
    # 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!"
    wait: "&4Wait!"
    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!"


    Did I set anything wrong?
     

Share This Page