[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

    MiHo

    Why you don't install MySQL on the same machine? Would quick up the whole process!
     
  3. Offline

    jonilaht

    How the logs are used with Odd?

    LOG = is "normal" log
    timber = spruce?

    How to sell birch (white wood) ?


    And how to sell colors only?
     
  4. Offline

    MiHo

    How can I sell all kind of logs with one chest?
     
  5. Offline

    Joinapolarn

    Why is it fail with selling ?
    when i sell the stuff, the first thing in the "bar" beeing selled, not the item i want.
    help plz :)
     
  6. Offline

    fireb33

    same problem here! (CB 720)
     
  7. Offline

    Aleyasu

    I dont use permissions, i use GroupManager, can i still use this? Because when i installed the plugin and put a sign above the chest it sais:
    [iConomyChestShop] Config file doesn't exist!
    [iConomyChestShop] Be sure to copy everything from .zip file to /plugins
    [iConomyChestShop] Aborting!
    How do i fix this? :/ i didnt get a config file and when i copy everything from .zip file it still doesnt create a config file..
    Thanks in advance...
     
  8. how to do you sell coloured wool, do i have to install odditems
     
  9. Offline

    Skeven

    Totally ignored way back there, but I'm still looking for a little more explanation on the admin shop function..

     
  10. Offline

    ballacraft

    im also wondering how to sell coloured wool. when i use 'Wool' on the bottom line like before, it just gives me white no matter what colour is in the chest. thanks.
     
  11. Offline

    Acrobot

    @rmb938
    Can't do anything about it, bukkit team changed this :/

    @noneandnonly
    Do you use any translation? If not, it's my fault then :)
    @Kieron Etherimgton
    @ballacraft
    @jonilaht
    OddItem is not needed anymore :) If you want to sell birch, just use 17:2 or WOOD:2, or odditem alias.

    @Aleyasu
    In my main post there is a .zip file. It's here: http://forums.bukkit.org/attachments/iconomychestshop-zip.2820/

    @Skeven
    Admin shops can't use economy system ATM, I may make it so if it finds any account with name "Admin Shop" it uses it.

    @MiHo
    Not possible, I am going to try to do something about it.
     
  12. Offline

    ballacraft

    im actually trying to set up for wool, not wood. but neither seem to work with that kind of item code.
     
  13. Offline

    rmb938

    Well what about if it looks for the closest name on the server/in iconomy So like if the sign says rmb it looks for a simlar name which could be rmb938.
     
  14. Offline

    Acrobot

    @rmb938
    The plugin must work when the player is offline too... And I am not using any database for shops yet.

    @ballacraft
    Update iConomyChestShop?
     
  15. Offline

    ballacraft

    i just updated to the latest version of your plugin and still not working. im using CB build 721. :(
     
  16. Offline

    VexedPanda

    I've got some issues. Most shops work fine, but any shops selling IRON_INGOT or COAL don't take/check items from the inventory when buying, instead it takes the first item from your inventory, regardless of what it is, and regardless of if you have the iron/coal required.

    git-Bukkit-0.0.0-659-gc210f22-b684jnks (MC: 1.4)
    Permissions 2.7
    iConomy 4.65
    eg: Player has no coal, has iron sword. They left-click on the store, it takes away their iron sword, gives them coins.
    Log acts as if nothing is strange:
    2011/04/25 17:49:32 [iConomyChestShop] Player sold COAL with durability of 0 to OtherPlayer for 1 Coin
     
  17. Offline

    Wanny

    Works flawlessly man. Thanks again :)
     
  18. Offline

    LePad

    Hey,

    It's a great plugin. I only have one problem with it right now and I'm pretty sure it's really easy to fix. When I'm trying to make an admin shop, everything works except when I want it to only buy or sell stuff. This is what I write :

    admin shop
    1
    15:0
    GOLD_INGOT

    It should work but it breaks the sign and it says : Can't make shop with negative buy/sell price. I'm guessing that your error is in your condition where you probably wrote value > 0 instead of value >= 0. I changed the 0 for 1 or another value greater than zero and it works. Anyway, good work.

    Thanks !
     
  19. Offline

    Phinary

    It doesnt let you set buy/sell to 0 so you cant not buy or not sell. Please fix. MC 1.5
     
  20. Offline

    diieter

  21. Offline

    JagerPrime

    Possibly an odd question. Do the signs no longer detect what is in the chest? I used to put the material in, then make the sign and just put the amount and buy/sell prices. It filled the rest in. Now, it kicks the sign off and says invalid item ID.
     
  22. Offline

    Acrobot

    @JagerPrime
    They don't, it caused too much trouble, really :/ I may make it so it puts automatically first item from chest on the sign. I use /iteminfo command and it works really, really well :)

    @diieter
    What do you mean by "doesn't work"?
     
  23. Offline

    JagerPrime

    Awww. Alright, thanks for the quick answer. I was going nuts wondering what i had done wrong. @[email protected]
     
  24. Offline

    MacVaultDweller

    Thanks again for creating and maintaining a great plugin
     
  25. Offline

    MineralMC

    Any chance for dispenser support? More so to treat a dispenser in the same way with a chestshop sign; we use it for converting iron/gold ingots to iConomy currency, and a dispenser would make the perfect visual representation of a converter.

    - Drop ingots in dispenser.
    - Get your account credited, hurrah!
     
  26. Offline

    Acrobot

    @MineralMC
    I would really gladly do that, but there are no inventory events :/
     
  27. Offline

    Ralsalerm

    Doesn't work, the sign don't change when i put it in front of the chest.
    My sign :
    *blank*
    1
    10:5
    DIRT

    And it doesn't work, help me, i have Permissions and iConomy.
     
  28. Offline

    MineralMC

    Ah, bugger - do they not work the same was as chests for added items?
     
  29. Offline

    Acrobot

    @Ralsalerm
    CraftBukkit version?

    @MineralMC
    I don't actually understand, you want people to drop iron into dispenser and getting money? It would work, but it would need a sign anyway.
     
  30. Do you have any plans for having decimal price amounts anytime soon? I've noticed that prices have to be whole numbers.
     
  31. Offline

    Acrobot

    @Ballistic Buddha
    Sure, I think it's only a change from int to float, but it should be rounded if player uses BOSEconomy.
     

Share This Page