[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

    Fetman

    Thanks ^^
     
  3. Offline

    Liger_XT5

    Love this plugin, using 705(?) of CB and the Buy/Sell works! Haven't tried making a store just yet.
     
  4. Offline

    Acrobot

    @Fetman
    @Liger_XT5

    Recent CB build fixed the SIGN_CHANGED event. It might have been/is CraftBukkit's fault. Try the new ones if shop making doesn't work.
     
  5. Offline

    WeeeenHun

    Is this up for 1.5 yet ? :eek:
     
  6. Offline

    niebieskiarek

    After typing on a plate
    admin shop
    1
    100:50
    48
    is a server crash
    How do I fix this?

    Bukkit 705/709
     
  7. Offline

    Acrobot

    @niebieskiarek
    This mod WASN'T updated for 705 nor 709, I am waiting for Reccomended build.

    @WeeeenHun
    Nope, no recommended build, I will update it if there's RB out (or if I'm bored)

    The bugs are mostly CB's fault...
     
    WeeeenHun likes this.
  8. Offline

    Tesla24

    also by me works this plugin

    craftbukkit version 709
     
  9. Offline

    niebieskiarek

    Received string length longer than maximum allowed (17>15) I have a message
    48-
    MOSSY_COBBLESTONE-seventeen characters, where to change for example - MOSCOBBLESTONE ?
     
  10. Offline

    Donny

    I keep getting this fatal error (I believe it happend when someone created a shop. I checked the buy/slel log inside iconomychestshop and no-one bought or sold anything ar 12:09 or even around then)
    I'm using CB: 684
    Code:
    2011-04-22 12:09:10 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NumberFormatException: For input string: "1 "
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:481)
        at java.lang.Integer.parseInt(Integer.java:514)
        at com.Acrobot.iConomyChestShop.ShopManager.buy(ShopManager.java:34)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:87)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:252)
        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.a(ItemInWorldManager.java:208)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:488)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  11. Offline

    chernobyl360

    For some reason on #706 im getting an error saying theres no Data storage. it seems after updating it removed the data files....
     
  12. Offline

    Acrobot

    @Donny
    Oh... They probably have too many spaces or something, it shouldn't happen. Thanks for informing me!

    Also, are you sure you're using the newest version?

    @chernobyl360
    My plugin doesn't use anything else than files.
     
  13. Offline

    Cyprias

    Can we get a option to disable infinite stack size? ( -1 )
    I'm running iConomyChestShop 2.4.
     
  14. Offline

    Acrobot

    @Cyprias
    It is already there. Look into "stackUnstackableItems" option
     
  15. Offline

    Cyprias

    @Acrobot
    Humm I've tried stackUnstackableItems set to true and false and -1 still works as a stack size and gives me a infinite block when buying from the shop.
    I take it should be set to false to disable the sale of infinite items?
     
  16. Offline

    Acrobot

    @Cyprias
    Wait, infinite items?
    Do you mean it's infinite, so you can have for example 255 of block?
    Woah, this is a serious issue.
     
  17. Offline

    Cyprias

    @Acrobot
    Correct. The sign is set to sell -1 and the person receives a infinite block. Even if the chest's empty it gives the person the item at regular buy value.
    The server's running CB 709 if it helps. I realize it's not a RB but the server owner really wanted to try 709 against my advice. /shrug
     
  18. Offline

    Acrobot

    @Cyprias
    Just fixed it. Also, added some neat functions :p
    It's gonna be uploaded soon.
     
  19. Offline

    Cyprias

  20. Offline

    Donny

    any way i can check version? I downloaded it like two days ago.
    Someone keeps crashing my server with this then =o
     
  21. Offline

    xlilcasper

    Was wondering if you could put in a sales tax. A percent taken from the selling of items that could be set in the config file. This would help take money out of the economy while still keeping only player ran shops.
     
  22. Offline

    kahlilnc

    This works with CB 709
     
  23. Offline

    blindsarcasm

    Is that a statement or a question?
     
    soloman981 likes this.
  24. Offline

    Acrobot

    @Donny
    Type /icsversion
    Also, I just did a little thingy, so now it shouldn't happen again (You can put as many spaces between B/S and price as you wish)
    @xlilcasper
    Do you mean it would work like (Price minus Tax) or like (Price is normal, and Tax goes to server)?

    @niebieskiarek
    You can write "mossy", for example, it will know that it's mossy cobblestone.
    @kahlilnc
    Thanks for testing!
     
  25. Offline

    AmazingHayman

    Thanks. :D

    Yes, you know what I mean. Would be a great feature to control the shops on servers. At the moment I have 6 different shop owner on my server. But they all can sell everything. That's a big problem cause they can't keep the chests full everytime. If they only could sell cobblestone and cleanstone it would be easier for everyone to keep the chests full and to buy many items without being disapointed of the shop owners.
     
  26. Offline

    AmazingHayman

    Could you tell me why this plugin need MySQL? Don't think its necessary.
     
  27. Offline

    Acrobot

    @AmazingHayman
    Oh snap! I forgot! This feature was added in this version!
     
  28. Offline

    Pr4w

    If you run a website with your server, it would be nice for users in their control panel to see who bought their items, just so they can log their sales.
    Fundamentally, it isn't necessary, maybe not *that* useful, but it's an interesting feature. :)
     
  29. Offline

    Donny

    Thank you very much

    Edit: Yeah I was using 2.4. Thank you for the help/update

    I have another question :l . Is there any way to stop people from using chests to put another player below positive income. They are joining with two accounts, making a negative chest with one and buying with the other. Here is a log
    Code:
    2011/04/22 09:04:22 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:24 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:24 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:25 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:26 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:26 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:26 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    2011/04/22 09:04:27 [iConomyChestShop] Ace_Keenan bought COBBLESTONE with durability of 0 from DeDarnen for -100000 Coin
    maybe delete input of "-" on the buy/sell line? unless there is a reason ppl want to go negative
     
  30. Offline

    Acrobot

    @Donny
    I thought it didn't work :/
    Gonna fix it.
     
  31. Offline

    Kainzo

    vote to rename to ChestShop since it now no longer 'requires' Iconomy.
     

Share This Page