[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

    DarkDanny

    No I don't. Is there a log file I can give you that would show if there is a problem? Or do you think this is a problem with iConomy 6?
     
  3. Offline

    Acrobot

  4. Offline

    DarkDanny

    EDIT: So re-installing didn't work, so I downloaded chestshop alpha and it works :) Ty very much Acrobot :)
     
  5. Offline

    nightscoo

    oh thank you :D
     
  6. Offline

    Acrobot

  7. Offline

    gamemaster1494

    Suggestion:
    Just like how the plugin automaticly fills in the name, it should automaticly fill in id if there is an item in the chest that it links with. That would make things so much easier.

    Problem: Leaves don't work. I can't sell thoes. I did the 18 id and Leaves. It says its out of stock.
     
  8. Offline

    generilisk

    Do you have the right kind of leaves in the chest? Remember to match data values.
     
  9. Offline

    DarkDanny

    Acrobot I have a problem with item ID's with the alpha version. The only way for people to be able to sell stone bricks is if they are circle stone bricks. I have 98:0/98:1/98:2 for Normal/Mossy/Cracked Bricks, and when people buy from any of those, it gives them circle bricks every time, only circle bricks are sell-able on all 4 shops, if I try to sell Normal Smooth Bricks at the normal smooth brick shop, this is what I get: "You don't have enough items to sell!"

    This is only with stone bricks as far as I know of. I'll update this as I find more bugs. :\
     
  10. Offline

    cros1625

    CraftBukkit version 1.2.5-R1.0
    ChestShop version 3.4
    Essentials for economy and permissions and EssentialsGroupManager

    I can't seem to figure out how to give certain users permission to create shops, everyone can do it. I want to be able to make only select people have shops, while others do not. Tried messing with the permissions and Googling it but couldn't find anything. I know it's not an error, I just think I'm missing something or over looking it.
     
  11. Offline

    Acrobot

    DarkDanny
    Can you do /iteminfo on the item you're holding?
    What does show up? What is on the sign?

    gamemaster1494
    Yeah, like generilisk said. The Leaves have data values, you must do /iteminfo first to find out.

    cros1625
    Just add a "-ChestShop.shop.create" permission node for your default group. If that doesn't work, try "-ChestShop.shop.create.*"

    If it still doesn't work, open ChestShop.jar with WinRAR/7Zip, open plugin.yml and change ALL default: true to default: op
     
  12. Offline

    DarkDanny

    Acrobot

    EDIT: So its just a bug with the item numbers. If I put 98:0-3 it makes circle bricks.
    If I put the weird names in it works fine. :p
     
  13. Offline

    Acrobot

    DarkDanny
    Well, 98:0-3 means that it's an enchanted item.
    Maybe you meant 98:3?
     
  14. Offline

    cros1625

    I'm trying to take away the option for everyone to create a shop. I want to give permission to only people I want creating shops. I tried entering ChestShop.shop.buy and ChestShop.shop.sell into the default group but they are still able to create shops. I want to take the ability to create shops away.

    BTW, thank you fro the response.
     
  15. Offline

    Pim1234

    will you add shit+click support?
     
  16. Offline

    Acrobot

    Pim1234
    Shift+Click?
    What should it do? At the moment you shift to destroy the sign (not really necessary, but if you're an admin, that's the only way to destroy other people's shops without selling anything)
     
  17. Offline

    Pim1234

    it would be nice if that would sell all / buy all at once, so instead of creating a bunch of shops buying/selling 1,10,32,64, etc you could sell all your items/buy every item with just once click
     
  18. Offline

    Epics

    Wat. That'd mean you could sell one wood piece for $200, while you could also sell 200 diamond blocks for $200.
    Makes no sense man.
     
  19. Offline

    Pim1234

    Errr, imo you are the one not making sense...
    the plugin would calculate the price of course... if 1 block costs 1 Coins and you sell 29346 blocks at once you get 29346 x 1 Coins, of course...
     
  20. Offline

    Acrobot

    Pim1234
    You can just put "999" or other big number as the sell amount and turn on the partial transactions - it will sell everything in one click.
     
  21. Offline

    Pim1234

    yeah, i know that will work but i would have to create every shop twice, but well...
     
  22. Offline

    Luwiego

    The one thing i dont like about this plugin is the amount to sell. Its very annoyng to sell things one by one, it takes forever, and if players dont want to sell whole stack theres another problem..Possibly a new feature, when shift-clicking it could sell the whole stack, ignoring the sign ?
     
  23. Offline

    Lavarocks1212

    At first it seems to work, but another player try to sell & it said "You do not have the required item" even though he DID have the items... I also set up a another signshop & a player tried to buy, it said "That shop shop is out of stock!" even though i has the items in the chest.

    I tried putting the EXACT amount of items in my shop, didn't work...


    He's what one my shops looked like:

    Lavarocks1212
    64
    B 20:2 S
    Sandstone


    Please, try to help.
    Thanks, Lavarocks1212
     
  24. Offline

    Master_Queef

    Mmkay, I put 3000 as the interval, but I can still constantly spam right click and buy instantaneously, do I need something else enabled for this to work?
     
  25. Offline

    where

    I'm just wondering if anyone knows anything more about whatever it is that prevents armour with protection enchantments from being sold via chestshops.

    Any type of armour, regardless of material or other enchantments is not recognised as being in a chest, giving the 'Shop is out of stock' message whenever someone tries to buy it. e.g, Diamond Chestplate with Protection IV, Iron Boots with Feather Falling I, Protection I. All other enchanted items can be sold with no problems.

    Craftbukkit version is git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    ChestShop version is 3.41
    BOSEconomy
    Not sure which permissions plugin.
     
  26. Offline

    Acrobot

    Master_Queef
    No, it should work fine. What version of ChestShop are you using?

    where
    ChestShop 3.42 shouldn't prevent this, it was fixed, at least I think so...

    Lavarocks1212
    Are you sure that his /iteminfo gave the same ID as the one on sign?
     
  27. Offline

    where

    Oh, I wasn't aware that there'd been an update as I'm not the server owner, but I'll go get it updated, thanks.

    Edit: Works perfectly now. Thanks so much. :D
     
  28. Offline

    ocomobock

    How do you sell enchanted items? I tried to do this:

    Code:
     
    1
    B 500
    278-ar
    
    It just gives you a diamond pickaxe. I did /iteminfo, and it told me that was the ID. I tried /i 278-ar 1, and that didn't work either.
     
  29. Offline

    Pim1234

    how could i possible get rid of the "[Shop] You cannot buy/sell here!"
    i have turned off the worldguard and towny support and some shops work, while others don't.
    for as far as i know it only happens to admin shops, even though they've been set up the very same...
     
  30. Offline

    Acrobot

    ocomobock
    Hmm... And:

    - which ChestShop version are you running?

    Pim1234
    Just read the FAQ.
     
  31. Offline

    Acrobot

Share This Page