[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

    @Camibus
    Hmm... That MIGHT be the problem, because if it's not created, it is the bug I must fix :/
    Try creating an empty longName.storage file in ChestShop folder.
     
  3. Offline

    Acrobot

    @Camibus
    Hmm... That MIGHT be the problem, because if it's not created, it is the bug I must fix :/
    Try creating an empty longName.storage file in ChestShop folder.
     
  4. Offline

    Camibus

    sorry to continually bother you, but what kind of file. like a txt file, yml? Or does the plugin recognize a .storage filetype
     
  5. Offline

    Acrobot

    @Camibus
    It's exactly longName.storage
    It's a text file, but with extension "storage"
     
  6. Offline

    Camibus

    okay, did what you said, added longName.storage to folder. Rebooted server, no change. Nothing is being written to file as it is still 0 bytes :(
     
  7. Offline

    Acrobot

    @Camibus
    Player with a long name has to create a shop. :)
     
  8. Offline

    Exidous

    no matter what i do, the players get the command they cant make that kind of shop. i got all the permission correct, even when i changed to chestshop 3 and added the correct permissions, my players still recieve that message. I am at a loss here.
     
  9. Offline

    Acrobot

    @Exidous
    Hmm...
    Could you paste your permissions configuration on pastebin.com?
     
  10. Offline

    FE1998

    Help, when other players try buying from my shop, it says " Shop owner doesn't want you to buy/sell here!" Help
     
  11. Offline

    Acrobot

    @FE1998
    Your 3rd line is wrong. It is probably something like
    B: 5 S:5
    when you need
    B 5:5 S
     
  12. Offline

    Lookatmego

    so can i get some help with the permission nodes?im using the v3
     
  13. Offline

    Acrobot

    @Lookatmego
    Yeah, but please paste the Permissions configuration on pastebin.com =)
    I cannot guess what's exactly wrong :)
     
  14. Offline

    flubbychannel

    Ive got a big problem . Since the update to 1.7.3 , i cant create chest shops. Ive got the bukkit build 1000 and i use minecraft 1.7.3
     
  15. Offline

    Acrobot

    @flubbychannel
    Do you get any errors in console?
    What do you mean by "can't create shops"?
     
  16. Offline

    knitemare


    Do:

    Dragonvine
    500
    5
    Ironingot / Ironblock / Ironore
     
  17. Offline

    Acrobot

    @knitemare
    (This was on Feb 13, 2011 :p)
    It was a bug, it was version (if I remember right) 0.1 :D
     
  18. Offline

    FE1998

  19. Offline

    Acrobot

    @FE1998
    Hmm...
    But what is on the sign?
     
  20. Offline

    FE1998

    FE1998
    64
    B $5:$3 S
    Dirt
     
  21. Offline

    Acrobot

    @FE1998
    That's the problem.
    You shouldn't have the $ signs in there.
     
  22. Offline

    FE1998

    Oh I think I know what's the problem. You can't add any $$$ right
     
  23. Offline

    FE1998

    Lol, Thanks Acrobot another error fixed. :D
     
  24. Offline

    flubbychannel

    Yes. Here is my Server Log : http://www.pastie.org/2286532 .
    but i dont understand why it sais that it cannot find it . it is there .
    I hope you can help me
     
  25. Offline

    Acrobot

    @flubbychannel
    Something is wrong with your bukkit.yml
    Either modify it, or delete it.
     
  26. Offline

    flubbychannel

    Thank you so much. IT WORKS ! :)
     
  27. Offline

    hippydan

    Hi there, thanks for the awesome plugin! I have a problem though, I'm trying to make it so the only way players gain money is by selling their gold bars to the server for X dollars. However I don't want the server's "account" to show up on BOSEconomy's /stats or /top5 commands. Is there any way to make it so the Adminshops have infinite money without giving them an account with money it in? Sorry if this is unclear. Thanks.
     
  28. Offline

    Cactus_Master

    Hey, I've been having a problem with the AdminShops. They always say "Seller has not enough money!"
    2011-07-29 21:52:09 [INFO] This server is running ←[32mCraftbukkit←[37m version
    ←[32mgit-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)←[0m
    2011-07-29 21:52:09 [INFO] This server is also sporting some funky dev build of
    Bukkit!←[0m
    Show Spoiler

    maxPrice: -1
    minPrice: -1
    #maxPrice - maximum buy/sell price
    #minPrice - minimum buy/sell price

    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 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: 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_price: "This price is too high/low!"
    Incorrect_item_amount: "The item amount you specified is invalid!"

    I use Simple Server Wrapper for permissions, but I'm set as an OP so I can do everything of that sort.
    Nothing happens in the console when it gives me that message.The only things that I can see that are related to the plugin that are displayed during loading are:
    Show Spoiler

    --------------
    2011-07-29 22:02:53 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] t
    ransIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-29 22:02:53 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin
    .java.PluginClassLoader]
    --------------
    2011-07-29 22:02:53 [INFO] Entities enhanced[0] subclassed[1]
    2011-07-29 22:02:55 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-07-29 22:02:55 [INFO] [iConomyChestShop] BOSEconomy version 0.6.2 loaded.
    --------------


    What have I been doing? Nothing that should interfere with this plugin.
    Thanks for any help.

    EDIT: I've just screwed with something (the server shut down strangely after I tried to copy & paste with ctrl+C [forgot to not use that on there]) and now when I try to sell to admin shops it just refuses to buy from me in general, and on the interface it says:
    Show Spoiler

    2011-07-29 22:11:28 [INFO] [iConomyChestShop] version 2.75 distabled!

    2011-07-29 22:11:29 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-07-29 22:11:29 [INFO] [iConomyChestShop] BOSEconomy version 0.6.2 loaded.

    2011-07-29 22:16:12 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NullPointerException


    EDIT2: Restarted it again, and now on loading it says:
    Show Spoiler

    2011-07-29 22:21:08 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] t
    ransIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-29 22:21:08 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin
    .java.PluginClassLoader]
    2011-07-29 22:21:08 [INFO] Entities enhanced[0] subclassed[1]

    Maybe the progression of the error will help, who knows. I do know that it is most likely my fault this is happening.
     
  29. Offline

    hippydan

    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

    Server needs an account name, and it needs to have money. Hope this helps, as I was just experiencing the same problem.
     
  30. Offline

    Cactus_Master

    Yeah, that fixed it. Thanks! :D
    Although that accidental ctrl+C still screwed all of my plugins up somehow. Who knows...
     
  31. Offline

    Brody Romhanyi

    i hav a admin shop with the set premissions but ther ppl cant sell anything too it HELP ME ASAP
     

Share This Page