[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


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!
    I've put a LOT of effort into making this plugin,
    you can donate if you appreciate my effort =)

    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    - 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

    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.

    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/

    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:

    (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:

    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:
    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)

    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)

    If you want to delete your old shop, simply SNEAK and destroy the sign.
    It's that easy =)

    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?

    Changelog (open)

    Changelog can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/
  2. Offline


    Permission nodes changed, from iConomyChestShop.shop.use to iConomyChestShop.shop.buy
  3. Offline


    iI know and I use iConomyChestShop.shop.buy
  4. Offline


    Oh I found out seems that my bukkituptodate haven't updated your plugin so I got a old version
  5. Offline


    Hey Guys! I translated your config file into German:

    sell: true
    distance: 1
    position: 'DOWN'
    protection: true
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    #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
    # 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.
        prefix: '&a[Shop] &f'
        Somebody_sold_items_to_your_shop: '<seller> verkaufte <amount> <item> für <cost> zu deinem Laden!'
        Somebody_bought_items_from_your_shop: '<buyer> kaufte <amount> <item> für <cost>!'
        Your_shop_is_out_of_stock: 'Dein <item> Laden ist ausverkauft'
        You_cannot_use_your_own_shop: "Du kannst nichts aus deinem Laden kaufen!"
        You_bought_items: 'Du hast <amount> <item> von <owner> gekauft.'
        Your_inventory_is_full: 'Dein Inventar ist voll!'
        You_have_got_not_enough_money: "Dein Geld reicht nicht aus!"
        Shop_is_out_of_stock: 'Dieser Laden ist ausverkauft!'
        You_have_not_enough_items: 'Du hast nicht genug Items um sie zu verkaufen!'
        You_sold_items: "Du hast <amount> <item> für <cost> an <owner>'s Laden verkauft."
        Chest_is_full: 'This chest is full!'
        Seller_has_not_enough_money: "Der Verkäufer hat nicht genug Geld!"
        Seller_has_no_account: "Der Account des Verkäufers existiert nicht!"
        No_selling_to_this_shop: "Der verkäufer möchte nicht, dass du hier verkaufst!"
        No_buying_from_this_shop: "Der Verkäufer möchte nicht, dass du hier kaufst!"
        Your_balance: 'Nach dem Handel hast du noch <money>.'
        Shop_is_created: 'Dein Laden wurde erfolgreich erstellt!'
        Shop_cannot_be_created: "Du hast keine Kiste ausgewählt!"
        Shop_was_LWC_protected: "Dein Laden wurde erfolgreich mit LWC geschützt."
        Mode_changed_to_sell: 'verkauf Modus aktiviert.'
        Mode_changed_to_buy: 'Kauf Modus aktiviert.'
        You_tried_to_steal: "Man klaut nicht!"
        iteminfo: "&aItem ID's und Namen:"
        incorrectID: "Falsche Item ID!"
  6. Offline


    Yes, but it's not exactly what i want.

    For example, i have a group "Commerce" who can create shop ( .shop.create )
    All user can buy or sell ( shop.buy, shop.sell )

    MrX1 is in Commerce group, he create a shop
    MrX2 is in Default group, he buy in the MrX's shop

    But now, MrX1 is not the Commerce group, and his shop is always create
    If MrX3 (default group) want to buy in the MrX1's shop, he can.
    But i don't want, because MrX1 is not in the "Commerce" group...
  7. Offline


  8. Offline


    French translate :
    lang: #French
        prefix: '&a[Shop] &f'
        Somebody_sold_items_to_your_shop: '<seller> a vendu <amount> <item> pour <cost> a votre echoppe !'
        Somebody_bought_items_from_your_shop: '<buyer> a achete <amount> <item> pour <cost> !'
        Your_shop_is_out_of_stock: 'Vous n''avez plus de <item> dans votre echoppe !'
        You_cannot_use_your_own_shop: "Vous ne pouvez pas utiliser votre propre echoppe !"
        You_bought_items: 'Vous venez d''acheter <amount> <item> a <owner>.'
        Your_inventory_is_full: 'Votre inventaire est rempli !'
        You_have_got_not_enough_money: "Vous n'avez pas assez de monnaie !"
        Shop_is_out_of_stock: 'Cette echoppe est vide !'
        You_have_not_enough_items: 'Vous n''avez pas assez d''objets a vendre !'
        You_sold_items: "Vous avez vendu <amount> <item> a <cost> a l'echoppe de <owner>."
        Chest_is_full: 'Ce coffre est plein !'
        Seller_has_not_enough_money: "Le vendeur n'a pas assez de monnaie !"
        Seller_has_no_account: "Le compte du vendeur n''existe pas !"
        No_selling_to_this_shop: "Le proprietaire du magasin ne veut pas que vous vendiez ici !"
        No_buying_from_this_shop: "Le proprietaire du magasin ne veut pas que vous achetiez ici !"
        Your_balance: 'Vous avez maintenant <money>.'
        Shop_is_created: 'Votre echoppe a bien ete creer !'
        Shop_cannot_be_created: "Vous n'avez pas mis de coffre !"
        Shop_was_LWC_protected: "Votre echoppe a bien ete protege avec LWC."
        Mode_changed_to_sell: 'Mode vente !'
        Mode_changed_to_buy: 'Mode achat !'
        You_tried_to_steal: "On ne vole pas !"
        iteminfo: "&aID de l'objet et nom:"
        incorrectID: "ID incorrecte !"
    Tested: it works
  9. Offline


    Great Plugin, but cant use /sell or /buy
  10. Offline


    Did you set the Permissions?
    Do other command aliases, like
    /chest buy
    /chest sell

  11. Offline


    You need to edit your permission file and add to user group :
  12. Offline


    Thanks, but I am admin, but still does not work!
    /chest sell or /chest buy doesnt work too
  13. Offline


    Try TURNING OFF the server, deleting the plugin and re-installing it?
  14. Offline


    Sorry my english is ugly :(

    Last chance for me ^^ =>
    I don't want a "Default" user can use a shop owned by a user who doesn't have permissions "shop.create" (Not a trader)
    But "Default" user can use a shop owned by a user who have permissions "shop.create" (Trader)

    "Default" user have permissions "shop.buy" and "shop.sell"

    PS: Sorry for my last post, "Commerce" = "Trader"
  15. Offline


    If a user have not "shop.create" he can't create shop and so the "Default" user can't use it ...
  16. Offline


    Wish I could, but that is currently all I got from it.
  17. Offline


    No, I mean, it shows up something before it :)

    Hmm, I think it is already like that, only people with Permissions node iConomyChestShop.shop.create can create shops => Traders, other people can't.
  18. Offline


    I've been getting the error:

    15:43:50 [INFO] Starting minecraft server version Beta 1.4
    15:43:50 [INFO] Loading properties
    15:43:50 [INFO] Starting Minecraft server on *:25565
    15:43:50 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-
    g4c7a9e7-b617jnks (MC: 1.4)
    15:43:50 [INFO] Preparing level "world"
    15:43:50 [INFO] Preparing start region
    15:43:50 [INFO] 144 recipes
    15:43:50 [INFO] [Permissions] version [2.5.2] (Phoenix) was Initialized.
    15:43:51 [INFO] [iConomy] Configuration Integrity Start:
    15:43:51 [INFO] - System.Currency_Plural is null or missing, Defaulting to:
    15:43:51 [INFO] - System.Interest.Percentage is null or missing, Defaulting
    to: 0.0
    15:43:51 [INFO] - System.Interest.Announce is null or missing, Defaulting to
    : false
    15:43:51 [INFO] [iConomy] Configuration Integrity End.
    15:43:51 [INFO] [iConomy] Logging is currently disabled.
    15:43:51 [INFO] [iConomy] Error on version check:
    15:43:51 [SEVERE] java.lang.NumberFormatException: multiple points
    15:43:51 [SEVERE] at sun.misc.FloatingDecimal.readJavaFormatString(Unknown
    15:43:51 [SEVERE] at java.lang.Double.parseDouble(Unknown Source)
    15:43:51 [SEVERE] at com.nijiko.coelho.iConomy.iConomy.update(iConomy.java
    15:43:51 [SEVERE] at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.ja
    15:43:51 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    15:43:51 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    15:43:51 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    15:43:51 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    15:43:51 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    15:43:51 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServe
    15:43:51 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServe
    15:43:51 [SEVERE] at net.minecraft.server.MinecraftServer.d(MinecraftServe
    15:43:51 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    15:43:51 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    15:43:53 [INFO] [iConomy] v4.65 (Kenzi) loaded.
    15:43:53 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    15:43:53 [INFO] [iConomyChestShop] version 2.01 initialized!
    15:43:53 [INFO] [iConomyChestShop] iConomy version 4.65 loaded.
    15:43:53 [INFO] [Permissions] version [2.5.2] (Phoenix) loaded
    15:43:53 [SEVERE] Could not pass event PLUGIN_ENABLE to iConomyChestShop
    java.lang.NoSuchFieldError: BLOCK_PLACED
    at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.jav
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    at com.Acrobot.iConomyChestShop.iConomyChestShopPluginListener.onPluginE
    at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.j
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    15:43:53 [INFO] [mcMMO] Permissions enabled.
    15:43:53 [INFO] mcMMO version 0.9.15 is enabled!
    15:43:53 [INFO] [iConomy] hooked into Permissions.
    15:43:53 [INFO] [iConomyChestShop] Permissions version 2.5.2 loaded.
    15:43:54 [INFO] [MYHOME]: 3 homes loaded
    15:43:54 [INFO] [MYHOME] Permissions enabled.
    15:43:54 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    15:43:54 [INFO] MyHome 1.9.2 enabled
    15:43:54 [INFO] Nether v1.1 enabled
    15:43:54 [INFO] [Spawnr] v1.3b has been enabled
    15:43:54 [INFO] WorldEdit 4.3 enabled.
    15:43:54 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin
    for permissions.
    15:43:54 [INFO] Done (0.401s)! For help, type "help" or "?"
    I'm running CraftBukkit 612.
    Permissions 2.5.2.
    World name: world
    Permissions config name: world
    The iConomyChestShop config is in the correct folder.
    The config has not been changed, I just re-downloaded.
    The error appears right when I start up the server.
  19. Offline


    It seems like your Permissions plugin and iConomy is outdated/ your CB is outdated.
  20. Offline


    I cant get it to work; I am placing a sign like it shows in the first of the tutorial videos and my conifg is as follows;

    sell: false
    distance: 2
    position: 'DOWN'
    protection: true
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    #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
    # 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.
        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>.'
        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!"
    and heres my permissions

        default: true
        info: {prefix: '&7[No-Clan]&f', suffix: '', build: true}
        inheritance: null
        permissions: [iConomy.payment, iConomy.rank, iConomy.list, iConomyChestShop.shop.create, iConomyChestShop.shop.buy, iConomy.access, herochat.create, war.player, commandbook.who, commandbook.motd, commandbook.rules, commandbook.msg, commandbook.whereami, commandbook.clear, commandbook.whereami.compass]
  21. Offline


    What exactly does your sign look like?
    If the 3rd one is just one number, please look at the first post.
  22. Offline


    I've tried;


    (buy/sell 1 cobblestone for 5 coins each)

    ive tried;


    doesnt work

    ive tried;


    doesnt work

    youre welcome to log on and see; pvp.battle-craft.net is the IP, no whitelist, and ill teleport you to me
  23. Offline


    is the one thats "attached" the right, updated download link?
  24. Offline


  25. Offline


    its up and freshly installed, lets give it another go
  26. Offline


    *hello ! First thanks for the plugin, great work !

    I've a problem : i have to reload manually the item.txt from odditem (/odditem reload) each time i reload all the plugins or each time i reboot the server...

    for exemple : if i use /reload -all : All my iConomyChestShop Signs are inactive.

    Is this a known issue? Is there a way to fix it?

    (sorry for my english)
  27. Offline


    @Latros is your sign over your chest? given that config it would need to be.
  28. Offline


    would it be possible to set up multiple signs per chest, say 1 sign nsew of a chest with a different item on it?
  29. Offline



    And I'm helping him :)
    EDIT: It was a custom version of CB that caused the fault!
    No, sorry :)
  30. Offline


    ok, so how would i set that up given the direction config?
  31. Offline


    Oh, didn't realize what you had in the post, sorry :p
    You can place 2 signs near doubleChest, but not anywhere else at the moment.

Share This Page