[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

    @bluejack404
    Hmm, that doesn't help, but I would report it on leaky.bukkit.org, as a bukkit EBEAN issue.

    @Zeroi9
    o.0
    Weird, really. Do you have "sneakMode: true" in your config.yml?
     
  3. Offline

    Acrobot

    @bluejack404
    Just thought, that this may be a temporary solution:
    turn "useDB:" in config.yml to "false", so it looks like "useDB: false"

    Then, use WinRAR or something to unpack the .jar file and in plugin.yml delete the like that says "database: true".
    Then, put it back together to the .jar
     
  4. Offline

    andune

    Using the latest version 2.7 (told ya I was eager :) ), when I try to setup a shop now it says:

    "[Shop] You have no chest set up!"

    I've tried this over both single and double chests, as well as both locked and not locked (/cprivate). I'm doing this as admin so I have full permissions.

    New bug? I don't see any errors in the log file. If it works for you and you need my full plugin readout, let me know.

    ** update ** I seem to be able to setup AdminShop's fine, it's just when I leave the first line blank to create my "own" shop that I get the above error message.
     
  5. Offline

    Linki

    i'm having the same problem as morganm
     
  6. Offline

    Acrobot

    @morganm
    @Linki
    Hmm, try setting "position" in config to "DOWN", and tell me if it works.
    It actually should works just in radius of one block, so it may be the fault.
    BTW, could you send me your config?
     
  7. Offline

    Linki

    ok i have tested what you said and im still getting this error.
    But i noticed, that creating an Admin Shop works.
    BTW i have the default config.
     
  8. Offline

    Puremin0rez

    Is there anyway to get my hands on 2.54 until Bukkit fixes the issue? This issue is making my servers clock very slow :(
     
  9. Offline

    Acrobot

    @Linki
    Still, can you give me your current config file?
     
  10. Offline

    andune

    Same as @Linki, I have a fairly vanilla config. Uploading it here for your persual. Here's a list of my plugins as well as a list of the iConomyChestShop plugin directory. Btw, nothing here has changed since the 2.6 release of of iConomyChestShop, so 2.6 was working fine (except for the double-chest bug) and now 2.7 is broken as mentioned before.

    Code:
    10:28 [plugins] morganmc> ls -1 *.jar
    AdminMode.jar
    BlocksOnGlass.jar
    bLog.jar
    CraftBukkitUpToDate.jar
    EssentialsGeoIP.jar
    EssentialsGroupBridge.jar
    EssentialsGroupManager.jar
    Essentials.jar
    EssentialsProtect.jar
    EssentialsSpawn.jar
    FoundDiamonds.jar
    HeroChat.jar
    Honeypot.jar
    iConomyChestShop.jar
    iConomy.jar
    LogBlock.jar
    LoginQueue.jar
    LWC.jar
    mcbans.jar
    MCMA_compat.jar
    MotherNature.jar
    MoveCraft.jar
    MyWarp.jar
    Residence.jar
    Superpickaxe.jar
    TelePlusPlus.jar
    WorldEdit.jar
    WorldGuard.jar
    10:28 [plugins] morganmc> cd iConomyChestShop
    10:29 [iConomyChestShop] morganmc> ls -l
    total 20
    -rw-rw-r-- 1 minecraft minecraft 5514 May  8 05:09 config.yml
    -rw-rw-r-- 1 minecraft minecraft   95 May  2 17:37 footer.txt
    -rw-rw-r-- 1 minecraft minecraft  219 May  4 16:07 header.txt
    -rw-rw-r-- 1 minecraft minecraft    0 May 10 10:23 iConomyChestShop.db
    -rw-rw-r-- 1 minecraft minecraft  155 May  2 17:37 row.txt
    10:29 [iConomyChestShop] morganmc>
    
    ps. I changed "config.yml" to "config.txt" to get past the upload filter, but it's attached now.
     

    Attached Files:

  11. Offline

    Acrobot

    @morganm
    Hmm, I will test it now. How exactly are you placing your chests?
     
  12. Offline

    andune

    And if it helps, here's a diff between my current config and the one that came packaged with 2.7:

    Code:
    10:33 [iConomyChestShop] morganmc> diff config.yml ../../incoming/tmp/iConomyChestShop/config.yml
    4c4
    < position: 'DOWN'
    ---
    > position: 'ANY'
    10c10
    < #position - Position of the chest, relative to the sign. goo.gl/YItRO
    ---
    > #position - Position of the chest, relative to the sign. Any for anything in radius of 1 block, other: goo.gl/YItRO
    29c29
    < stackUnstackableItems: false
    ---
    > stackUnstackableItems: true
    35c35
    < useDB: false
    ---
    > useDB: true
    40c40
    < #howLongToStoreInformationInDB - How long do you want to store information about transactions in database? (In seconds)
    ---
    > #howLongToStoreInformationInDB - How old the transation must be before being deleted? (In seconds)
    121c121
    <     Incorrect_item_amount: "The item amount you specified is invalid!"
    ---
    >     Incorrect_item_amount: "The item amount you specified is invalid!"
    
    Since I assume you aren't having the same error as us, I'll just copy the new config into place and see how that works. (something I don't ordinarily do when updating plugins so as to not lose my customizations)
     
  13. Offline

    Acrobot

    @morganm
    Sure :)
    And thanks for the diff, I know I should change one thing in config in zip now :)
    "stackUnstackableItems:" should be deleted.

    EDIT: This little, tiny bug... I hate it...
     
  14. Offline

    Acrobot

    @morganm
    Seems like I have a problem with "DOWN" too, but not with "ANY"
     
  15. Offline

    andune

    I switched to the default config that came with 2.7 and I'm getting the same error still.
     
  16. Offline

    Acrobot

    @morganm
    Wait, I see the error. Accidentally, in "if", I made admins (only admins) not able to set up shops...
    Gonna upload 2.71 in few minutes.

    EDIT: Fixed
     
  17. Offline

    Puremin0rez

    Why is this plugin complaining about an sqlite error if I'm not using the Database option?

    & is there any chance of an updated iConomy 4.6 version - Most of my iConomy plugins have not updated for 5.0.
     
  18. Offline

    Acrobot

    @Puremin0rez
    SQlite error - I bet it's not an error, but if you're not using database option, it still needs to be declared as using database, as you may turn on the database in the config back. (If something MAY use database, it must be declared)

    Updated version -
    okay
     
  19. Offline

    z0n3out

    Question, since the sign can be placed anywhere around the chest, can 1 chest be assigned to multiple signs?
     
  20. Offline

    Puremin0rez

    Is there anyway to change the path for where it reads the sqlite jbdc from? It's trying to use my /tmp/ folder but I don't think I have permission for /tmp/ since it's not in my Bukkit Home Directory. The rest of my plugins using sqlite use the /lib/ folder inside of the Bukkit Home Directory.
     
  21. Offline

    Acrobot

    @z0n3out
    Yes, it can.
    However, there is protection from unauthorised placing the signs.

    @Puremin0rez
    I don't even use SQlite jdbc.
    I use Ebean, which is (by SQlite) implemented in bukkit, however, it can be changed in bukkit.yml
     
  22. Offline

    z0n3out

    That is... GENIUS
    (sorry for the caps, had to emphasize a little)
     
  23. Offline

    LithiumFox

    There is one tiny issue i have with your permissions thing. I tried to block the "admin" permission and it blocks us entirely from making shops. We can still use /iteminfo, and can buy a shop, but we can't build a normal shop

    I wanted to block that from admins so they couldn't look into people chests and take their stuff. =/
     
  24. Offline

    Acrobot

    @LithiumFox
    Yes, I fixed it in version 2.71, sorry 'bout that :/

    Also, just uploaded updated iConomy 4 version.
     
  25. Offline

    Ardawen

    I'll set up a testing team tnx anyways

    Next thing, i know this might be tricky but it would be awesome if we could be able to sell dyes and dyed wool separated (so pink wool as pink wool for example)

    I that possible in the future
     
  26. Offline

    Acrobot

    @Ardawen
    You can already?
    ItemID:dataValue
    or
    ItemName:dataValue
     
  27. Offline

    DannyCare


    Thanks man! Appreciated. I got a little confused, probably an idea to elaborate on the documentation/post to save answering the same question :) Thank you!
     
  28. Offline

    andune

    @Acrobot

    Success with 2.71! Thank you so much for your work on this plugin! I'm looking forward to seeing how well it works out on my server, I think the players will like it. :)
     
  29. Offline

    karsten1994

    I had the same problem today but it is fixed now thx for it :D
     
  30. Offline

    Papareborn

    Did the permission nodes change? I really want this plugin, but it seems that nobody can make shops, because they don't have permission. Yet I gave them all the nodes they needed.

    Any help?
     
  31. Offline

    Bharel

    What CraftBukkit build have you got? 766
    Have you got a Permission plugin, if yes, which one? 2.7.2 pheonix (theyeti) I'm the head admin... '*'
    iConomyChestShop's config file (It's located in /plugins/iConomyChestShop/config.yml)
    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: false
    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 use the default MinecartMania's chest behavior? (Warning, stacks food/etc. NOT RECCOMENDED)
    
    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
    #separatingLineAfterTransaction - Do you want to show a line in the chat after transaction?
    
    #Messages:
    showOutOfStock: false
    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 anything pop in the console during loading/transaction? Nope
    What have you been doing? Trying to set up a shop, and it kept saying: "You have no chest set up" even though I did have...
     

Share This Page