[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

    Dylan Helling

    Ok sorry about all the questions, but I tried to use /money create ____ didn't work.... also i tried to use the admin shop and all it does it auto names it to me.
     
  3. Offline

    Acrobot

    @Dylan Helling
    Do you have admin rights?
    If it auto-fills the first line, you don't.
     
  4. @Dylan Helling

    You need the iConomyChestShop.shop.admin node ;)
     
  5. Offline

    Dylan Helling

    - 'iConomyChestShop.shop.admin'
    - 'iConomy.admin.account.create'
    I have them added in there and I have my name in the ops file
     
  6. Offline

    Brady_

    How can I use wget with dropbox? To download my files I have to be signed into the dropbox website, it's the same issue I have now.
     
  7. Offline

    riuthamus

    Is there an option for FREE? I tried to set 0:0 but no go!
     
  8. Offline

    kramark

    If you put the file in your "Public" folder, you can click the option to "Copy public link". That will give you a URL you can use to wget the file.
     
    Brady_ likes this.
  9. Offline

    Acrobot

    @riuthamus
    Nope, but for free, you can set up a chest without lock :p
     
  10. Offline

    riuthamus

    but, if you created a free one, with the use of the ADMIN SHOP, it now because a dispenser. This can then be used for noob zones.

    Placed at the front of a warzone event would let people get wood swords for free.
     
  11. Offline

    Acrobot

    @riuthamus
    Oh, ok.
    I think I may do something like "free".

    Also, I am currently making generating statistics file :)
     
  12. Offline

    chernobyl360

    CB #740 using Iconomy 4.6.5

    Code:
    2011-05-01 15:25:46 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NullPointerException
        at com.Acrobot.iConomyChestShop.iConomyManager.hasEnough(iConomyManager.java:64)
        at com.Acrobot.iConomyChestShop.ShopManager.buy(ShopManager.java:45)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:90)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        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)
     
  13. Offline

    Acrobot

    @chernobyl360
    Which version did you download?
    Because it seems like you're using iConomyChestShop for iConomy 5, or your name is null o.0
     
  14. Offline

    chernobyl360

    i downloaded the basic iconomychestshop. not the one for iconomy5.
     
  15. Offline

    Acrobot

    @chernobyl360
    That's weird...
    It means that your name is null, somehow...

    Can you please post your
    /icsversion
    ?
    Also, what is on the sign when you're trying to buy?
     
  16. Offline

    chernobyl360

    version = 2.54

    the sign was setup to buy 53 which equals WOOD_STAIRS

    admin shop
    1
    1:1
    53
     
  17. Offline

    Brady_

    Thank you so much for this.
     
  18. Offline

    chernobyl360

    so did it get fixed? or did i do something wrong?
     
  19. Offline

    Chekkaa

    I disabled the ability to sell back to shops, but people still have to add a sell price to the sign...

    Any way you can make it so people can JUST put a buy price? Having 2 prices and the colon is confusing when one of them doesn't do anything.
     
  20. Offline

    DutchxJapie

    Where are the permissions nodes? i cant find them.
     
  21. Offline

    Acrobot

    @chernobyl360
    I have no clue what may cause this, also, I couldn't reproduce it :/

    @Chekkaa
    Not YET.
    @DutchxJapie
    First post,
    Code:
    iConomyChestShop.shop.create - creating a shop with any product
    iConomyChestShop.shop.create.<id> - creating a shop with product with <id> for example 5
    iConomyChestShop.shop.exclude.<id> - excludes <id> from the list of allowed items for group/player
    iConomyChestShop.shop.buy - buying from shop
    iConomyChestShop.shop.sell - selling to shops
    iConomyChestShop.shop.admin - admin
    iConomyChestShop.command.iteminfo - more in "ItemInfo" section
     
  22. Offline

    imaxorz

    How are the statistics coming along? I see you were working on it yesterday :)

    PM me know if you need testing done.
     
  23. Offline

    dvdbrander

    admin shop wont work, It says seller name doesn't exists
     
  24. Offline

    imaxorz

    They do work.

    I have v2.4 and we used admin shop in our secret rare item shop.
     
  25. Offline

    Acrobot

    @imaxorz
    Very well :p
    Did I post the link to example ones?
    If not, http://dl.dropbox.com/u/11388037/ChestShop.stats.html
    It generates them in another thread, so no server lag :)

    Also, I added an option so you don't have to write "B 0:1 S", you can just write "S 1", or "1 S". Same with buy, also you can do "1 B: .5 S", or "B 1:S .5" etc. :)
     
  26. Offline

    imaxorz

    Thats awesome!

    Is the stack size specified in the config? Just wondering how it calculates it since players sell items in different amounts.
     
  27. Offline

    dvdbrander

    It really won't work...
    My versions:
    16:09:20 [INFO] [iConomy] Logging is currently disabled.
    16:09:20 [INFO] [iConomy] v4.65 (Kenzi) loaded.
    16:09:20 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    16:09:20 [INFO] [iConomy] hooked into Permissions.
    16:09:20 [INFO] [iConomyChestShop] version 2.54 initialized!
    16:09:20 [INFO] [iConomyChestShop] iConomy version 4.65 loaded.
    16:09:20 [INFO] [iConomyChestShop] Permissions version 2.5.1 loaded.
    and why 1b: .5S?
    I mean, 1:.5 also works...
     
  28. Offline

    Acrobot

    @imaxorz
    Stack size is taken from bukkit, so it will work even with updated items.
    It takes the price for which items were sold and divides this by the amount of items in transactions.

    @dvdbrander
    Do you have iConomyChestShop.shop.admin
    permission?

    Also, it's just for people who don't want default B x:x S or B x
     
  29. Offline

    dvdbrander

    Got all permissions: - '*'
     
  30. Offline

    Acrobot

    @dvdbrander
    That's weird...
    Try the newest permissions plugin, maybe?
     
  31. Offline

    imaxorz

    Ok, I see. I thought it had something to do with stack sizes that players sell their items in :) I got it now.

    @dvdbrander yeah it really should work. Maybe try adding the whole node to permissions just to try it out? Or post your permissions here, just the admin part.
     

Share This Page