[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

    Ehh... You know, it's minecraft that prevents placing any mob spawner other than pig, as far as I can know.
    @MaMaxGER
    What do you mean?
    You're supposed to copy only everything from lang:
    Are you sure you did that?

    @BioRage
    Sure I did. It's gonna be toogle-able.
    Also, I'm so excited for the achievements in Minecraft 1.5
    If they're gonna be server-side, I can make transaction message there!

    @killerbeez @yottabyte
    But the iConomy uses whole name :/
    Also, I would have to use some kind of database, which I do not want.
     
  3. Offline

    RustyDagger


    Dont give your players the admin permission Herp Derp.
    If you have done it like icoonomychestshop.* then that is your problem.

    What do you mean by separating line?
     
  4. Offline

    BioRage

    @Acrobot
    Thanks man, Looking Forward Soon, as for now my blacksmith shop is closed!
     
  5. Offline

    Umbra

    Is it possible to make items.csv from Essentials work with iConomyChestShop to make colored wool work ?
     
  6. Offline

    solidsnake916

    @Acrobot Look here: http://forums.bukkit.org/threads/fix-misc-creaturebox-v-0-7-0-wolves-and-monsters-and-critters-oh-my-617.6856/

    This allows Mob_Spawners to be other things, if i break a natural Mob_Spawner, Zombie. and put it in the chest, it keeps it properties. if i take it out, if i buy it, it generates item 52, it doesn't actually give me that item... I believe anyways. I tested it on my server with admin shop, so that might be the reason, i will attempt to try it without admin shop on top line.

    EDIT: Tested with a friend after having buffer issues with my NIC, and it said out of stock if i left topline blank, switched to admin shop, worked, and the propeties of the spawner vanished.

    Please look into the link above, and see if it can be supported. If not i tried, oh well.
     
  7. Offline

    Suda

    This is a nice mod however it suffers from what basically every other shop mod does: you can sell items that you can't stack normally in quantities larger than 1 to make them stack; for example if I set up a shop and sold 3 apples at a time it'd sell the player apples in stacks of 3. Do you think you could fix this somehow or make a version that you can't sell items in quantities larger than 1?
     
  8. Offline

    yottabyte

    Oh I forgot you have to be able to buy even when the player is offline...
    That makes everything a bit harder indeed.
     
  9. Offline

    IceReaper

    Can some1 please help me? I just copied the plugin into my plugins folder and set up permissions for players "bull,sell,create".
    When im an admin OP plus * permissions i can do everyting and everything works fine!
    When im a player i can buy from admin shops, but i cant sell to them. But i dont get any information, error, debug, whatever. it simply does nothing.

    CraftBukkit 670
    Permissions 2.5.5
    iConomy 4.6.5
    iConomyChestShop 2.2

    Permissions:
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.shop.buy'

    After reading the source i've seen there are several "return;" which dont actualy log anything, so it seems it runs into one of these. Have i forgotten something? or is it possible to add a debug param which logs then at every return; some message? without that working i wouldnt use the plugin cause i want players to be able to shop in the main city.
     
  10. Offline

    PatrickFreed

    I'm not an idiot :p
    I know what the admin node does, and I haven't given it to anyone.
     
  11. Offline

    Acrobot

    @Suda
    Last version I had was kinda laggy, but gave exactly what was in the chest.
    This version is quick, and it just removes items from chest inventory and adds them to player inv.
    Anyway, why is this bad?

    @IceReaper
    Hmm...
    You actually probably run into return :/
    Can you say (or take screenshot) of what items do you have in inventory and what's on the sign?
     
  12. Offline

    IceReaper

    tried it with about 10 different items everything the same, buying works, selling not. could you release a version which simply logs a message at these return; 's ? (maybe when using a debug param in config?)

    edit: or i have to look into how to get and compile plugins myself, then i could also post fixes... ill try getting a java development environment up
     
  13. Offline

    Tealk

    hi its possible to make a variable that create a shop cost x Coints
     
  14. Offline

    cda1987

    I install this an odditem and do this on sign

    blank
    64
    10:5
    DIRT

    and tried

    blank
    64
    10:5
    3

    and it saids the shop did not work and no error. please help.
     
  15. Offline

    Acrobot

    @Tealk
    Sure! Can be a nice feature, really :)

    @cda1987
    Hmm, did you put the chest under the sign?
    Also, what version are you using?
     
  16. Offline

    cda1987

    I'm using cb#670 i put the chest down put dirt in it and than like on the youtube video i put sign above.

    is this wrong in my config?

    position: 'DOWN'
     
  17. Offline

    Linaks

    How can i add more users to a chestshop?
    Because I want to lead my company with my friend and the chest is only for me. But how can we earn the money together ? Can you add a feature, to add more users into a chestshop? The money which will be earned, should get every user who is in the chestshop list. iConomy anyway round the money if it gets decimal ;)
     
  18. Offline

    cda1987

    I can set up a admin shop by

    admin shop
    5
    5:5
    stone

    but when i do

    blank
    5
    5:5
    stone
    No work

    and

    cda1987
    5
    5:5
    stone
    no work either. Permissions set.
     
  19. Offline

    Suda

    I don't want players to carry around large of stacks of food, because then they pretty much become un-killable.
     
  20. Offline

    ratty

    I'm not sure if this was reported already, but there's an incompatibility with Minecart Mania sign commands plugin. I had this for the contents, and this plugin thought it was for it. Then it locks the chest and nobody but ops can remove it. We had Minecart Mania installed for a long time and only yesterday I tried out this cool shop plugin.
    Here were the 2 signs that it got confused on:

    [Collect Items]
    [41:266:14]
    [264:57]

    [Collect Items]
    [288:287]
    [318:341]
    [334]

    It only affected those 2 signs, I'm not sure whats special about it.I can provide more data, such as signs that weren't affected, but maybe the above 2 is enough to fix it.
     
  21. Offline

    RyanTheLeach

    I mean't on how to enable sneak mode.
     
  22. Offline

    Acrobot

    @ratty
    It can PROBABLY be, because it has the ":" and the last line...
    Hmm...
    I don't really know how can I fix it....
     
  23. Offline

    kahlilnc

    I dont get how to the selling works. I no that you right click the sign to buy but how does someone sell an item to the chest.
     
  24. Offline

    Acrobot

    @kahlilnc
    If sneakMode: true, you just left-click the sign.
    If not, type in /sell.
     
  25. Offline

    RustyDagger

    Acrobot Left clicking the sign with that on dose nothing we have tried every setup under the sun holding shift and left clicking just left clicking repeating both the above with the item in our hand None of them work.

    We have to type /sell or it will not work at all.
     
  26. Offline

    Skeven

    I'm looking for a little more clarification on the Admin Shop portion.
    We created an iConomy account for "bank" and made the sign...
    ...to test it out. However it appears that it requires items in the chest, unlike the admin shop. The only reason we're doing this is so the money just doesn't disappear from the economy.
     
  27. Offline

    Johnny Lunder

    Plugin causes ALL signs to be only deleteable by OP's.
    SHOP: You don't have permissions to do that pops up for all users on any sign and any blocks it's attached to.
     
  28. Offline

    Acrobot

  29. Offline

    RustyDagger

    My users seem to be having the same problems with removing signs.
     
  30. Offline

    Acrobot

  31. Offline

    RustyDagger

    You also cant seem to get the same Response from the sign when you click it trying to sell Maybe its a MM related bug I have it installed how about you @Johnny Lunder

    If it comes down to this or MM this will lose for sure. Most ppl will be with me on that due to the fact that there are other shop plugins around and there is only 1 MM
     

Share This Page