[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

    PatrickFreed

    On Alpha 8 with default config (included in the alpha 8 zip)
    On iConomy 4.4 Arcadia, getting "Invalid Config"
    B617
    No console errors
     
  3. Offline

    Acrobot

    @PatrickFreed
    Woah
    Alpha 8 is way too outdated.
    Please use 2.01
     
  4. Offline

    PatrickFreed

    My bad xD
    I bookmarked your plugin and it cached the alpha 8, I thought it was the newest version :p
     
  5. Offline

    PatrickFreed

    Now I'm getting nothing but "shop created successfully, linked with LWC, and you can't buy from your own shop"
    When I right click other people's shops, nothing happens, no console errors, no ingame errors.
    Permissions Config
    iConomyChestShop Config
    I don't have odd item installed
     
  6. Offline

    kmccmk9

    I still can't get the chest to create. I place the sign above the chest with
    kmccmk9
    1
    5:0
    STRING

    and it doesn't say anything. What am I doing wrong? I have the permissions file set up right...I don't know what else is wrong. I'm running cb #612
     
  7. Offline

    Trevor_

    Okay wait it's out of date, can I get the one for 617, apparently I keep downloading the wrong one. :/
     
  8. Offline

    AnakiMana

    When I downloaded 2.0 on the April 2nd, it was a ZIP file containing the folder that goes under \plugins and a config file. With 2.01 there's only a JAR file, and if I delete my iConomyChestShop plugin folder, it does NOT create a new one for me. I also get a severe error:
    and when I'm in-game, right-clicking on sign does nothing. I type "/buy" and get an error on the server:
    and when I type "/sell" it says selling is disabled in the config.

    I've gone back to version 2.0, where I had no problems!

    Also, why is v2.0 only 39kb in size while v2.01 is 130kb?
     
    MacVaultDweller likes this.
  9. Offline

    Cyprias

    I deoped myself and lowered my rank to just have iConomyChestShop.shop.create/buy/sell. I could still create a sign with someone elses name and go into /sell mode and take their money. I'll try disabling other plugins later to rule them out as possible conflicts. Right now the server's running AFKBooter, BorderGuardLite, dynmap, Essentials (core, chat, spawn), GroupManager, iConomy, iConomyChestShop (2.01), LogBlock, LWC, MultiInv, MutliVerse, Vanish, WorldEdit and WorldGuard.
     
  10. Offline

    Syntaxlb


    Yes exactly, but, if the user have the permissions "shop.create" the day 1 = He is now in the permissions group "Trader"
    Day 2 : He create a shop (he can because he is in the permission group "Trader")
    Day 3 : I delete his permissions "shop.create" = I delete him from the group "Trader"

    His shop created the day 2 can be used from other people (And i don't want), and the owner is not in the permissions group "Trader" = He has not the permissions "shop.create"
    Or his shop is auto delete ?
     
  11. This addon is causing alot of lag, When a player buys somthing its fine, when two or three people buy things or one person is buying alot it just spams you and lags the server!
     
  12. Offline

    Acrobot

    @pydrex
    Hmm, it may be, but it's due to low spec...
    I tried it with many servers that were 1Ghz and 512 RAM and it worked just fine.

    @Syntaxlb
    I think I'll try to make something about it :)
     
  13. Offline

    Acrobot

    @AnakiMana
    That's not 2.0 for sure!
    Also, 2.01 is 52 KB -> are you sure you downloaded the correct version?

    @Cyprias
    @kmccmk9
    I was on one server that used custom CB 612 and it has that bug.
    Please try with CB617?

    @PatrickFreed
    Please try with OddItem?
    I may change it to something else in the future, as it causes too much trouble.

    @MacVaultDweller
    That's not 2.01 - > that's 1.06, please use the one on the bottom of my post.
     
  14. Offline

    MacVaultDweller

    Yes just caught that before you answered sorry for being a moron and wasting your time
    THANKS FOR YOUR GREAT WORK AND SUPPORT!!
     
  15. Offline

    PatrickFreed

    Same deal with OddItem installed
     
  16. Offline

    Acrobot

  17. Offline

    PatrickFreed

    sure freedsuniverse.dyndns.org
    I'm sorry for bugging you I'm probably the one responsible here :p
     
  18. Offline

    arsjet

    351:2 can not sell items that have been described.

    Please allow trading in the next update.
     
  19. Offline

    iFearz

  20. Offline

    arsjet

    I have not changed and the original config.yml.
     
  21. @Acrobot im running , 3gb ram, Xeon Quadcore servers. So its not low spec.

    Is it something to do with a delay timer anywhere?
     
  22. Offline

    MacVaultDweller

    odd items caused error in sign creation removed the plugin now it works fine
    Thanks for a fantastic plugin!
     
  23. Offline

    MacVaultDweller

    I may have missed something but can you config a shop to buy any/multiple types of items ?
     
  24. Offline

    Acrobot

    @MacVaultDweller
    Not at the moment

    I wish there would be Inventory events, so I could just skip the right-left clicking and just make it drag&drop from inventory...
     
  25. Offline

    timmaeh

    Is there a way to sell the Lapisink? The last version of the chestshop put INK_SACK on the sign and i can buy it. Now i cant...
     
  26. Offline

    Acrobot

  27. Offline

    LlmDl

    Using 2.01 my admin shop that users sell cobble to, is telling me it's full. Odd thing is, I moved the shop and sign, it still says full. The other cobble shops I have set up throughout the server are telling me the same thing.

    If I'm the only one experiencing this, it could be due to my server using CB 658.
     
  28. Offline

    Acrobot

    @LlmDl
    Uh, it was built against CB617, it it possibly the bug cause, anyone can confirm this?
     
  29. Offline

    MacVaultDweller

    Don't worry to much I'm no longer going to use RealShop because of the security holes
    Your plugin is far more secure.
    Thanks again for your hard work and support.
     
  30. Offline

    Cyprias

    I'm running CB 617 with the sign name issue.
     
  31. Offline

    Acrobot

    @Cyprias
    I have no clue :/
    You can try disabling some plugins and see if it works.
     

Share This Page