[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

    @Kainzo
    Yeah, I really need to do that, however, it would require A LOT of work, so I'll leave this as it, at least for now.
     
  3. Offline

    Kainzo

    true that ;)
     
  4. Offline

    DiamondCraft

    I just downloaded the permission plugin, what would i do to enable the default group and others to be able to use the shop? Tried with my friend and it said "You do not have permission for shops." Thanks for the great plugin, sorry for being a noob though :D
     
  5. Offline

    WeeeenHun

    I have a problem too. when one of my friends right click or left click the sign it says "[Permissions] You can't sell to shops " or "you can't buy from shops" . Help i'm a beginner for bukkit ! :(
     
  6. Offline

    Acrobot

    @DiamondCraft
    @WeeeenHun
    You need to change Permissions (see youtube, for example http://www.youtube.com/watch?v=Agg6lD8pv1U&feature=related) to the ones found in my main post (which are:)
    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.buy - using the shop
    iConomyChestShop.shop.sell - selling to shops
    iConomyChestShop.shop.admin - admin
    iConomyChestShop.command.iteminfo - more in "ItemInfo" section
    
    You MUSTN'T write the comments (everything after "-") in the file.
     
  7. Offline

    Wanny

    Awesome mod we love it. However, is there a way to exclude shop items from being created? I know there is a permission like iConomyChestShop.shop.create.<id>, but I just want to remove cobblestone, sand and dirt.

    I tried this:
    - 'iConomyChestShop.shop.create'
    - '-iConomyChestShop.shop.create.04'
    It doesn't seem to work... I don't feel like making a single id for every item.

    I hope you see what I mean...
     
  8. Offline

    Acrobot

    @Wanny
    Not really :/
    I will make an exclude list in next version :) It will work like iConomyChestShop.shop.exclude.<id>
     
  9. Offline

    Wanny

    Thx a lot :)
     
  10. Offline

    MiHo

    But if you are an admin with '*' permission, wouldn't that a problem? Cause you would exclude everything.
     
  11. Offline

    Acrobot

    @MiHo
    It kinda would, but I will make it like
    Code:
    if (!isAdmin && (PermissionManager.hasPermissions(p,"iConomyChestShop.shop.exclude."+itemStack.getTypeId()) || (!PermissionManager.hasPermissions(p, "iConomyChestShop.shop.create") && !PermissionManager.hasPermissions(p, "iConomyChestShop.shop.create." + itemStack.getTypeId())))) {
    
    Kinda spaghetti :p
     
  12. Offline

    itssuperninja

    dude i cant do this it says cant buy or sell for other players i have the permitions right.. i think can u make a vid or somthing?
     
  13. Offline

    kmccmk9

    Hi, can anyone help me sell my items? I am trying to sell dyes and bone meal so I downloaded OddItem. How do I get this to work with the shop?
     
  14. Offline

    yeahMan

    A user was able to exploit the names on signs by adding other players names with lots of money on it and then selling them cheap items for a TON of cash. is this known?
     
  15. Offline

    MiHo

    Probably that wouldn't be the best way, cause what's up with the user which hast "iConomyChestShop.*"... are they Admins? ;)
    I would make a Permission "iConomyChestShop.shop.ignore-exclude", so if you have "*" you also incude this one, and this one will let the user ignore the excludes.

    And some other feature request:
    Statistics for Admin Shops...
     
  16. Offline

    City Builder

    Hi, We're using 709 and your plugin.

    However... When ever somebody sets up a shop that has an item whose name is more than 15 characters long it causes everybody to get dumped off of the server and nobody can login again until the server is stopped and restarted.
     
  17. Offline

    Acrobot

    @MiHo
    Yes, users with iConomyChestShop.* ARE admins.

    @City Builder
    That was CB's fault. Please update.

    "Minecraft 1.5 has added limits for sign text. Plugin developers commonly used longer sign text to store extra data or add colours to signs. This is no longer possible, so we now cut off any line in a sign longer than 15 characters (as of build #712)."
     
  18. Offline

    nikk76

    Hello,

    There would be there a version of this plugin for Minecraft 01.05.02 Bukki 714
     
  19. Offline

    imaxorz

    I got a question and maybe a suggestion.

    If LWC is on, but number of protections is limited, does the shop use one of the protections allowed? Let's say if I am allowed 5 protections, after setting up a show will my number go down to 4?

    I also had in mind a cool feature suggestion. This is probably very complicated to do, but here goes anyway.
    It would be really cool if the plug in kept a data base of all the items sold. Only the ID, PRICE and AMOUNT. Then maybe it would be possible to create a trend table for the market that would give the average selling/buying price of items by day or week for example. Thoughts?
     
  20. Offline

    _Homer_

    Can I use it with Bukkit 714?
     
  21. Offline

    o0AzzA0o

    Feature/Option

    can we have it so we can diss-allow the use of - in values people are tricking others buy seting 100:-150 type thing wich is causing the player to lose coin when they sell to chest......
     
  22. Offline

    Acrobot

    @nikk76
    @_Homer_
    People said it is compatible, however, I will relase new one for recommended build.

    @o0AzzA0o
    Just fixed that in new version, it will be up soon.

    @imaxorz
    The 2nd idea - niice, I'll do it if I have free time :) Feel free to nag me about it!
    The LWC one - I have no clue. It's probably going to make it go down to 4.
     
  23. Offline

    Carlack

    I have a bug when I put allowUsedItemsToBeSold at true.
    I can sell my entire inventory in any shop :eek:
    Is this bug is the result of conflict between my plugins or it is know ?

    Sorry for my english, i make my possible to be understand xD
     
  24. Offline

    Acrobot

    @Carlack
    I tried it, it doesn't work for me :confused:

    Also, who will be happy if I say that from the next version, OddItem is NOT NEEDED anymore? It can be still used to create item aliases!
     
  25. Offline

    Carlack

    put allowUsedItemsToBeSold at true has no effect for you ?
     
  26. Offline

    Acrobot

    @Carlack
    It HAS effect, but I can't sell my whole inventory to the shop, just one type of item (also, I have no clue how it would work, because if you look in source code you can see that allowUsedItemsToBeSold just turns off checking damage values for tools.
     
  27. Offline

    Carlack

    So, i have downloaded the latest version of ChestShop and the bug is still here. That's very strange :-/


    I miss to tell you that the bug occure when i sold items in an admin shop, i can't test on other shop for the moment ...
     
  28. Offline

    imaxorz

    @imaxorz
    The 2nd idea - niice, I'll do it if I have free time :) Feel free to nag me about it!
    The LWC one - I have no clue. It's probably going to make it go down to 4.[/quote]

    Haha, didn't think you would say yes, this would be awesome :) It would help to set the market prices.
     
  29. Offline

    rmb938

    The new update makes it so poeple with names longer then 15 chars can't use or open a shop. Can you try and fix it? Thanks
     
  30. Offline

    noneandnonly

    On our server (bukkit #712) it does not work if we set any price to "0".
    Error - no translation for Negative-price.
    I downloaded the most recent version, but still got this problem. Everything else works fine.
    Please tell me what to do to fix it or if it's because of the bukkit version or anything.
    Anyways: Thanks for the GREAT plugin =)
     
  31. Offline

    Zalastri

    This thread is bhuge so I didn't look through everything, but I'm having an issue where players will repeatedly purchase something from a 1 itempertransaction chestshop and lag the server. I'm using mysql on a LAN so you would think it would be quite snappy. Can you have these actions queue or buffer or something? If not, perhaps enforce minimum transaction amounts per item? or globally? Something to consider. Thanks for an excellent plugin.

    EDIT: I did some testing on my own and after about 5-10 seconds of clicking you can get the actions queued up which seems to start lagging everything considerably. If you could add an optional and adjustable millisecond delay between purchase actions that'd be a good fix.
     

Share This Page