1. Important information on Next Recommended Build

    Hi Guest,

    We're cleaning up our code to help us better prepare for the release of Minecraft 1.2. As a result, a lot of old, inefficient and buggy code is being removed and plugins will need to be updated.

    Please check your plugins, find out if the plugin developers have been keeping everything up to date and kindly let them know that they need to update their plugins to make sure they will be ready for R5.

[ECON] ChestShop 3.35 (iConomyChestShop) - Chest&sign shop for economy plugins [1.1-R4]

Discussion in 'Plugin Releases' started by Acrobot, Feb 12, 2011.

     
  1. Offline

    Acrobot

    dev.bukkit.org profile:
    Acrobot
    My Plugins

    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,
    donate if you appreciate my effort =) Thanks

    Requirements:
    - An economy plugin supported by Register or Vault, for example iConomy or BOSEconomy
    Optional:
    - For Permissions: bPermissions, PEX, Permissions 2/3, any newer 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.

    For ChestShop 3:
    Bulgarian - Muff1Ncho
    Czech - hofec
    Danish - blasterweb
    Deutsch - Linaks
    Deutsch - Niklas4G
    Deutsch - cruzer0
    Deutsch (newest) - xGhOsTkiLLeRx
    Dutch - Lakloplak
    French- Chbrams

    Hungarian - Anachen
    Italian - Massimo1993
    Polish - LeonidasPL
    Portugese(Brasil) - viruzinbr
    Slovenian - jEErc
    Spanish - xX_Lirianer_Xx
    Spanish - Croslicre
    Swedish - sebbe35
    For iConomyChestShop 2.75:

    Czech - Tonysp
    Deutsch - l1nkman
    Dutch - iFearz
    Dutch - tahu
    French - couldn't find the author :/
    Italian - Aselox
    Polish - me
    Spanish - Trollkemada
    Spanish - metakin



    Permissions:

    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops



    ChestShop.nofee - lets you create shops for free

    ChestShop.mod - lets you open other people's chests, but doesn't let you create admin shops
    ChestShop.admin - ChestShop.mod + ability to create admin shops, etc.


    You can also add ".itemID", where itemID is... well... item id.
    ChestShop.shop.create.itemID - lets you create shop which buys/sells itemID.
    ChestShop.shop.buy.itemID - lets you buy itemID from shops
    ChestShop.shop.sell.itemID - lets you sell itemID to shops

    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
    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.

    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



    - @Epics for his great help
    :)

    If something's not working
    If you can both buy and sell, and your users can only buy, go to bukkit.yml and change spawn-radius to 0. 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]

    Version 3.35
    • Changed to the new, more robust event system
    • Added partial transactions (You have 5 items, shop wants 10 - you can sell your items for half the price)
    • Added a warning to the HTML generator
    • Fixed Towny integration
    • Fixed occasional ArrayOutOfBoundsExceptions
    • Fixed an error when a shop couldn't be created because a sign (not shop sign) was on other side of the block
    • Added SCL (SimpleChestLock) protection plugin to supported plugins
    • Updated Metrics (and added a new asynch thread for startup)
    • Removed Bukkit-1.0 workaround
    • Fixed plugin.yml formatting
    Version 3.34
    • Added statistics to the plugin
    • Added shop refund message
    • Recoded Register for ChestShop
    • Added VAULT support (Register is used when no Vault is found)
    • Added Heroes exp option for granting exp for shop creation
    • EXPERIMENTAL: Option to cause BlockState.update() every transaction (probably doesn't work, as Block.applyPhysics() is needed)
    • Added ChestShop.nofee permission for free shop creation (and no refunds)
    • Added a separate Admin Shop tax option
    Version 3.33
    • Fixed OPs being able to open Admin Shops, which have no inventory
    Version 3.32
    • Fancy sign formatting :D
    • Fixed LWC, Lockette and Default protections
    • Added restricted signs (Changed how they work)
    • Added an option to use another name
    • Fixed a bug where default protection was initialized too many times
    • Disallowed players to place another chest near a shop chest
    • Speeded up and fixed enchantment and durability in itemstacks
    • Changed /iteminfo a bit
    • Added /chestshop reload
    • Added many default permission kits
    • Fixed dye colors
    • Added an option to allow towny residents place shops in their town
    Version 3.31
    • Fixed potion stacking and adding items to stacks with a different durability
    • Modified /iteminfo a bit
    • Added a message to the DBpage generator
    • Added more functions to word datavalue
    • Modified the SignChange fourth line formatting
    Version 3.30
    • Added selling/buying of Enchanted items
    • Modified /iteminfo command to show enchantments (and their id)
    • Fixed LWC problem
    • Added an option to ignore creative mode
    • Fixed broken inventory.addItem(ItemStack) (adds up to custom Material max stack amount now)
    Version 3.29
    • Fixed block destruction
    Version 3.28
    • Configured multiple protection plugins to work at once
    • Added custom LWC protection limit message
    • Fixed block destroying
    • Added a new permission node, to let people create shops as other user (also usable for Towns, Factions etc.)
    Version 3.24
    • Fixed the plugin for java 6
    Version 3.23
    • Added WorldGuard support
    • Fixed protection
    • Added shop refund price
    • Updated Register
    Version 3.22
    • Added option to tax all transactions
    • Updated Register and BukkitEx
    • Can't place shops in the wilderness (Towny)
    • Fixed CraftBukkit's piston bug - no more try/catch
    Version 3.21
    • Added support for OddItem 0.8
    • Fixed getRetractBlock
    Version 3.2
    • Updated Register
    • Support for Townie's shop plots
    • Doesn't load Towny older than 0.76.0.47 (Yeah, long, custom, difficult method)
    • Replaced onBlockPistonRetract to use custom method instead of try/catch
    • You won't sell to your own shop anymore
    • Added Towny to dependencies
    Version 3.12
    • Added parenthesis in the code, fixed ALL the bugs
    Version 3.11
    • Fixed a bug with admin placed signs.
    Version 3.1
    • Changed how configuration works, so it works with plugin folder in different place
    • Added support for Deadbolt
    • By default, left clicking your own sign doesn't do anything
    • Restricted signs now check if you've got permission ChestShop.group.groupName
    • Added support for stacking unstackable things
    • Updated Register
    • Changed how plugins are loaded.
    Version 3.04
    • Added support for new Lockette
    • Fixed LWC
    Version 3.03
    • Fixed new lines in configs
    • Fixed sign protection
    • Doesn't protect with LWC if the limit is reached
    • Added a message when you paid for shop.
    • Moderators CAN destroy shops now
    Version 3.02
    • Fixed item amounts bigger than a stack
    • Fixed rare plugin start bug
    • Fixed block protection
    Version 3.01
    • Fixed LWC bug
    Version 3.00
    • Changed the name to 'ChestShop' - as it supports many more plugins
    • Re-coded everything from scratch
    • Eliminated all known bugs
    • Added support for many more economy plugins
    • Removed /buy and /sell commands
    • Opening chests by clicking the sign
    • Chest can be now placed in 1 block radius from the sign
    • Added chest masking (experimental)
    • Added mod permission
    • Changed Permissions from 'iConomyChestShop' to 'ChestShop'
    • ...and probably much more, because I must have forgotten something :)

    This post has been edited 112 times. It was last edited by Acrobot Feb 16, 2012 at 1:14 PM.
    max0704, Euthyphro, Jeroeny and 59 others like this.
  2.  
  3. Offline

    unrivaledneo

    Ooo, hope i read this right but this makes for player shops? and im guessing the stock is what is in the chest? Cant wait to try it out been waiting for a good player shop
  4. Offline

    Acrobot

    dev.bukkit.org profile:
    Acrobot
    My Plugins
    Yes, it is exactly what you were thinking :D
    You place stock in the chest, lock it, create a sign and you're done! :D
    Just remember to fill it regularly! :)
  5. Offline

    unrivaledneo

    Nice work! About time someone did this, tired of the global shops! and with permission can finally make a shopkeeper. Great work! Testing it out now and will see how it goes.
  6. Offline

    Phantom Index

    Can you make it so that we can sue item ids for the item we want to sell? Also can we have a feature where someone places a item in the chest so the owner of that chest would buy it.
  7. Offline

    unrivaledneo

    Everything works great for simple stuff, but im trying to sell like tools, i have tried using wooden pick, woodenpickaxe, woodenpick, any combo i can think of but still wont sell, though stone, dirt, single word items do.

    301 build i do not recommend, idk what was going on but crashed like crazy had to upgrade to 319 but it works!!
  8. Offline

    Seta

    AMAZING! Works like a charm!
  9. Offline

    Heinz Harald

    nice plugin! thx for developing it!
    Pls make it possible to buy and sell with chests. That would be great!
  10. Offline

    Dragonvine

    Hey, it works nicely, but the sign doesnt work unless I reset the server. :/
    Also I can't seem to get all the right itemnames right.
    When I do
    Dragonvine
    500
    5
    Iron
    it takes it as ironore.
    ive tried iron block and iron ingot but it doesnt seem to work. Having trouble with a couple other items too. Is there anyway you could make it compatible with item # also?
  11. Offline

    unrivaledneo

    had an idea anyway to get it so players could sell back to that merchant?
  12. Offline

    Mercury

    Please add ID support also.
    Also can you make for e.g MaxChests=3 per person?
  13. Offline

    unrivaledneo

    U can set it up so u can limit the amount of protected chests. with lwc works like that.
    --- merged: Feb 13, 2011 12:13 AM ---
    Anyone figure out how to tell tools?
  14. Offline

    Incendia

    Request: Store shop information in an sqlite or optional mysql database so we can use the top line as a store name
  15. Offline

    unrivaledneo

    Also Noticed I set up for wool.

    Unrivaledneo
    1
    35
    wool

    it works BUT no matter what color wool u put in, always gives u white.
  16. Offline

    jwideman

    Tried to set up for gold ingots, nothing worked.
  17. Offline

    Nijikokun

    :D <3
    Dreiak likes this.
  18. Offline

    unrivaledneo

    another thing :p it randoms whats to let certain people use shops and certain people not. same permissions but only some can use them.
  19. Offline

    iSushi

    I approve, I want that! ...

    Also:
    - When the stock is out, inform the owner, if (s)he's on. Not only the buyer.
    - Global shops, and sellable shops. :)
    - Placing chests away from the sign. So you can assign a huge storageroom for one shop/sign ^^
    - Be a hippe; add Colors in the chat.
    - Set up a config file, so you can edit stuff.
    - Like Mercury said, a config file with how many shops that can be placed. Or chests...
    - Hippe power! , Support for colored wool. (like unrivaledneo reported)
    - Make some more permissions stuff, like if you want people to be able to place more chests (good for roleplay servers, like tailor,shop-owner etc.)
    - And of course, finetune the permissions support, hotswap (plugin, look it up :)) and the permissions built in;
    Code:
    /pr
    (this is a reload commad for permissions) doesn't seem to work for it,
  20. Offline

    Bilkokuya

    Trying it with:
    Bilkokuya
    1
    10
    Dirt

    For some reason it's saying that the sign format is incorrect (no matter what I've tried). Does anybody have any suggestions? There is currently nothing in the server.log.
  21. Offline

    Nuuudel

    Sorry we have a problem... the Admins can be use the it with iconomy chest but the users cant it the message "[Permissions] You Cant buy from this shop
  22. Offline

    Mercury

    Also sometimes when player sells something. It tells that Out Of Stock actually there are enough blocks.
  23. Offline

    iSushi

    Write the permissions yourself in the permission file, You MUST write it yourself, don't copy the permissions. Then restart your server. Worked fine for me.

    What you need to write is simply
    - iConomyChestShop.shop.use
    --- merged: Feb 13, 2011 7:38 PM ---
    Haven't happened to me at all... never.
  24. Offline

    Adondriel

    When you get double chests working ill get it :D i cant wait!
  25. Offline

    Acrobot

    dev.bukkit.org profile:
    Acrobot
    My Plugins
    @Nuuudel - I guess your permissions file is corrupted or incorrectly configured.
    @Mercury, iSushi - I'm making so you can type in material or item id, this way it shouldn't cause bugs with some item names, also it will inform the seller about the end of the stock now.

    There is a config file now, pretty simple at the moment :)
    First post is going to be edited in a few minutes...
  26. Offline

    PandaVidya

    been waiting for a sign type shop for ever! Finally can get a useful economy set up!
    --- merged: Feb 13, 2011 9:04 PM ---
    whats the diference between iconomychestshop.zip and iconomychestshop2.zip
    Collin Chessell likes this.
  27. Offline

    Mercury

    I think it is Version 0.2
    But it still says Version: v0.1 in the beginning.
  28. Offline

    Acrobot

    dev.bukkit.org profile:
    Acrobot
    My Plugins
    Uh, sorry about that, iConomyChestShopV2 is version 0.2, I just forgot to change it :p
  29. Offline

    TheMap

    Add item trading support and ill be all over this. I use gold bars for trading.
  30. Offline

    iSushi

    Errrr... Small question. How do I protect chests?
  31. Offline

    Acrobot

    dev.bukkit.org profile:
    Acrobot
    My Plugins

Share This Page