[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

    matymathew

    So i just updated to 2.0 and i can still not make new shops. Any one have any ideas. Im running 612
     
  3. Offline

    Acrobot

    @matymathew
    You know, it would help me if you read what I posted in the topic about the bug reports...
    But whatever, I'll try:
    - You've got badly configured Permissions config
    - You misplaced the Permissions
     
  4. Offline

    matymathew

    yeah sorry was just reading that thanks
     
  5. Offline

    Deadlystrike

    What is the name/id that your plugin uses for the Lapis Lazuli Chips

    Ive tryed many things none work and the offical name is blue dye... also duesnt work
     
  6. Offline

    matymathew

    CB version 612
    Permissions - esstenials 2.1
    Permissions config file - Esstenials groupmanger iron forge
    My config file - is it yes/only config
    2011-04-04 18:54:37 [INFO] [iConomy] Logging is currently disabled.
    2011-04-04 18:54:37 [INFO] [iConomy] v4.65 (Kenzi) loaded.
    2011-04-04 18:54:37 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-04-04 18:54:37 [INFO] [iConomy] hooked into Permissions.
    2011-04-04 18:54:37 [INFO] [iConomyChestShop] version 2.0 initialized!
    2011-04-04 18:54:37 [INFO] [iConomyChestShop] iConomy version 4.65 loaded.
    2011-04-04 18:54:37 [INFO] [iConomyChestShop] Permissions version 2.5.1 loaded.
    2011-04-04 18:54:37 [INFO] [iConomyChestShop] LWC version 2.11 loaded.
     
  7. Offline

    Acrobot

    @Deadlystrike
    If you use OddItem, you must set it up like
    "351;4:bluedye|lapislazuli|lapis"

    @matymathew
    Did you assign the Permissions correctly?

    Okay, I'm going to sleep, goodnight
     
  8. Offline

    kmccmk9

    Ok so this is what I typed on the sign
    and nothing happens when you click on the sign
     
  9. Offline

    killerbeez

    What version of the mod are you using? What is your config?

    Should do

    1
    5:0
    STRING

    and the rest should auto update if you have permissions setup right or you are an OP/Admin.
     
  10. Offline

    Deadlystrike

    How do i write factions or decimals for prices
     
  11. Offline

    kmccmk9

    That's exactly as I set it up in the permissions file. Moderators and above can do it and I am an admin. After typing what you have, and right clicking, it still does not work. I get no message that anything was created
     
  12. Offline

    diegokilla

    I can't find the new config.yml, Acrobot stated it was in the new zip, but all i see is plugin.yml... any help would be appreciated
     
  13. Offline

    killerbeez

    Maybe try reinstalling? If you can't buy or sell or create than something is wrong.

    One request is that if shops are out of stock, the message that tells the seller that they have a shop out of stock actually says the name.
     
  14. Offline

    kmccmk9

    Alright I will give that a shot. I definitely had the crate stocked though...
     
  15. Offline

    laerbn

    The exact same thing is happening to me! I'm the admin and I CANNOT create another shop. I've tried every variation of typing on the sign, even what is correct, and just nothing happens.
     
    kmccmk9 likes this.
  16. Offline

    kmccmk9

    Ya exactly my problem. Hmm can non admins make shops?
     
  17. Offline

    Etsijä

    I can happily tell Acrobot that the dummy account trick works like a charm! I set up in iConomy a dummy account "Metro", set it to a huge balance and went on to create a player chest with

    Code:
    Metro
    1
    0:3
    IRON_INGOT
    Now, every player can sell Iron Ingots to my metro project for 3 coins a piece - and, I get the sold iron to build more rails! Yay, way to go!
     
  18. Offline

    Etsijä

    EDIT: Nvmnd, I am stupider this morning as usual.
     
  19. Offline

    Puremin0rez

    Is a option for AutoFill for Item Names ever going to return? I really miss it and had no real problems with it.
     
  20. Offline

    Acrobot

  21. Offline

    Acrobot

    @kmccmk9
    @laerbn
    You probably messed with the plugin when the server was turned on.
    Please TURN OFF THE SERVER, delete all previous iConomyChestShop files and upload new plugin.

    @killerbeez
    Sure, I'm gonna make it now :)
     
  22. Offline

    killerbeez

    @Acrobot
    Awesome, will upgrade to 2.0 when that is put in, atm people are asking which one of their shops is out of stock constantly in chat. How much more performance wise would it be to add a login message or a /shopinfo command to tell them how much money they made since their last logout and if any shops are empty with the itemname of the shop that is.
     
  23. Offline

    Uciapany

    Have this same. Buying from old shops work but creating new don't. I use CB617 and EssentialsGroupManager. I am admin with *, default users with permissions cant create too.
    I deleted folder and .jar and downloaded again but didn't help.
     
    Nader likes this.
  24. Offline

    Nader

    Ok yea im getting this too..... oh well.....
    Please look into it acro, we can't create shops at all =|...
     
  25. Offline

    Acrobot

    @Nader
    Ok, I'll look into it :p
    Okay, it seems like you just forgot, that 2.0 is totally new and kept your old Permissions, didn't you? Permissions node changed!

    @killerbeez
    Sure, I have new version on my PC that has that.

    The 2nd one:
    I would have to design the /shopinfo command and the logout sth.
    This may take some time :)
     
  26. Offline

    Etsijä

    I can confirm that everything is working in 2.0 - if you set your Permissions nodes properly.

    Here are the proper nodes in 2.0:

    iConomyChestShop.shop.create - creating a shop
    iConomyChestShop.shop.buy - using the shop
    iConomyChestShop.shop.sell - selling to shops
    iConomyChestShop.shop.admin - admin
    iConomyChestShop.command.iteminfo - more in "ItemInfo" section
     
  27. Offline

    Syntaxlb

    Hi,

    it's possible to refuse a buy with a shop, if the seller is not in the group "Shop" for exemple ?
     
  28. Offline

    Acrobot

    @Syntaxlb
    You mean, if if someone doesn't have permissions to sell?
    You can use Permissions node -> iConomyChestShop.shop.sell
    If someone doesn't have it -> he/she can't sell to any shops.

    Also, @killerbeez
    2.01 is out and it says which chest is out of stock.

    @kmzkamikaze
    Fixed
     
  29. Offline

    City Builder

    Something that would be really useful is for the name of the item on the shop to update to OUT OF STOCK when it runs out of stock so that the shop keep doesn't need to go around opening all of his shop chests to see if they are out of stock or not, since not everybody is online when they run out of stock.

    Just an idea

    Will try the 2.0 or 2.1 updated plugin later today when I have time to make sure it's working correctly on our server.

    Thanks

    Edit: Also when users buy stuff from a shop, the stuff doesn't show up until they log off the world and log back in again. Is this a bukkit issue, or this plugins issue, or maybe a minecraft server issue?

    Thanks again,
     
  30. Offline

    killerbeez

    @City Builder
    I suggested something like that but better.
    "to add a login message or a /shopinfo command to tell them how much money they made since their last logout and if any shops are empty with the itemname of the shop that is."

    That was a bug he fixed, should update.

    @Acrobot
    Testing now, thanks.
     
  31. Offline

    Acrobot

    @City Builder
    The 1st one was done in 2.01
    The bug -> it's not my plugin's fault, UNLESS you still run alpha something...
    You need to TURN off the server, delete the old plugin and upload the new one.
     

Share This Page