[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

    ChemicallyGodly

    says i don't have permission and when i turn on my permissions debug it doesn't check anything(no permission shows up for chest shop) soooo.....
     
  3. Offline

    strontkever

    Probably asked before, but i would really like to use the website generation stats.. but since im renting a server, i cannot reach the website folder from the ip,

    is there any chance u can add mysql support to store all transactions, so a webpage can be made using the database?

    Strontkever
     
  4. Offline

    Epics

    Are you using OP permissions? What permissions system?

    This has been suggested, good luck.
     
  5. Offline

    Acrobot

  6. Offline

    Conflagrated

    Acrobot
    Downgrading to 3.39 fixed our problem; You might want to take a closer look at whatever handles iteminfo in 3.40.
     
  7. Offline

    Acrobot

  8. Offline

    Conflagrated

    Acrobot

    Very odd. Your 3.41 alpha is also completely functional.
    /shrug

    Perhaps 3.40 just wanted to be a rebel.
     
  9. Offline

    Epics

    Yeah, our old server hosts got bought out and that's where we purchased our domain. They're refusing to give the new company our registrar data. Been down for a week now, and I'm still paying for the server. I'm pretty pissed!
     
  10. Offline

    Acrobot

  11. Offline

    ChemicallyGodly

  12. Offline

    nighteyes604

    Acrobot

    Saw that you've rewritten your code for ChestShop, mind telling me again how to easily tell if a chest is a chestshop? I'll start looking now and edit this post if I manage to find it. Thank you for your help :p

    Edit: Using com.Acrobot.ChestShop.Plugins.ChestShop() and canAccess(), let me know if there's a different way I should be doing it please.
     
  13. Offline

    Epics

    Are you using the correct nodes?
     
  14. Offline

    Acrobot

    nighteyes604
    At the moment I didn't push the code on GitHub, but when I update, you have to use

    com.Acrobot.ChestShop.Plugins.ChestShop.canAccess(Player, Block)

    It also works for signs, so be sure to check that your block is a chest :)
     
  15. Offline

    nighteyes604

    Thanks that's what I figured - someone requested I update the lockpick protection to your alpha build so I guessed :p.
     
  16. Offline

    Acrobot

    nighteyes604
    Haha, nice :)

    I basically re-wrote the plugin, so now, almost every plugin I'm using in ChestShop has a file inside com/Acrobot/ChestShop/Plugins/ :)

    Every file is a Listener, so they are easily turned off :)
     
  17. Offline

    ChemicallyGodly

    from what i can tell there is no chest shop node to place a chest. not a shop just a chest
     
  18. Offline

    Epics

    ChestShop doesn't control anything that has to do with a regular chest without a sign!
     
  19. Offline

    Acrobot

    Epics
    Unfortunately, there has been an error, so everyone who can't use double-chests, use the ChestShop alpha version.
     
  20. Offline

    strontkever

  21. Offline

    TheManiacPt

    how do I fix the warning message:
    [SEVERE] [ChestShop] You lack the necessary HTML files in your plugins/ChestShop/HTML folder!

    I even tried to put the "website" file in that foder and still got the message..
    help??
     
  22. Offline

    BStudio

    [​IMG]

    additional info:
    Craftbukkit 1.2.5-R1.3 with Forge 3.1.2.94 & ForgeModLoader 1.0.0 (IC2 & BC2 & SmartMovingMod)

    PEX 1.19.1
    Essentials 2.9.1
    iConomy 6.0.10b
    LWC 4.1.1, LWC-Economy 1.30
    ChestShop 3.40
     
  23. Offline

    TheManiacPt

    you're using the CB R1.3, when the version 3.40 of ChestShop is for CB R1.2
     
  24. Offline

    Acrobot

  25. Offline

    TheManiacPt


    btw can you help me out with this error plz, Acrobot:

    [SEVERE] [ChestShop] You lack the necessary HTML files in your plugins/ChestShop/HTML folder!


    I even tried to put the "website" file in that foder and still got the message..
     
  26. Offline

    DarkDanny

    Acrobot
    So my players can buy stuff from admin shops, and it takes the correct amount of money, but when someone tries to sell something, it takes the correct amount of items, says it pays the correct amount of money, but no money is actually paid to the user... I've got all updated plugins associating with chestshop.

    - CB 1.2.5-R1.2-b2167jnks (MC: 1.2.5)
    - ChestShop Version is: 3.4
    - iConomy 6.10
    - PermissionsEX
    Here's a screenshot:
    ChestShopProblem.png
     
  27. Offline

    connor12789omfg

    hi, i made a new craftbukkit server 2 weeks ago and iv had a problem, i use groupmanager plugin for rank system (builder, moderator, admin, owner) and it seems that "builders" do not have permission to use the command /sell (hand) (item) (inv), they do have perm for /worth tho... anyhow. is this chestshop problem, iconemy problem or group manager problem because i need it fixed QUICK thank you for anyone who can help. :) and i have a mac book pro so if its a config thing can someone walk me thru the steps? thanks...HELP PLZZ D:
     
  28. Offline

    Acrobot

    connor12789omfg
    ChestShop doesn't have any /sell command.

    TheManiacPt
    You need to download the sample HTML files from ChestShop's BukkitDev page.

    DarkDanny
    Do you get any errors in the console?
     
  29. Offline

    jefe323

    CB Version: 1.2.5-R1
    ChestShop Version: 3.40
    Economy: iConomy
    Permissions: PEX 1.19.1
    Might also be relevent: using Deadbolt for chest protection
    No one on my server can create double chests. This is the message that shows up in chat:
    [Shop] You don't have permission to do that!
    No errors show up in console
     
  30. Offline

    Acrobot

    atbnet likes this.
  31. Offline

    jefe323

    Acrobot

    That did the trick, thanks
     

Share This Page