[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
    Not yet - do you want me to add it?
     
  3. Offline

    Kainzo

    It would help a lot - we just added in Creeper explosions and they dont get protected =/
     
  4. Offline

    Carnage104

    I am having an issue where players dont recives sales from when they go offline.
    Craftbukkit 1000
    chestshop 2.75
    iconomy 3.0 i think...
     
  5. Offline

    vagynater

    hi,

    i have this problem when i make a shop it works fine but they cant sell stuff to me
    and reasenly it completly failed it doesnt do anything it acts like a normal chest but the chat
    say's the shop is made hmm idk whut i am doing wrong but anyway's how do i lock a chest ?

    greats joey
     
  6. Offline

    Sinazok

    Is there a download for a Bukkit 953 compatible release? Or will the listed version work fine for 953 as well? Would be awesome to have a list of older downloads like the iConomy page XD
     
  7. Offline

    Acrobot

    @Carnage104
    @vagynater
    Did you try ChestShop 3?
    Do you get any errors in console?

    @Sinazok
    I didn't change anything in code since B953 (in iConomyChestShop 2.75), so it should work, however I don't know if ChestShop 3 BETA will.


    I'd like to, but it's too much work to do this manually :p
    I should probably make some script that does that for me, or something

    @Kainzo
    I will, later today (01:50 here) :)
     
  8. Offline

    Kainzo

    Sounds good :)
     
  9. Offline

    chaseoes

    Updating to ChestShop 3 seems to have fixed my problem.

    But, now I'm getting this when I start my server:

    Code:
    2011-07-23 23:56:56 [INFO] DataSourcePool [ChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-23 23:56:57 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-07-23 23:56:59 [INFO] Entities enhanced[0] subclassed[1]
    
    Does it mean anything?
     
  10. Offline

    Syntaxlb

    Hi, i have iConomy AND BOSEconomy on my server (for multiple account). In default, iConomyChestShop use iConomy. How i can force to use BOSEconomy and not iConomy ?
     
  11. Offline

    JanTTuX

    why people can sell broken/used tools and armors?
     
  12. Offline

    Acrobot

    @chaseoes
    It's not an error :)
    It just means your database is turned on, you can turn it off in LOG_TO_DATABASE - false :)

    @Syntaxlb
    In ChestShop 3, in config.yml you can find "PREFERRED_ECONOMY_PLUGIN". Just set it to BOSEconomy :)

    @JanTTuX
    Erm... They can't?
    In iConomyChestShop there was that option in config.yml, allowUsedItems. If it's set to true, people can sell damaged items, if not, they can't.
     
  13. Offline

    JohnTheRipper

    I might be missing this somewhere, but is there a method to turn OFF the message that pops up whenever someone sells/buys to/from your shop? It's pretty annoying, seeing as I set up a large shop at spawn which spams me like crazy whenever someone uses it. I don't want to use admin signs for it, I just want to be able to turn OFF that message.
     
  14. Offline

    Acrobot

    @Kainzo
    Updated the plugin - has anti-creeper and anti-tnt protection.

    @battlekid
    Hmm... Not exactly... I am trying to do something like "preferences" :)
     
  15. Offline

    lowmotion

    How can i make, that a user can Buy an sell, but nor create a shop
    Permissions Please (=
    i tried ChestShop.shop.buy
    iConomyChestShop.shop.buy
    but it doesn't worked.
     
  16. Offline

    Kainzo

    After throwing this dev build #11 in, I'm seeing a bit of performance hit.
    In order to manage chestshops from not being exploded on - are you disabling explosions near every chestshop? can you go a little more indepth on the method you used?

    Edit: After testing with and without this with 60ish players. It was spiking latency / block lag a little hard.
     
  17. Offline

    Acrobot

    @Kainzo
    Hmm... It checks every block in explosion, if it's a chestshop...
    Hmm... If you have got any clue about how can I do that, please write here, as I really need to optimize that :/
     
  18. Offline

    fLynx

    First of all, i really like the Plugin, thanks for that. :)
    I'm building a marketplace, and i think it would be nice if you can sell packets, like a redstone starter packet. (for example Redstone Dust + Repeater + Redstone Signals) Is something like that already possible?
     
  19. Offline

    Acrobot

    @fLynx
    Not really :/
    But you can make one double chest, and make 3 signs near it, one selling dust, one repeater, one wires :)
     
  20. Offline

    fLynx

    Thanks for the fast answer, works also. :) Anyway those packets would be very nice.
     
  21. Offline

    bularax

    Dear acrobot,
    I appreciate your work on this plugin :)

    But i have a problem with permissions. Only the admin group can open them. This is the list that i used for the 'Civilian' group.

    Code:
        Civilian:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Immigrant
            permissions:
            - minecraft.give
            - superpickaxe.*
            - lockette.user.create.*
            - godPowers.godmodeOnLogin
            - godPowers.godmode
            - minecraft.tp
            - controllerblock.destroyOther
            - controllerblock.modifyOther
            - controllerblock.create
            - controllerblock.admin
            - codes.redeem
            - iConomy.access
            - iConomy.bank.access
            - iConomy.bank.deposit
            - iConomy.bank.join
            - iConomy.bank.join.multiple
            - iConomy.bank.leave
            - iConomy.bank.list
            - iConomy.bank.main
            - iConomy.bank.main.change
            - iConomy.bank.main.set
            - iConomy.bank.main.view
            - iConomy.bank.transfer
            - iConomy.bank.transfer.multiple
            - iConomy.bank.withdraw
            - iConomy.bank.list
            - iConomy.bank.payment
            - iConomy.bank.rank
            - iConomyChestShop.shop.create
            - iConomyChestShop.shop.buy
            - iConomyChestShop.shop.sell
    It won't let players that are in the 'Civilian' group buy/sell or create a shop.

    I'm using the latest version with permissions 3.x and iConomy 5.x

    Do you have any idea what the problem can be?

    Thanks,
    Bularax
     
  22. Offline

    Acrobot

    @bularax
    "latest version" - do you mean ChestShop?
    If that's the case, just change the permission nodes to
    ChestShop.shop.*
     
    bularax likes this.
  23. Offline

    bularax

    Thank you so much! :D

    Never seen a faster answer than this :)
     
  24. One thing with Beta 9 is that when i make a shop for someone else with lwc turned on it looks the chest and sign to me :/ is there anyway to get it to lock to the name on the sign ?
     
  25. Offline

    Robin9000

    Hi when I shall buy stuff is coming up "No economy plugin found!" what plugin shall I use for this any example?
     
  26. Offline

    Acrobot

    @Robin9000
    - iConomy
    - BOSEconomy
    - Essentials Eco

    There 3 plugins are supported by ChestShop :)

    @Spidi
    Hmm.. I forgot that, thanks :)
    @bularax
    No problem :)
     
  27. Offline

    Kainzo

    @Acrobot
    Looks like we found a nasty chest exploit .. hop on HC and check it out... players can steal from Airbus' chestshop.
     
  28. Offline

    MiniKahn

    Can you add in the Config the names of the admin Shops?

    Like Supermarket,AdminShop,ToolShop

    Now Supermarket AdminShop and ToolShop are Adminshops and can use from everyone and the shop can't get out of Stock..
    Sry 4 my bad english^^
     
  29. Offline

    Acrobot

    @MiniKahn
    Nice one, in ChestShop 3 it's possible to change the name to only 1 name :)
    I'll try to add that, thanks!
     
  30. Offline

    MiniKahn

    Very Nice..
    Now the stupid name "AdminShop" can change to other Names !
    Jehaa^^
     
  31. Offline

    LoStIt

    I'm trying to make an admin shop, but whenever I make one it says "Shop owner doesn't want you to sell/buy here!"
     

Share This Page