[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

    @RustyDagger
    That's why we should test this.

    What did you have on sign when it wasn't working?
    BTW, this was one of first shop plugins :)
     
  3. when i load the server, i am getting an error sasying cannot pass the player_rightclick event to the plugin....
    in-game symptoms are that noone can create a sign shop (even OP's), and because no signs are created, no sign-shops can be used.
    Anyone else finding these problems?

    I'm runnin iCCS 2.2, and CB 670
     
  4. Offline

    Geertje123

    Are the Permission lines outdated? because my members cant create shops. It says they dont have permission to do it
     
  5. Offline

    Acrobot

    @Geertje123
    They were changed, however they are listed in the first post.
     
  6. Offline

    Geertje123

    iConomyChestShop.shop.create - creating a shop
    iConomyChestShop.shop.buy - using the shop
    iConomyChestShop.shop.sell - selling to shops
    iConomyChestShop.shop.admin - admin
    iConomyChestShop.command.iteminfo - more in "ItemInfo" section

    i hope you dont mean these, because they dont work
     
  7. Offline

    Acrobot

    @Geertje123
    Yes, it's these...
    Are you sure they have worldguard permissions or anything?
     
  8. hello
    iam using CB 670 and the latest plugin build.
    i am getting this error and the plugin wont load:
    Code:
    21:12:21 [SEVERE] BLOCK_RIGHTCLICKED loading iConomyChestShop v1.0a6 fixed editi
    on (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
            at com.Acrobot.iConomyChestShop.iConomyChestShop.onEnable(iConomyChestSh
    op.java:59)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:578)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
            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)
     
  9. Offline

    Acrobot

    @Raphnika
    It's not the lastest plugin build...
    It's like... 1 month old...
    The newest one is on the bottom of my post.
     
  10. Offline

    Geertje123

    what kin
    d of worldguard permissions do they need then?
     
  11. Offline

    Acrobot

    @Geertje123
    No, I mean, if the terrain's WorldGuarded, people can't make shops there.
     
  12. okay now it works fine thank you
    btw i like your mod
     
  13. Offline

    Acrobot

  14. Offline

    City Builder

    Hi,
    For some reason none of my members nor I can sell moss stone. We've tried writing the name on the last line as Moss Stone Moss_stone moss stone moss_stone and finally just as number 48

    Any clues what's going on?
     
  15. Offline

    EwMeep

    For some reason, my members are getting the "Do not have premission". Everyone is given prems tho
     
  16. Offline

    icomeinpieces

    this is such an awesome plugin work well but a feature request allowing trading item for item instead of forcing money for items?
     
  17. Offline

    RustyDagger

    My sign was just any old sell sign.

    blank
    1
    0:3
    5

    And no matter what i do i can not sell to it unless I type /sell.
     
  18. Offline

    cda1987

    Hello,

    I have my permissions setup as such below
    Code:
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'lwc.protect'
                - 'mcmmo.commands.ptp'
                - 'mcmmo.commands.party'
                - 'mcmmo.commands.whois'
                - 'mcmmo.chat.partychat'
                - 'mcmmo.skills.*'
                - 'mcmmo.motd'
                - 'mcmmo.regeneration'
                - 'myhome.home.basic.home'
                - 'myhome.home.basic.set'
                - 'myhome.home.basic.delete'
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'falsebook.ic.standard'
                - 'falsebook.blocks.*'
                - 'falsebook.blocks.lift'
                - 'falsebook.blocks.area'
                - 'towny.town.claim'
                - 'towny.wild.*'
                - 'towny.nation.new'
                - 'towny.town.new'
                - 'mcmmo.commands.ability'
                - 'mcmmo.ability.mining'
                - 'mcmmo.ability.woodcutting'
                - 'mcmmo.ability.axes'
                - 'mcmmo.ability.excavation'
                - 'mcmmo.ability.swords'
                - 'mcmmo.ability.unarmed'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
    My chest config below

    Code:
    sell: true
    distance: 3
    position: 'DOWN'
    protection: true
    LWCprotection: true
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    sneakMode: true
    
    separatingLineAfterTransaction: false
    
    #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?
    #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
    
    # 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!
    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>.'
    
        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!"
    I place a chest put 20 glass in it
    Put sign on top fill it out like this http://www.terracraft.net/pic/chest1.png

    Click on and i get this message in chat
    http://www.terracraft.net/pic/chest2.png
     
  19. Offline

    Kainzo

    @Acrobot is there a way to prohibit certain items from being sold?

    Our server doesn't want stackable bread and currently if you buy bread from shops it auto-stacks it.
     
  20. Offline

    Acrobot

    @cda1987
    Code:
    distance: 3
    position: 'DOWN'
    
    There is your problem. You have it set up so the chest must be 3 blocks down.


    @Kainzo
    Not at the moment, but I'll do something about it.
     
  21. Offline

    City Builder

    Sorry to ask again but...

    Hi,
    For some reason none of my members nor I can sell moss stone. We've tried writing the name on the last line as Moss Stone Moss_Stone moss stone moss_stone and finally just as number 48

    Any clues what's going on?
     
  22. Offline

    Acrobot

    @City Builder
    No clue...
    Works for me, and it's MOSSY_COBBLESTONE by the way, but it should work with 48
     
  23. Offline

    City Builder

    ok we'll try that. I was under the assumption that it needs to be listed exactly as it appears in the tool tip.

    Oh and Mossy_Cobblestone does not fit on a sign
     
  24. Offline

    Acrobot

    @City Builder
    You don't have to write the whole name, for example, just "MOSSY" will do the trick.
     
  25. Offline

    City Builder

    ok. Thank you
    :)
     
  26. Offline

    Geertje123

    its not about making them, they can make shops. they cant buy from any shop!
    no errors in de terminal btw. i am running on 602 btw
     
  27. I'm not sure if this has been written before, but is there any simple way to make it BEHIND the sign, so you can put stuff in without them seeing it. I see the orientations you can do, but i would prefer not having to have all stores angled in the same direction...
     
  28. Offline

    Kainzo

    Awesome if you can - its upsetting a few people. Food stacking defeats the point of pvp if you can spam bacon/bread :(
     
  29. Offline

    Acrobot

    @Kainzo
    I am just making version without stacking, but unfortunately, I have found bukkit's bug...
     
  30. Offline

    RustyDagger

    I would love decimal support for the signs please i know its hard to add the format checking for i get that but the plugin would BE SOOO much better Atm I can't just sell 1 torch or 1 cobble I have to sell it in bundles and it sucks.

    Also earlier 2 day the plugin randomly stopped working had to reset the whole config to get it working :/ my colors....
    Cant tell you any more so far its been a 1 off thing.

    Also 2

    My selling has come right since removing MM Told U it was MM related bug.. the left clicking on the sign gets caught up in the MM sensor Sign activation and it seems to hog and kill the click event instead of passing it on when its finished. :p May want to chat to @Afforess about that.
     
  31. Offline

    MicroxD

    Dont work for me :(
    I have do all right!
    Look at the screen:
    [​IMG]
    My Permissions Config:
    My Chest Shop config:
    It looks like finish and funktional!
    But it dont work :(
    my friends press
    /buy
    or
    /sell
    and nothing can buy or sell..
    help me please!!!
     

Share This Page