[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

    Mercury

    Actually inventory was not full at all. It was almost empty.
     
  3. Offline

    Acrobot

    Mercury
    Hmm, I have no clue then - you should probably ask the iConomy's author, but he doesn't visit Bukkit now :/
    I have just implemented Vault in newest ChestShop version (should be out in few days), it will let you use a lot more plugins.
     
  4. Offline

    RagingExt

    Acrobot

    @RagingExt
    Go to bukkit.yml, change spawn-radius to 0.

    I changed it to 0, restarted server, recreated the shop, it didnt work, walked 20 blocks away from spanw, made the shop, still didnt work, im able to buy/sell, but the group i set the permission to, they can buy but not sell
     
  5. Offline

    Acrobot

    RagingExt
    Hmmm... Mind giving me the IP to the server?
     
  6. Offline

    Dargan

    Im having an issue cant sell or buy items, when I try to buy the item, I lose money but dont get the items I have a 1.1 version of bukkit, not sure which but yeh
     
  7. Offline

    Acrobot

    Update to the latest version of CraftBukkit.
     
  8. Offline

    Euthyphro

    Found a huge bug:

     
  9. Offline

    Zork766

    Great plugin, thanks.:)


    Just 3 questions about webstats. I want to have a web page on my site, with all the transactions.
    I use dynmap webserver to acess my chestshopstats.html page, and it works good. but,

    -Is there a way to change statisics live to infinite? I've tried -1, doesn't seems to work.
    -Is it possible to change path for local log file?
    -Is there stats variables for player client and shop account(name)?

    thanks.
     
  10. Offline

    BBFPaco

    A simple solution would be a config setting for those who use permissions maybe? I believe this is how some plugins do it as I know I've seen and set that setting before in multiple plugins.

    Maybe chat with ElgarL to see how he handles it in Towny? He is really good at working with people in their IRC when he is available.

    I totally understand if you don't have the time and am not going to bug you about permissions anymore. The fix works for me for now. :)

    Here's a snippet from the Towny configuration:

    Code:
        # True to attempt to use GroupManager, PEX, bPermissions, Permissions2/3 or BukkitPerms
        # False to disable permission checks and rely on Towny settings.
        using_permissions: 'true'
     
  11. Offline

    Acrobot

    BBFPaco
    This won't work as intended, as * permission has to be defined in the plugin.yml
    Thanks for the effort, though :)

    Euthyphro
    Wow, that is a huge bug, but I've found that you're running an outdated version of ChestShop. I suppose updating it would fix your issues :)

    Zork766
    Just do 9999999999999
    :p
    Change path for a log file? No, but you can change the database location in bukkit.yml
    No, I log all the transactions. You'd have to query the database to find out the stats for a player/shop.
     
  12. Offline

    Buckethead

    want server account to have infinite money
     
  13. Offline

    Acrobot

    Buckethead
    Just set server account to "" (double quotation marks)
     
  14. Offline

    Buckethead

    ok ill try that
     
  15. Offline

    RagingExt

    Acrobot
    @RagingExt
    Hmmm... Mind giving me the IP to the server?

    The ip is:
    mc.clanrf.com
     
  16. Offline

    TSRDM

    Acrobot

    Thanks for the reply and I tried to use pastebin but it would not work for me. Hopefully just pasting it here is okay? I look forward to any suggestion you have!

    ~TSRDM


    plugin:
    permissions:
    system: default
    copies: null
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance: null
    permissions:
    - foo.bar
    Builders:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - foo.bar
    - commandbook.who
    - commandbook.motd
    - commandbook.rules
    - commandbook.spawn
    - commandbook.say
    - commandbook.say.me
    - commandbook.msg
    - commandbook.whereami
    - commandbook.whereami.compass
    - commandbook.whois
    - commandbook.whois.others
    - lwc.protect
    - chestshop.shop.buy
    - chestshop.shop.sell
    - chestshop.shop.create
    - tombstone.use
    - tombstone.large
    - tombstone.lwc
    - tombstone.sign
    - tombstone.freesign
    - tombstone.quickloot
    - tombstone.cmd.tomblist
    - tombstone.cmd.tombfind
    - tombstone.cmd.tomb.reset
    - mcmmo.regeneration
    - mcmmo.chat.partychat
    - mcmmo.commands.ability
    - mcmmo.commands.ptp
    - mcmmo.commands.party
    - mcmmo.commands.whois
    - mcmmo.commands.myspawn
    - mcmmo.commands.setmyspawn
    - mcmmo.ability.woodcutting
    - mcmmo.ability.mining
    - mcmmo.ability.axes
    - mcmmo.ability.excavation
    - mcmmo.ability.swords
    - mcmmo.ability.unarmed
    - mcmmo.ability.herbalism
    - mcmmo.skills.*
    - mcmmo.item.chimaerawing
    - arg.user
    - arg.claim
    - catacombs.gold
    - catacombs.recall
    - catacombs.reset
    - iConomy.holdings
    - iConomy.help
    - iConomy.payment
    - iConomy.accounts.give
    - iConomy.accounts.status
    - appleseed.plant.*
    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - bar.foo
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance: null
    permissions:
    - '*'
    users:
    TheNo1Yeti:
    group: Admins
    permissions: null
    Herpina:
    group: Moderator
    info:
    prefix: Moo
    suffix: Cow
    permissions:
    - herp.derp
    Derpina:
    group: Admins
    permissions:
    - -derp.derp
    Dunjonmaster:
    group: Admins
    permissions: null
    Syngen:
    group: Builders
    permissions: null
    [More users listed from here but deleted for privacy reasons]
     
  17. Offline

    Acrobot

    TSRDM
    It's capital C and S in ChestShop, so you have to change your permission nodes like:
    ChestShop.shop.create instead of chestshop.shop.create
    etc.
     
  18. Offline

    rockyct

    I'm sure you've probably answered this but for some reason I can't search this thread...but is there a way to restrict shops to a world guard region or some other definable region. I'd like to have shops in one location to keep the server clean of random shops all over the place.
     
  19. Offline

    Acrobot

    rockyct
    Nope, not possible at the moment :/
     
  20. Offline

    rockyct

    Ok, thanks for the reply.
     
  21. Offline

    TSRDM

    Acrobot

    Thanks for the suggestion but that did not work. I THOUGHT I had that exact syntax (capital C and capital S) in my very first attempt but I tried it again just to be sure and users still get the "You Do Not Have Permission To Do That!" error message.

    I have also tried configuring lwc to have a private and public chest AND I always create an Admin Shop chest for my tests. The only difference is that if the chest is locked then users get the permissions error message as well as the "This chest is protected by a magical spell" lwc protection message.

    Do you think this might have anything to do with ARG (Auto Region Guard) or WorldEdit? I have made sure that my testing occurs in a chunk not claimed/owned by anybody but you never know.....

    Thanks again and I look forward to your response!
    ~ TSRDM
     
  22. Offline

    Iron79

    I love the plugin ... good work
     
  23. Offline

    pacmanjones

    Acrobot

    Could you make a permission node that lets a user bypass chest creation fees?
     
  24. Offline

    chiekurins

    Admin shop works fine for usual users, but there is one problem.
    You can buy items(shows message you have bought....), but you dont get them in your inventory, unless you have at least 1 of specified item.
    is there any way to fix this.?
     
  25. Offline

    Acrobot

    pacmanjones
    Ok, could you just post that as a ticket on the BukkitDev page?

    chiekurins
    Sorry, but I think that is your CraftBukkit build's problem.
    Are you running the latest one?

    Iron79
    Thanks :)

    TSRDM
    Hmm, the error you are posting is an error when a user doesn't have the permission needed :/
    Are you sure you aren't running any other permission plugins/bridges?
     
  26. Offline

    chiekurins

    Yes i'm running the latest, but it isn't the stable version (for minecraft 1.1.2)

    EDIT:

    Downloaded latest dev-build and now it works the way it used to be
     
  27. Offline

    Acrobot

    chiekurins
    It's probably the issue. I'd wait for official Recommended Build - it shouldn't have that bug.
     
  28. Offline

    James Lawrence

    There are a ton of pages on this thread and the "search this thread" button doesn't work for me it searches whole forum.

    Has there been talk of adding buy/sell experience?

    I've searched and searched for a plugin that does this, but the one thing I don't want they ALL use... commands. I don't want someone to just be anywhere and buy/sell their exp.


    So since I already use this plugin for all my buy/sell needs, I was hoping it would be added. Mainly to and from the server, not really looking for player to player but I'll take it if it means both.
     
  29. Offline

    Acrobot

    James Lawrence
    Yeah, it's been discussed before. It could be done, but it would be very tricky to do that now. It should be possible in ChestShop 4 :)
     
  30. Offline

    James Lawrence

    Thank you, I'll look forward to it. Some of my players will be happy to hear its at least possible.
     
  31. Offline

    Acrobot

    James Lawrence
    The only problem is that ChestShop 4's development is halted at the moment, because bukkit is ongoing major changes (for the better, of course :p). That means that almost all the code I write isn't needed :)
     

Share This Page