[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

    @rad1game
    This isn't default config - use default one, or at least copy
    serverAccountName: ""
    to your config.

    @Ludde112
    In .zip, there is default config.
     
  3. Offline

    Acrobot

    BTW, new plugin (I uploaded it just now, it's the same version) has this error fixed.
     
  4. Offline

    Ludde112

    But is this i iConomy chest shop or another plugin?
     
  5. Offline

    Ludde112

  6. Offline

    Acrobot

    @Ludde112
    It's still iConomyChestShop, even the version didn't change, just re-download and it will be fixed.
    And yes, the config is inside iConomyChestShop's download link
     
    Ludde112 likes this.
  7. Offline

    Ludde112

    Yes it worked! Than you so much! Really like people who helps other. I coulden't fix it without your help.
     
  8. Offline

    Ludde112

    One more question. It says ´´No economy plugin found´´. Should I download iConomy again maybe? Or do you know any guide that I can read ´´How to set up a Admin Shop ``:p
     
  9. Offline

    Acrobot

    @Ludde112
    Try re-downloading iConomy.

    How to set up admin shop:
    if you are OP (No Permissions plugin) or if you have iConomyChestShop.admin Permission node(Permissions plugin), just type in "Admin Shop" on the first line of the sign.
    End.
     
  10. Offline

    Ludde112

    @Acrobot Thank you! I will try that later and hope that it works.
     
  11. Offline

    po24

    One of the players shops on my server does not work because his name is too long for the first line and every time there is a server restart it says "the seller doesnt exist" when you attempt to buy from them. Can he just not make shops
     
  12. Offline

    NeonXero

    I'm having the same problem as @Ludde112 (I think that's the right name) - it says "No economy plugin found"

    I've tried both iConomy and BOSEconomy. Both with no luck, everything updated. I'm probably missing a stupid step, but have read all the documentation and am seemingly following all the directions correctly.

    Any help would be great, thanks :)
     
  13. Offline

    RustyDagger

    Mine is that and it still dont work :/ i can put AdminShop on the top line and it keeps putting my name but yet i can still make a sign with another players name so my admin over it is right.
     
  14. Offline

    Costan Balgobin

    When trying to use this plugin while selling or buying it says "No economy plugin found!" even thought i have iconomy (Updated I Checked)
    -I have Craqftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    -I dont have permissions.
    - Yes it poped up saying "No economy plugin found!"
    - I just downloaded the plugin and this happened
     
  15. Offline

    Sc1234freak

    Does anybody know how to sell charcoal?
     
  16. Offline

    420cool420

    How do you sell to a shop?
     
  17. This does not hook into iConomy5. You have linked to the wrong version.
     
  18. Offline

    Saul R.W

    Can admin shops use chests? even if you say they dont. I want players to have to go to the shop to buy it, not do it from anywhere.
     
  19. Offline

    jbMurdock

    You still have to place a sign for an admin shop, so your players still have to go there to buy / sell. You just don't need to place a chest underneath the sign.
     
  20. Offline

    koko13009

    Hi, i don't understand :/

    12:54:20 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    12:54:20 [INFO] [iConomy] Developed by: [Nijikokun]
    12:54:20 [INFO] [iConomyChestShop] version 2.74 initialized!
    12:54:20 [INFO] [iConomyChestShop] Permissions version 2.7.3 loaded.
    12:54:20 [INFO] [iConomyChestShop] Lockette version 1.3.7 loaded.

    and when i come in shop and trying to trade, i got this :

    12:55:52 [INFO] [iConomyChestShop] No economy plugin found!

    Anyone got an idea for fix this ?

    I already uninstall / reinstall both iconomy & chestshop.
     
  21. Offline

    Ludde112

    @Acrobot Your help was perfect but I still hav a big issue. The shop was successful created but when someone is trying to buy anything from the shop it still says ´´No economy plugin found´´. I have tried to re-download iConomy an installed it again but without success.
    Is iConomy Admin chest shop not compatible yet?
     
  22. Offline

    jbMurdock

    Well, my AdminShop does work well with iConomy 5. I created an "AdminShop" account (no spaces in name) and named my AdminShops EXACTLY the same. No problem at all. So please check if you really use a valid name for shop and account.
     
  23. Offline

    koko13009

    Thanks for your help, i just try your AdminShop (without space), and don't work :p
    same error

    13:28:25 [INFO] [iConomyChestShop] Koko created shop in Monde, x = 490, y = 76, z = -313, which first line is AdminShop and it buys/sells 1 TORCH, and the buy/sell line looks like: "B 1:1 S"
    13:28:27 [INFO] [iConomyChestShop] No economy plugin found!

    :'(
     
  24. Offline

    jbMurdock

    Also check if your ChestShop config is a valid yaml-file! I have had some problems with translating the "lang:"-section in the config. Just copy and paste here to check: http://yaml-online-parser.appspot.com/
     
  25. Offline

    koko13009

    Thx again Jb, i use the default config.yml in the zip :/
     
  26. Offline

    Unknown_1

    Yes I am having the same problem as koko13009 the strange thing is I am getting the same message from the Blacksmith plugin (http://forums.bukkit.org/threads/mech-blacksmith-v1-0-3-repair-your-equipment-740.11660/). But I can get MobBounty (http://forums.bukkit.org/threads/econ-mobbounty-v3-02-simple-mob-reward-733-780.10456/) to work without problem.

    Note I am using "BOSeconomy" and not "iConomy"

    My Plugin List:
    Code:
    Essentials 2.2.18
    HeroicDeath v1.8.1
    MobileAdmin v2.4.2
    dynmap v0.16.1
    MagicCarpet v1.5.5
    Stargate v0.4.8
    Permissions v2.7.3
    TimeAnnounce 1.2
    MultiVerse 1.6.4
    WorldGuard 5.0 alpha 10
    WorldEdit 4.4
    Whitelist v2.7
    yeditor 1.2b
    CommandHelper v2.0.2
    
    BigBrother 1.8 #443
    
    MobBounty 3.02
    iConomyChestShop  2.73
    BOSeconomy  0.6.2
    Blacksmith  1.0.3
    Config File:
    Code:
    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: true
    allowUsedItemsToBeSold: false
    stackUnstackableItems: false
    
    #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: false
    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: false
    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: false
    showMoneyAfterTransaction: false
    
    #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!"
     
  27. Offline

    Matt Gill

    Hey I'm having this problem, but is there a way to redownload iConomy without players losing their money? I need this set up for my new server so my members can start making shops.
     
  28. Offline

    Acrobot

    @Matt Gill
    Do a back-up of iConomy folder, and just re-download it. It will save, and if something is wrong, you can always restore it.

    @Unknown_1
    @koko13009
    Gonna check this, but anyway, I'm 60% done with ChestShop 3 (Yay, rebranding!)
     
  29. Offline

    Matt Gill

    Alright thanks I'll try it, but I never could seem to find the actual folder where that info saves in iConomy. Just the config and a Template YML file. Do you know where it saves?
     
  30. Offline

    Acrobot

    @Matt Gill
    It's in plugins/iConomy, and it saves to either:
    <databaseNameInConfig>.h2.db

    So, it's
    minecraft.h2.db in default config
     
  31. Offline

    Matt Gill

    So ya i backed it up just in case, but when I redownloaded it all the money was reset. So are you sure the minecraft.h2.db is it? If I copy that over will it fix it or what?
     

Share This Page