[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. I don't know. It was a long time ago.
     
  3. Offline

    RyGuy147

    Ideas:
    -Top line changes color for in stock, out of stock, and Admin Shop (colors are set in the Config.)
    -Ability to broadcast a message when someone makes a shop (telling what they are selling/buying and for how much)
    -A /worth command that gives a configurable list of items and their approximate value
    -Punching a chest sign will tell the stock, what is being sold, the cost, the unit price, etc.
     
  4. Offline

    selonianth

    latest Craftbukkit (Name is too long to say)
    Version 3.42 of chestshop.

    I tried to create a shop for bonemeal and can't get it to work. I tried Bone Meal (got me Bone), I tried 351:15 (which gave me Inksac) and 351 : 15 (also inksac)
     
  5. Offline

    Acrobot

    RyGuy147
    I can't do the colour changing, unless Minecraft treats colour codes specially.
    The broadcast one - really nice :)

    /worth - not possible.

    Puching the chest - really nice , but you can have multiple signs linked to one chest.

    Also, could you create this as a ticket on dev.bukkit.org ChestShop's page?

    selonianth
    Bonemeal IS inksac - Blame Notch, not me.
    Bonemeal is an inksac, just with a different damage value.
     
  6. Offline

    MC913

    Hey on my server (hamachi bukkit) i also have the plugin essentials and chest shop when ever someone buys it The shop doesn't say anything but the item inside and there money decreases PLEASE HELP! Ill post a screenshot of what it says
     
  7. Offline

    RyGuy147

    1.Why is /worth impossible?
    2. Punch the SIGN, not the chest.
    3. I get that is could use up 2 extra characters. Change the formatting so that the first line is like [SHOP] or [shop], or just cut off the username like it does for names that are too long.
    4. OK, will do.
     
  8. Offline

    Acrobot

    RyGuy147
    Well, because you can't just calculate approximate value, because you'd have to have a large database, and even with it, it would be impossible to calculate that properly. Maybe sometime later, I don't know :/

    Also, you realize, that ChestShop doesn't actually use any database for storing shops, so #3 can't be done.

    And punching the sign - no, you already do that to sell items.
     
  9. Offline

    Makan747

    Swedish Translate do not work ....



    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:91)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:91)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:91)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:91)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:91)
    26.05 01:03:12 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.createDefaultValues(BreezeConfiguration.java:135)
    26.05 01:03:12 [Multicraft] Skipped 3354 lines due to rate limit (30/s)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at com.Acrobot.ChestShop.Config.BreezeConfiguration.load(BreezeConfiguration.java:92)
    26.05 01:03:11 [Server] SEVERE at
     
  10. Offline

    RyGuy147

    Oh, yes, I forgot about that. Possibly something else... maybe punching it with a special item or something.

    And I've seen the longnames.yml or whatever its called. Why can't you just change it so that it is 2 characters less for it to dump the name on longnames.yml?
     
  11. Offline

    Acrobot

    RyGuy147
    Well, it would work nicely, however disc I/O operations cost much processing power.

    That way, ChestShop would work slower, and HDD is often the bottleneck of a server...

    Makan747
    You didn't edit the source code, just the language.yml file?
     
  12. Offline

    Makan747


    Yes, only the language.yml file.
     
  13. Offline

    jastrick

    could you add an editable file to edit all the admin shops?
    i feel that would be very handy, instead of having to break and retype all of the signs to change prices. and it would be a very nice addition
    -thanks very much!
     
  14. Offline

    muggerfugger

    i'm having a major problem, im using the latest 1.2.5, all updated chestshop, vault, and iconomy, and so on.

    It creates the shop just fine, lets people buy stuff, deducts money from them, but it doesnt give the money to the shop owner.

    Is there a fix for this? or does anyone know what i'm doing wrong?

    edit:
    just tried with boseconomy. same thing.
     
  15. Offline

    Acrobot

    muggerfugger
    Hmm, it worked for me fine. Are you sure that your TAX_AMOUNT isn't too high?
     
  16. Offline

    muggerfugger

    im sure unless 0 is too high?
    all settings are on default.
     
  17. Offline

    tyzoid

    Acrobot
    Great plugin. I've been using this since last summer, and my users love it.

    One small request (take your time :p)
    Could you agregate buy/sell messages?

    For example:
    Code:
    01:33:29 [INFO] [ChestShop] M*********** bought 16 WOOL for 6.0 from Admin Shop
    01:33:29 [INFO] [ChestShop] M*********** bought 16 WOOL for 6.0 from Admin Shop
    01:33:31 [INFO] [ChestShop] M*********** bought 16 WOOL for 6.0 from Admin Shop
    01:33:31 [INFO] [ChestShop] M*********** bought 16 WOOL for 6.0 from Admin Shop
    01:33:31 [INFO] [ChestShop] M*********** bought 16 WOOL for 6.0 from Admin Shop
    
    Could be condensed down to:
    Code:
    01:33:29 [INFO] [ChestShop] M*********** bought 32 WOOL for 12.0 from Admin Shop
    01:33:31 [INFO] [ChestShop] M*********** bought 48 WOOL for 18.0 from Admin Shop
    
     
  18. Offline

    Acrobot

    tyzoid
    Well, that's exactly one of the points of the long update now - to make something like you posted real :)

    Well, it probably won't be in the next update, but it will be easy to add :)

    muggerfugger
    Hmm...
    Are you sure you are running 3.42?
    Did you try other Vault build?
    Are you sure that the sign is correct?
     
  19. Offline

    tyzoid

    Sweet!
    Looking forward to it. (again, no rush :p)
     
  20. Offline

    muggerfugger


    im using the latest everything, and yes the sign is correct, it takes the money and gives the item, but doesnt give the money to the seller ( the one who created the sign)

    and just tried an older version of vault, it and same thing. Also same thing if i completely remove vault and write "iconomy" in the config.

    Also same thing if i stop using the iconomy plugin and use another economy plugin.
     
  21. Offline

    Acrobot

    muggerfugger
    Ok, I'll check that.
    Also, do you get any errors in the console?
     
  22. Offline

    muggerfugger

    nope not really, just bought something and console only says

    edit: oh wait, haha i see what i did wrong . im such an idiot.
    First line must have the sellers name, or left blank (creates sellers name automatically), ha i put the name of the item on the first line.

    i didnt realize that till just now when i read the console and it said FROM LADDERS!

    haha im sorry, my bad. i work third shift so im tired and out of it all the time. sorry for wasting yours.


    edit:
    okay now that its giving the seller the money, i noticed a problem.
    sold dirt to someone for 100, but it only gave me 80, but it clearly says 100 on the sign.
    wasnt tax because the extra money didnt vanish, it just only took 80,
     
  23. Offline

    Acrobot

    muggerfugger
    Yeah, haha :p Don't worry, it happens to all of us :)

    Hmm... Are you sure that you had enough dirt in your inventory? One of the latest ChestShop improvements is the ability to do a "partial transaction" - for example, if it says "$100 for 100 items", and you have only 80 items, you get $80 instead of $100.
     
  24. Offline

    rtcabooservb

    Still waiting on a fix for using different types of stone bricks to sell and other blocks that are broken using damage values. :( Any ETA? Been waiting over a month.
     
  25. Offline

    bt1996

    How do you go by selling special potions?
     
  26. Offline

    Acrobot

    rtcabooservb
    Well, the version is already finished, but I started improving it. Tell me - do you want an unfinished version that can sell bricks, or a bit later a finished version that will allow me to do much much more?

    bt1996
    "Special" potions?
     
  27. Offline

    bt1996

    Im Sorry For not clarifing I mean Potions in general like how do a sell a potion of healing 2 for intance?
     
  28. Offline

    mitchell10901

    my admin shops wont work it just says "you can not sell or buy here" what is the matter with it?
     
  29. Offline

    Acrobot

  30. Offline

    McGamingcast

    the perms dont work with me
     
  31. Offline

    APhilosopher

    hey im using PEX and i cannot get the perms to function proper

    my default group has perms

    -ChestShop.shop.create
    ChestShop.shop.buy
    ChestShop.shop.sell


    i added the -chestshop.shop.create because i do NOT want this group to be able to CREATE the shops, yet they were able, so i added that with the - dash to try and negate that perm

    didnt work, they are still able to create shops,

    what am i missing here? bug?
     

Share This Page