[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

    Moe041991

    to get it straight. you place stuff in the chest. You put the sign up and it'll sell the stuff out of the chest while you get money.

    Another question.
    "the last line will show up what was taken last time as the first item from chest!"
    I guess its a lack of english, but i dont really get what the last line will show.
    Can you explain it for an idiot like me [​IMG]?
     
  3. Offline

    bentzilla

    When starting the sever i get this error:

    [​IMG]
     
  4. Offline

    Red00

  5. Offline

    Acrobot

    @Red00 - no, but I will code it just now!
    Also, it won't place the block anymore! :)
     
  6. Offline

    Nepper

    Same Error as bentzilla!

    [​IMG]

    Plz help us! =)

    Greetz Nepper
     
  7. Offline

    Acrobot

    Hmm, update CraftBukkit.
     
  8. Offline

    fatepower

    Thanks 4 the update mate.
    Did notice one bug, if you have all setted true:
    useID: true
    noID: true
    sell: true

    You place block inside write at the sign,
    Buy
    1
    1
    1

    It replace 1 with STONE but you can't buy/sell from/to the shop.
    If i not placed any blocks inside and wrote the same it worked.

    2:
    If you have sell true, can you also "buy" from the shop or is it just sell then?

    Greetings,
     
  9. Offline

    Acrobot

    2: You can't buy from the shop where you sell items, but you can buy from other shops.
    1. I'll test that
     
  10. Offline

    fatepower

    You mean user created shops? like:
    fatepower
    1
    1
    1

    or:
    buy
    1
    1
    1
     
  11. Offline

    Acrobot

    @fatepower
    Newest update fixed that,

    buy
    1
    1
    1

    should work with everything on true


    And you can't buy from shops where the 1st line is "buy"
     
  12. Offline

    fatepower

    Nice you was fast to update. Like that :)
    Ok thank you for the reply. That was what im hunted for.
    If i turn sell to off the the buy shop are buy shops (not sell).
    Why not have sell shops (sell) buy shops (buy with unlimited stock from "server") and user shops if left blank or username on 1st line. Maybe an idea?

    Greetings
     
  13. Offline

    Nepper

    Hmm.. wait for plugin update?
    or is that a conflict with other plugins?

    Because
    [​IMG]
     
  14. Offline

    Adellus

    Is there anyway you could post an older version, perhaps on that would work with craftbukkit 325?
     
  15. Offline

    harison

    I get SEVERE: Could not load plugins\iConomyChestShop.jar in plugins: null when i start my server up.

    how do i fix this?
     
  16. Offline

    fatepower

    I'm sorry to say, that now the "noID: true" doesn't work now after the last update 0.71.
    Doesn't write a name on the sign. Use ID: false.

    Code:
    useID: false
    noID: true
    sell: true
    distance: 1
    position: 'DOWN'
    --- merged: Feb 21, 2011 6:55 PM ---
    What version of Bukkit do you use?
     
  17. Offline

    PatrickFreed

    @Acrobot
    How did you get iConomy to work with build 402?
     
  18. Offline

    Acrobot

    @fatepower
    Works for me.

    @Everyone with Could not load plugins\iConomyChestShop.jar:
    Update your CraftBukkit

    @Patrick
    iConomy works perfectly for me, CraftBukkit 402.
     
  19. Offline

    fatepower

    Not for me.
    I do like this;
    Putting stone (id 01) in the chest,
    write at the sign:
    buy
    1
    1

    It does not put STONE or ID at the last row.
    Hmm.. :p

    EDIT:
    Sorry might not work 4 Buy shops when you have sell enabled. Hehe :p
    My fault. :)

    Should be nice tho if it did, then you can place a chest with empty last line and the first user who comes there are controlling what he are going to sell to it. Might be an idea.
    Thans anyway for the great update mate.

    Greetings,
     
  20. Offline

    Acrobot

    Ugh, because it's a buy sign?
    You can't just buy anything.

    UPDATE:
    No problem :p
     
  21. Offline

    PatrickFreed

    @Acrobot
    can I send you my log?
     
  22. Offline

    Acrobot

    Sure, but please update to the newest versions of iConomy and Permissions and then try it :)
     
  23. Offline

    PatrickFreed

    I did, Permissions works but iConomy gives me strange errors.
     
  24. Offline

    Acrobot

    Okay, send the log
    Also, please send iConomy and Permissions configs :)
     
  25. Offline

    fatepower

    It works for me with the latest rev of craftbukkit.
    Code:
    This server is running Craftbukkit version git-Bukkit-0.0.0-437-g9de610a-b405jnks (MC: 1.2_01)
    Ver: 437.
    Ignore this error:
    Code:
    2011-02-21 20:03:47 [WARNING] Using the stupidly long constructor com.nijikokun.bukkit.iConomy.iConomy(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of iConomy to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-21 20:03:47 [WARNING] Plugin 'iConomy' (ver 2.0) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-21 20:03:47 [WARNING] Plugin 'iConomy' (ver 2.0) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-21 20:03:47 [INFO] [iConomy] version [2.2] (Aime) loaded
    2011-02-21 20:03:47 [WARNING] Using the stupidly long constructor com.afforess.minecartmaniaadmincontrols.MinecartManiaAdminControls(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Minecart Mania Admin Controls to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-21 20:03:47 [INFO] Hint! It's probably someone called 'Afforess'
    2011-02-21 20:03:47 [WARNING] Using the stupidly long constructor com.nijikokun.bukkit.Permissions.Permissions(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Permissions to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-21 20:03:47 [WARNING] Plugin 'Permissions' (ver 1.0) is registering events before it is enabled. It may be misbehaving and the author needs to fix this.
    2011-02-21 20:03:47 [INFO] [Permissions] version [2.0] (Handler) loaded
    Nothing is wrong, but the plugin creator need to correct that; Nijikokun

    Seems to be a common error on 400+
     
  26. Offline

    PatrickFreed

    Should I send it as a .zip, and where should I send it? Sorry, I'm really new to this forum.
     
  27. Offline

    fatepower

  28. Offline

    Acrobot

    Zip, rar, pastebin, anything will do :)
     
  29. Offline

    fatepower

    Acrobot, do you think of adding trade signs also?
     
  30. Offline

    Acrobot

    Uh, how would they work? I will try to include selling and buying in one sign :)
     
  31. Offline

    fatepower

    Nice :)
    I mean:
    Acts as a sort of trade chest. The create deposits items or money, and sets an exchange rate. Other users can then trade with the sign based on the original parameters.
    Takes the form:
    Code:
    Trade
    # ItemA OR $#
    # ItemB:# OR $#:#
    
    The second line specifies the item to be traded with the sign. Players will trade ItemA for ItemB. The number prefixing item specifies the quantity per trade: for example, 3 dirt for 1 stone. Currency can be used in place of the item and quantity parameters on lines one and two. The value following the colon specifies how many of ItemB should initially be deposited. For example, a user looking to buy 30 dirt at the price of 30 dirt for 1 stone might create the following sign, depositing 10 stone:
    Code:
    Trade
    3 dirt
    1 stone:10
    
    The fourth line will automatically be populated with the name of the benefactor. When the benefactor right-clicks the sign, rather than commencing an exchange, the sign will be destroyed, and any remaining items or profits held by the sign will be dropped for the user to take.
     

Share This Page