[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

  3. Offline

    Nitoxdoan

    @Acrobot the video doesnt show me how to use permission to chestshop-.-'
     
  4. Offline

    Acrobot

    @Nitoxdoan
    It shows however, how to set up and configure Permissions. To configure ChestShop, you need to look into the first post, where it shows Permissions nodes.

    Code:
    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
    
     
  5. Offline

    BioRage

    @Acrobot

    So you mean if they sell it used, when the new person get's it, its fresh?
     
  6. Offline

    Acrobot

  7. Offline

    BioRage

    There was no way to fix it? :(
     
  8. Offline

    Acrobot

    @BioRage
    That world kinda lag the server...
     
  9. Offline

    KompotPL

    I have the same problem as Nitoxdoan. Whatever I set in permissions it will still show "[Permissions] You can't buy from shops!", but this shows as a normal user, however I managed somehow to set it for an admin, and it works.
    Any help?
     
  10. Offline

    Vikerus

    ok I have run in to a major problem, when chests are opened every once in a while your kicked out of minecraft and im given this error report
    Show Spoiler
    Code:
    [SEVERE] java.net.SocketException: Connection reset by peer: socket write error
    2010-04-18 12:08:39 [SEVERE]  at java.net.SocketOutputStream.socketWrite0(Native Method)
    2010-04-18 12:08:39 [SEVERE]  at java.net.SocketOutputStream.socketWrite(Unknown Source)
    2010-04-18 12:08:39 [SEVERE]  at java.net.SocketOutputStream.write(Unknown Source)
    2010-04-18 12:08:39 [SEVERE]  at java.io.DataOutputStream.writeInt(Unknown Source)
    2010-04-18 12:08:39 [INFO] Read timed out
    2010-04-18 12:08:39 [SEVERE]  at net.minecraft.server.Packet28EntityVelocity.a(SourceFile:42)
    2010-04-18 12:08:39 [SEVERE]  at net.minecraft.server.Packet.a(Packet.java:122)
    2010-04-18 12:08:39 [SEVERE]  at net.minecraft.server.NetworkManager.e(NetworkManager.java:101)
    2010-04-18 12:08:39 [SEVERE]  at net.minecraft.server.NetworkManager.d(NetworkManager.java:233)
    2010-04-18 12:08:39 [SEVERE]  at net.minecraft.server.NetworkWriterThread.run(SourceFile:89)
    2010-04-18 12:08:39 [INFO] ynop45 lost connection: disconnect.endOfStream
    2010-04-18 12:09:13 [INFO] ynop45 [/76.115.211.29:49553] logged in with entity id 768837
    2010-04-18 12:09:20 [INFO] [CONSOLE] Balls, the chests of doom
    2010-04-18 12:09:36 


    Im running bc 677 and permissions 2.7
    Forrest craft.txt is my permissions.

    ill have the config in a second.
     

    Attached Files:

  11. Offline

    Acrobot

    @KompotPL
    Nie ustawiłeś Permissions.
    Musisz dodać
    Code:
    iConomyChestShop.shop.create - tworzenie sklepów
    iConomyChestShop.shop.buy - kupowanie
    iConomyChestShop.shop.sell - sprzedawanie
    iConomyChestShop.shop.admin - admin
    iConomyChestShop.command.iteminfo - komenda iteminfo
    
    do configu Permissions.



    @Vikerus
    Not my fault, Minecraft's fault.
     
  12. Offline

    Vikerus

    GOD DAMN IT

    i need moe help then, no one is helping. this community is failing me.
     
  13. Offline

    KompotPL

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.access'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.shop.buy'
    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
                # essentials
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.whois'
                - 'essentials.msg'
                - 'essentials.depth'
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
    users:
        Kompot45:
            group: Admins
            permissions:
        - 'lwc.admin'
    iConomyChestShop.shop.create
    iConomyChestShop.shop.buy
    iConomyChestShop.shop.sell
    iConomyChestShop.shop.admin
    iConomyChestShop.command.iteminfo
    worldguard.locate
    worldguard.god
    worldguard.region
    Tak to u mnie wygląda, bo próbowałem kilku sposobów. I dla admina działa, dla zwykłego usera już nie.
     
  14. Offline

    Acrobot

    @KompotPL
    Źleee :)

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.access'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.use'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
                - 'essentials.sethome'
                - 'essentials.home'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.whois'
                - 'essentials.msg'
                - 'essentials.depth'
    
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
    users:
        Kompot45:
            group: Admins
            permissions:
                - '*'
    
    Jeśli forum nic nie zrąbało, tak to powinno wyglądać.

    EDIT: Zrąbało, zaraz poprawię.

    EDIT2: Poprawione
     
    KompotPL likes this.
  15. Offline

    KompotPL

    Dzięki za pomoc, jak się przyjrzałem konsoli, to okazało się, że permissions zostaje wyłączony na starcie. Wersja była najnowsza, ale tylko .jar, a po którymś updacie zmieniło się coś tam z zapisem w pliku konfiguracji. Całkowity update moda zadziałał.

    For future users who will encounter this problem: totally update Permissions mod, not only .jar ;)
     
  16. Offline

    Kainzo

    is it possible to have the Sign LWC/protected too? to prevent the abuse of SignEdit style plugins from changing what is being sold/for how much?
     
  17. Offline

    Acrobot

    @Kainzo
    Sure, I'll make it in the next relase and it will be configurable.
    I didn't do it before, because it shows LWC message that the sign is locked, and then it shows ICS message.
     
  18. Offline

    bewareofthecow

    Great plugin! I was able to get everything working without much work. I really like this method chest based shops as opposed to global command based stores, because it maintains in game transportation of goods as a game mechanic.

    I guess my only feature request would be for some dynamic style pricing for large stores or at least being able to change prices in a config file as opposed to manually editing signs in game. I have a very large store belonging to the WorldBank account as the central control for the economy on my server, trying to maintain relevant prices and inflation will be difficult.
     
  19. Offline

    Kainzo

    Granted - I guess thast an issue with LWC / ICS - I know thats a pain - but its more secure I suppose. Then again - as long as you have it configurable - let those who want it enable it.
     
    samsoccerboyz likes this.
  20. Offline

    samsoccerboyz

    It always says outa stock for me -
    Also Hi kain :p
     
  21. Offline

    kmccmk9

    Hey, love the plugin. How can I use this to sell dyes?
     
  22. Offline

    AmazingHayman

    I just had a nice suggestion!

    How about a feature which only allows Player A to create Shops which sells for example diamonds?
    And Player B can only create shops which sell goldblocks?

    I think it would be great to have permission nodes for that like this:

    iConomyChestShop.shop.create.[ITEM ID]

    Maybe you can tell me if its possible and if its easy to add to the plugin. :)
     
  23. Offline

    Acrobot

    @AmazingHayman
    AMAZING IDEA!
    Gonna add it :)
    Can it work like:
    if user has iConomyChestShop.shop.create, then he can create all item id shops, and if he hasn't got the 1st one, but he has for example iConomyChestShop.shop.create.5, then he can create shops with id 5?

    @kmccmk9
    Download OddItem

    By the way, soon I'll make it standalone, so OddItem would be just optional.

    @samsoccerboyz
    What have you got in the chest, and what is on the sign?

    @bewareofthecow
    Not really possible now. I can make it if I make it database-dependant (Which will happen one day).

    @Kainzo
    Just PM'd the LWC's developer :) It is going to be in LWC soon!
     
  24. Offline

    arsjet

  25. Offline

    heeejdu

    I downloaded and installed like told, but it still want work. When i start the server it says that it can't load permission jar file. Can anybody help me?
     
  26. Offline

    Acrobot

    @arsjet
    Weird... Gonna test it now.

    Really. Really. Weird.
    I don't have that bug :/
     
  27. Offline

    Kainzo

  28. Offline

    arsjet

    Other possible causes?
     
  29. Offline

    arsjet

  30. Offline

    samsoccerboyz

    I herped then I derped then I realised my tester is using the name of the item and not the number everything is fine :D
     
  31. Offline

    Acrobot

    @arsjet
    Woah, it seems like you have inventories bugged. What CraftBukkit's version are you using?
     

Share This Page