[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

    ethereal_panda

    Whenever my users attempt to purchase from a restricted shop, they get a "You don't have permission to do that!" error. This has worked in the past, but not since around version minecraft 1.1.

    Code:
    [restricted]
    Farmer
    ---
    Admin Shop
    64
    B 1:1 S
    Dirt
     
    ChestShop's version is: 3.39
    CraftBukkit version git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)A
    [PermissionsEx] version [1.19.1]
    iConomy v6.0.10b
    
    Any idea what I might be doing wrong? Is this a supported configuration?
     
  3. Offline

    edragy

    What do we do if the users name does onto fit on the top line of the sign?
     
  4. Offline

    Acrobot

    edragy
    Their names are automatically saved to plugins/ChestShop/longName.storage file, from which the plugin gets the player's economy account.

    ethereal_panda
    I'm going to investigate that.
     
  5. Offline

    hi_tech_guy_18

    Support For "Damaged" items? ItemID:DamageValue
    Like Wool Colours + Dyes + New Log Wood Types + Wood Plank Types + Charcoal
    these would be like 17:1 or 17:2
     
  6. Offline

    Acrobot

    hi_tech_guy_18
    All of that is possible.
    Did you even check?

    Also, you can do /iteminfo to find out item's ID.
     
  7. Offline

    minnhee

  8. Offline

    Acrobot

    minnhee
    Could you PM your server's IP?
     
  9. Offline

    norsac321

    I Need help People can make Chestshops even in worlds were they dont have the Chestshop.shop.create permissions node.
    I'm using craftbukkit ver. 1.2.5-R1
    And i'm using
    Chestshop ver. 3.39
    and my permissions plugin is:
    Groupmanager
    and my Economy plugin is:
    EssentialsEco
     
  10. You have to negate the permission (enabled by default)
     
  11. Offline

    Gretter74

    craftbukkit-1.2.5-r1.2
    ChestShop's version is: 3.39
    iConomy 6.0.8b
    PermissionsEx 1.19.1

    Players can buy 1 time, then the shops fails. All server shops behave the same.

    It worked before update of chestshop and iconomy.

    We updated because we had to disable the magnet flag and wanted latest versions at the same time.
     
  12. Offline

    Acrobot

    Gretter74
    "shop fails"?

    I don't know what do you mean by it.

    Are you using an external database for iConomy?
     
  13. Offline

    Gretter74

    Right, not very clear.

    Each player can buy one item from a shop, then after that, it is as if the sign is an ordinary sign.
    Nothing happens. After next login - they can buy 1 item again.

    The DB is mysql running on local host.
     
  14. Offline

    Acrobot

    Gretter74
    Hmmm... That's weird and unexpected, do you get any errors in the console?
     
  15. Offline

    Rossy

    Hi Acrobot, Always loved and used your plugin, but I have a suggestion/question.

    Can you make items like potions and spawn eggs buyable? If they already are, how?

    Thanks.
     
  16. Offline

    Gretter74

    Nothing in console.

    EDIT: I found the problem. The shop interval was way to high.
    In the previous version that had no effect, but after the upgrade, that parameter works. = we could buy once, then wait ages.
     
  17. Offline

    Acrobot

    Rossy
    They are already :)
    Just do /iteminfo to find out item's ID.

    Gretter74
    Oh :p
    Well, if it didn't have any effect, that had been a bug then :p

    I'm glad that it works for you again :)
     
  18. Offline

    yaitsbilly

    Does this support enchanted items , potions or XP?
     
  19. Offline

    Rossy

    Spawn eggs don't seem to work, as I do 383 and it ends up being a regular monster egg which nobody can really buy since they don't really exist, and if I do 383:93 (Ocelot egg) it doesn't recognize it as an ocelot egg, just a monster egg.
     
  20. Offline

    Acrobot

  21. Offline

    KevinEssence

    Does this support enchanted items now or work with lockette?
     
  22. Offline

    Acrobot

    KevinEssence
    It has always supported enchanted items - do /iteminfo.
    Same with Lockette - why do you think it doesn't?
     
  23. Offline

    KevinEssence

    With lockette, when you play a player chest shop sign above the chest, lockette detects it and locks it as a locked chest no matter what you type.
     
  24. Offline

    Acrobot

    KevinEssence
    Well, it doesn't happen to me. Can you post the step-by-step instructions so I could recreate it?
     
  25. Offline

    KevinEssence

    Oh how odd, I just found out when you create it on diamond blocks it turns into a protected chest, but other blocks are fine at least what I tested. What I did though was,

    1. Place a chest down
    2. Above it i placed a sign and typed in my name on first line, how many on 2nd line, third line the buy price, and forth is the item id
    3. Then it turned into a private chest. But that was only when i placed a sign on a diamond block.
     
  26. Offline

    Acrobot

    KevinEssence
    Yeah, it seems like it only happens on diamond blocks, but I don't know why - you'd have to ask Lockette's author.
     
  27. Offline

    KevinEssence

    Awesome xD No worries although xD Finnaly happy the issue has been found which is no biggi anymore xD Thank you so much and great plug-in.
     
  28. Offline

    Acrobot

    KevinEssence
    No problem :)
    Thanks for testing and reporting the bugs :)
     
  29. Offline

    Rossy

    Ah yes, well either way it just comes up as "Monster egg:98" and not "Spawn ocelot"

    Was this a recent update? Perhaps I'm using a slightly outdated version.
     
  30. Offline

    Acrobot

    Rossy
    No, "spawn ocelot" was the name when I hovered over the item.
    I'll try to make something like:

    Ocelot Monster (Egg)

    work :)
     
  31. Offline

    Rossy

    That would be awesome, since atm I can't seem to get it to work.
     

Share This Page