[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

    arsjet

    bukkit bulid 617
     
  3. Offline

    Acrobot

    @arsjet
    Woooah. There could be your problem. This plugin was tested on CB677, and I cannot guarantee it will work on other ones.
     
  4. Offline

    arsjet

    odd.jar tested at 677?
     
  5. Offline

    Pr4w

    Hey, feature request :)
    Would it be possible to log everything to MySQL ? :)
     
  6. Offline

    Acrobot

    @arsjet
    I am using it with 677 :)

    @Pr4w
    Ugh, I would have to learn MySQL... But yeah, somer time in the future
     
  7. Offline

    arsjet

    I can use in 677 now.
    Sorry.
     
  8. Offline

    Pr4w

    @Acrobot, could come in handy. Would mean people could add transaction logs to their AdminCP, and stuff like that :)
    Another thing that could get your plugin a bit more popular is a way to make signs a bit nicer. Already asked about the colors, and that's cool, but how about something a bit nicer ?
    So far, we have :
    Line 1 : Nick
    Line 2 : Stack
    Line 3 : Buy:Sell
    Line 4 Item name

    Why not have it so it displays something like :
    NICKNAME is selling STACK of ITEM for PRICE

    Would something like that be possible? Ie, you write the lines the usual way, and then when done, it changes to this kind of layout.
    That would make it so much nicer for users ! :)
     
  9. Offline

    Acrobot

    @Pr4w
    Yeah, I just though about that :) I can make it to work even without changing :) Just make it in [] <- now >15 char usernames will work! It will be sth like [AcrobotPL] is selling [64] of [wood] for [15] - but I don't know if people woud like that, because it doesn't allow for selling to the same shop.
     
  10. Offline

    Pr4w

    I suppose it depends, yeah.. Well I would personally love it ! :p
    Worst case, it could be something that is handled via the config file, no? So you could have BuyOnlyShop: true/false, so that people choose how they want their shop to look like.

    Well, saying that.. Could you not fit it on a sign? Like :
    [Acrobot] is selling [64] of [wood] for [15] and buying for [10]
     
  11. Offline

    Willobe

    Great Plugin, it works well with Towny Shops too, just Have the shop redirect the funds to the town or nation "town-Name" be care you dont BANKRUPT your town :p


    Question... is there a way to have it check if the sign is only X amount away, not direction too? or would that mess up chests to close.. i want some of my shops to be up and some down, etc etc just depends on what would be best for the area
     
  12. Offline

    Acrobot

    @Willobe
    Not really :/
    It would really mess up things, maybe in future, ok? :)
     
  13. Offline

    Plush Ninja

    A nifty plugin indeed - our players have really taken into setting up shops and building large malls. :D

    I have a feature request that would help us to gather some statistics off-line: if the log entry for a shop transaction included the number of items bought/sold, it could be used to calculate prices per unit.

    For example:
    Code:
    [iConomyChestShop] Donald bought 64 WOOL with durability of 0 from Daisy for 200 Zorkmid
    Thanks for a great plugin! :)
     
  14. Offline

    Nitoxdoan

    @Acrobot it's fuck my other plugins (lockette and Myhome)
     
  15. Offline

    Acrobot

    @Nitoxdoan
    It didn't...
    You still need Permission nodes for these plugins, or make it without Permissions...

    @Plush Ninja
    Sure thing!
     
  16. Offline

    samsoccerboyz

    Group Manager isn't working help. If you can join my teamspeak so I can resolve this I've tried both permissions and Group manage both arent working.

    TSinfo
    Ip 85.236.100.27:18877


    Code:
    groups:
      Default:
        default: true
        permissions:
        - essentials.help
        - essentials.helpop
        - essentials.list
        - essentials.motd
        - essentials.rules
        - essentials.spawn
        - general.afk
        - general.spawn
        - general.player-info
        - general.list
        - iConomy.payment
        - iConomy.rank
        - iConomy.list
        - iConomy.access
        - iConomyChestShop.shop.create
        - iConomyChestShop.shop.buy
        - iConomyChestShop.shop.sell
        - iConomyChestShop.command.iteminfo
        - essentials.mail
        - essentials.mail.send
        - essentials.whois
        - essentials.msg
        - essentials.depth
        inheritance: []
        info:
          prefix: &e
          build: true
          suffix:
            suffix:
      Admin:
        default: false
        permissions:
        - *
        inheritance:
        - default
        info:
          prefix: &4
          build: true
          suffix: 
     
  17. Offline

    Snowfalls

    Hi, I have placed all the permissions code in, but it still doesn't allow me to start the shop.
    Please help :D
     
  18. Offline

    KevGraf94

    35:15 for example isnt working for me - incorrect item ID???
     
  19. Offline

    Pr4w

    Install OddItems ;)
     
  20. Offline

    KevGraf94

    thanks ill try it!
     
  21. Offline

    yottabyte

    Is there any protection for players creating shops in somone elses name?

    Say, a player creates a sign that has the shop stuff in it but not their name. Reset the sign and give him a message. Something like that!
     
  22. Offline

    Acrobot

    @yottabyte
    Sure, it doesn't show a message but automatically changes to player's name.
     
  23. Offline

    Willobe

    Um everything seems to be working ok but i still cant get the red wool or other type of wool to be sold. i have odditem installed and i get the item info from /iteminfo

    what am i doing wrong?
     
  24. Offline

    Acrobot

  25. Offline

    Willobe

    Yep that was it :p thanks alot lol i just thought it was gonna work without any extra cuz it was giving me the item id number back right with / command :p oh well works now THANKS
     
  26. Offline

    Kainzo

    When spamming mass amounts of gold to a sign in stacks of 64 - we notice that some gold/stacks get lost in the translation.

    @acrobat you may want to look into or set how fast you can sell to a chest shop - maybe hardcode a wait time between each transaction.
     
  27. Offline

    Acrobot

    @Kainzo
    Hmm.. I think wait time would be a nice thing to have. I'll add it.
     
  28. Offline

    Acrobot

    @Willobe
    Gonna make it not-odditem-dependant, but when I figure how java string.find(String string) works... Well, it doesn't for me.
     
  29. When normal users try it it doesnt let them sell or buy [permissons] you can not buy/sell from shops.
    this is my groups.yml:
    Default:

    default: true

    permissions:

    - essentials.help

    - essentials.helpop

    - essentials.list

    - essentials.motd

    - essentials.rules

    - essentials.spawn

    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.sell
    - iConomyChestShop.shop.use
    inheritance: []

    info:

    prefix: '&e'

    build: True

    suffix: ''
     
  30. Offline

    Fetman

    The best shop plugin! But, i can't make a store with bukkit for Minecraft 1.5. Can you update it?

    Thanks a lot!
     
  31. Offline

    Acrobot

    @Fetman
    I'll update it once there's an official (reccomended) bukkit build :)
     

Share This Page