[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

    dvdbrander

    Admin:
    default: false
    permissions:
    - '*'
    inheritance:
    - semiadmin
    info:
    prefix: '&4'
    build: true
    suffix: ''

    Erm, stupid question maybe, it works with essentials groupmanager, doesn't it?
     
  3. Offline

    Acrobot

    @dvdbrander
    If you have the FakePermissions, then it should work.
     
  4. Offline

    imaxorz

    That seems right, are your other admin only commands working? Like for iConomy? If no then it is something with permissions. If yes it's something else. Try /money set [player] $$$$ for example.
     
  5. Offline

    dvdbrander

    works... I've got teamviewer, if you want to check things I can send my login over pm.
    edit:
    wait a moment... fake permissions...
    hmmm...
     
  6. Offline

    imaxorz

    No idea.

    All I can say is make sure first line says "admin shop" without the quotes and that its spelled right. If you have it any another way it won't work, and say "that account doesn't exist".

    [​IMG]
     
  7. Offline

    dvdbrander

    hmmm, haven't got fakepermissiosn.jar
    where can I download it?
    [​IMG]
     
  8. Offline

    imaxorz

  9. Offline

    Acrobot

    imaxorz likes this.
  10. Offline

    dvdbrander

    farg it...........
    An image is worth 1k words :p
     
  11. Offline

    Scott

    I had someone named "EvilGhost" come into the server over the weekend and exploited the signs changing the buy/sell prices, I'm not sure how he did it but he knew what he was doing. Anyone have any ideas?

    Edit: I found this in the logs around the time he was doing his thing, hope it helps.

    Code:
    2011-04-30 18:45:11 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NumberFormatException: For input string: "B 1"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:93)
        at org.bukkit.plugin.java.JavaPluginLoader$29.execute(JavaPluginLoader.java:376)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:900)
        at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  12. Offline

    Acrobot

    @Scott
    Oh snap...
    What version of iConomyChestShop are you using?
    It was fixed, I think...

    If not, please wait, 3.0 is almost done.
     
  13. Offline

    Scott

    I was using 2.52 at the time, I'm now using 2.54.
     
  14. Offline

    Acrobot

    @Scott
    It was fixed in 2.54...
     
  15. Offline

    DutchxJapie

    When i try to make a shop it give me this error:
    you have no chest set up.
    but i realy have a chest and the permissions to make a shop!
    how can i fix that problem?
     
  16. Offline

    Acrobot

    @DutchxJapie
    What's your iConomyChestShop's config.yml?
     
  17. Offline

    DutchxJapie

    sell: true
    distance: 5
    position: 'DOWN'
    protection: true

    LWCprotection: true
    signLWCprotection: true
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    sneakMode: false
    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

    @DutchxJapie
    distance: 5

    Is your chest 5 blocks down the sign?
     
  19. Offline

    digga

    Hi,
    I Installed iConomy 5.0 and now i tried IconomyChestShop. I downloaded the version for 5.0 and uploaded it, but when i look into my server log, there is only iConomy but now iConomy Chestshops. It just dont load the Plugin, but why?
     
  20. Offline

    Acrobot

    @digga
    I have no clue :/
    Could you send me your server.log?
     
  21. Offline

    xKaraktorx

    Hi,
    I have iConomy 5.0 and iConomyChestShop for this version. iConomy works, but when I try to use the chest to sell I get an error: "No economy plugin found". Can you help me please? :S
     
  22. Offline

    Acrobot

    @xKaraktorx
    I'm going to test it now.

    EDIT: No clue :/

    Code:
    21:04:28 [INFO] [iConomy] Logging is currently disabled.
    21:04:28 [INFO] [iConomy] v5.0 (Eruanna) loaded.
    21:04:28 [INFO] [iConomy] Developed by: [Nijikokun]
    21:04:28 [INFO] [iConomyChestShop] version 2.55 initialized!
    21:04:28 [INFO] [iConomyChestShop] iConomy version 5.0 loaded.
    21:04:28 [INFO] [Permissions] version [2.5.5] (Phoenix)  loaded
    21:04:28 [INFO] [iConomy] hooked into Permissions.
    21:04:28 [INFO] [iConomyChestShop] Permissions version 2.5.5 loaded.
    21:04:28 [INFO] [iConomyChestShop] LWC version 2.31 loaded.
    21:04:28 [INFO] [iConomyChestShop] Permissions version 2.5.5 loaded.
    
    And it works...

    Can you please send server.log to me?
     
  23. Offline

    xKaraktorx

  24. Offline

    Acrobot

    @xKaraktorx
    Oh, you downloaded the normal version, for 4.6.5, instead of 5.0.
     
  25. Offline

    xKaraktorx

    Where can i find the newest version?
     
  26. Offline

    Acrobot

  27. Offline

    xKaraktorx

    Ok thank you. There is no error yet. But when i try to sell (/sell) it say: "You can't sell to shops". ... Can you help me?
     
  28. Offline

    Acrobot

    @xKaraktorx
    Do you have
    iConomyChestShop.shop.sell
    permission node?
     
  29. Offline

    NotYetRated

    Is there a way to prevent this scenario.

    Bob creates a chest in Toms name. Tom didnt want the chest, but Bob did it anyways.

    Bob makes the chest BUY cobbletsone for 1000000 money per item. Bob then sells his cobble to Toms chest and steals all his money. Fin.
     
  30. Offline

    imaxorz

    I don't know how you would create a chest with someone elses name in the first place. The plug in doesn't let you do that. (Unless you are an admin)
     
  31. Offline

    DutchxJapie

    no i thought that you can sell from 5 blocks away!
    Ty!
     

Share This Page