[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

    Emolk

    ok, also how do you sell and buy GOLD IGNOTS? it dosent work for me
     
  3. Offline

    Chrisbeee

    Where are the Item names?
     
  4. Offline

    Acrobot

  5. Offline

    Chrisbeee

    Since I'm not using Item ID's
    [MERGETIME="1299975623"][/MERGETIME]
    Ty
     
  6. Offline

    Emolk

    ok, so its GOLD_INGOT not GOLD INGOT thanks
    BTW @Acrobot what texture pack?
     
  7. Offline

    Acrobot

    @Emolk
    Modified Aza's Arid + DoF shader + Bump Maps

    By the way, in the next release I'll add ignoring spaces, so you can put "Gold ingot" instead of "gold_ingot".
     
    Emolk likes this.
  8. Offline

    Emolk

    ok, thanks so much for your help :)
     
  9. Offline

    Kainzo

    2011-03-12 22:55:58 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:542)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:851)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-12 22:55:59 [INFO] Warlord2150 lost connection: disconnect.quitting

    Seeing that message on the latest / 531

    any thoughts?
     
  10. Offline

    Acrobot

  11. Offline

    mythcaptor

    For me, the config file isn’t getting created. Any thoughts?
     
  12. Offline

    Acrobot

    It isn't getting created.
    You need to download the .zip and extract it to /plugins
     
  13. Offline

    Dryshade

  14. Offline

    Acrobot

  15. Offline

    Paic

    Ok, already work fine. But, for traduction in config.yml, emphasis is impossible ? (Yeah, I'm French! [​IMG])
     
  16. Offline

    Lucried

    when i try to do this, it says [Shop] Sign is in old format, please update it! why lol?
     
  17. Offline

    Acrobot

    Place a sign in a new format?
    Look into main post.
     
  18. Offline

    Lucried

    I'm kinda new into the plugins stuff, what is the new format :/
     
  19. Offline

    Acrobot

    "You should place a sign above the chest.

    Then, the syntax on the sign is
    Code:
    It will automatically place your name here
    Amount
    Price for items you sell:Price for items you buy
    Item's name (find more in config section - useID and noID)
    like
    Code:
    (blank)
    1
    10:5
    DIRT
    It will then change to
    Code:
    AcrobotPL
    1
    B 10:5 S
    DIRT
    "
     
  20. Offline

    Lucried

    i tried that and it doesn't work when i right click on it,
    like
    1:
    2: 4
    3: 3:2
    4: STONE
    _
    and nothing happens.
     
  21. Offline

    Acrobot

    What's your config?
    What's the console output?
     
  22. Offline

    Lucried

    nevermind, i'll just not add this lmao.. too confusing T__T..
     
  23. Offline

    cranias

    Hey Acrobot, I made a shop but when other people come to try to buy stuff, it says on their screen, "[Permissions] You can't buy from shops!"

    Here is my world.yml file for permissions
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'myhome.home.*'
                - 'magiccarpet.mc'
                - 'iConomyChestShop.shop.create - creating a shop'
                - 'iConomyChestShop.shop.use - using the shop'
                - 'iConomyChestShop.shop.sell - selling to shops'
                - 'iConomy.payment,iConomy.acces'
                - 'iConomy.rank'
                - 'iConomy.list'
                - '/locate'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'myhome.*'
                - 'magiccarpet.mc'
                - 'iConomyChestShop.shop.create - creating a shop'
                - 'iConomyChestShop.shop.use - using the shop'
                - 'iConomyChestShop.shop.sell - selling to shops'
                - 'iConomy.payment,iConomy.acces'
                - 'iConomy.rank'
                - 'iConomy.list'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    ##
    # Users denote which users are included in which group.
    # TheNo1Yeti is in the Admin group
    # Herpina is a member of the Moderator group but also has access
    # to the herp.derp permissions
    # Derpina is a member of the admin group but does not have access
    # to the derp.derp permission node
    # Users can also have a prefix and suffix as seen with Herpina
    ##
    users:
        cranias:
            group: Admins
            permissions:
                - 'myhome.*'
                - 'iConomyChestShop.shop.create - creating a shop'
                - 'iConomyChestShop.shop.use - using the shop'
                - 'iConomyChestShop.shop.sell - selling to shops'
                - 'iConomyChestShop.shop.admin - admin'
                - 'iConomy.payment,iConomy.acces'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'magiccarpet.mc'
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'myhome.*'
        Derpina:
            group: Admins
            permissions:
                - 'myhome.*'



    Please help me! [​IMG]
     
  24. Offline

    Acrobot

    You shouldn't include the " - creating a shop" etc,
    just the node, like
    ''iConomyChestShop.shop.create'
     
  25. Offline

    cranias

    Thank you so much, Acrobat. Your amazing advice helped and people are buying lots a diamonds from me! [​IMG]
     
  26. Offline

    havena

    how to disable sell option on sign? i set sell false on config but sign require a sell price.
    thx a lot
     
  27. Offline

    Omen

    @Acrobot

    i have a few suggestions and hope you consider them.

    suggestion #1: for servers that do not allow buying, or if you are not buying items "10:0" can you emit ":0 S"? Its distracting and confusing unless you know exactly what it means.

    suggestion #2: Can you let us add a prefix/postfix to the cost? Like: $4 and a prefix/postfix to the piece count?

    So our signs are more human like?

    OmenLW​
    $5​
    64 pc (or pieces)​
    Cobblestone​
    Then we wont need descriptions signs explaining what we are selling.​
    suggestion #3: item aliases. can we have a way to give aliases to items? one example is STONE. I am selling "smooth stone" but the sign places the name fo rme, and names it STONE. It would be cool to have a file with "itemid=Alias".​
    4=Cobble Stone​
    355=Bed​
    1=Smooth Stone​
    266=Gold Bar​
    If no alias exists, use whatever bukkit thinks you should use. This way we can make up our own names for items that fit our city.​
    Thanks!​
     
  28. Offline

    Emolk

  29. Offline

    itorrent

    Names already works :)

    Just set noID=true (in the config file) and the sign will sense whats inside the chest beneath it ;) (u must have something in it though for this to work.)
     
  30. Offline

    Lucried

    Dammit this plugin is too cool i need to have it haha!
    I got iconomy and your plugin, and for permission im using GroupManager.
    and here is the yml


    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
                - 'iConomy.rank'
                - 'iConomy.list'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
                - 'iConomy.payment,iConomy.acces'
                - 'iConomy.rank'
                - 'iConomy.list'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    users:
        Lucried:
            group: Admins
            permissions:
            - '*'
        ahitscynthia:
            group: Admins
            permissions:
            - '*'
        lVlodman:
            group: Admins
            permissions:
            - '*'
        ChickenChocka:
            group: Admins
            permissions:
            - '*'
    I haven't finished it yet but i don't want to waste my time doing something that may be wrong..

    oh and here's the config.yml of the chest plugin
    Code:
    useID: false
    noID: false
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true 
    Oh a while ago i kept getting an error that i didn't have permission to make a shop, but after doing that groupmanager it doesn't say that nor that i created a shop :O
     
  31. Offline

    Chrisbeee

    Can someone help me again, My Permissions is getting a null error or something.
    [MERGETIME="1300067210"][/MERGETIME]
    Can someone help me to configure the permissions for this
     

Share This Page