[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

    Acrobot

    @VADemon
    I already fixed this - and it's working better now. You wouldn't imagine how stupid the error was. I'll post the link to github in a minute.
     
  3. Offline

    Cubez

    I am getting the same error, please let us know when it's fixed. My server log's size get pretty big fast due to this bug.
    Code:
    2011-09-10 13:29:04 [SEVERE] Could not pass event BLOCK_BREAK to ChestShop
    java.lang.NullPointerException
        at com.Acrobot.ChestShop.Listeners.blockBreak.getAttachedFace(blockBreak.java:40)
        at com.Acrobot.ChestShop.Listeners.blockBreak.isCorrectSign(blockBreak.java:36)
        at com.Acrobot.ChestShop.Listeners.blockBreak.cancellingBlockBreak(blockBreak.java:25)
        at com.Acrobot.ChestShop.Listeners.blockBreak.onBlockBreak(blockBreak.java:32)
        at org.bukkit.plugin.java.JavaPluginLoader$36.execute(JavaPluginLoader.java:490)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:461)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  4. Offline

    Acrobot

  5. @Acrobot
    I didn't have this bug before, but tested 3.12 - No errors.

    PS: You are the best plugin developer I've ever seen! :)
     
  6. Offline

    Acrobot

  7. Offline

    godgodgodgo

    No bugs!? Wow
    Even my one? I'll try it out in a bit :)
     
  8. Offline

    Acrobot

    @godgodgodgo
    Yep. Shouldn't crash now :)
    (At least it SHOULDN'T =D)
     
  9. Offline

    Anthony45654

    How do I update the ChestShop version without getting rid of my current configuration? My current version is 3.01 and I would like to update to 3.12.
     
  10. Offline

    Clockwork

    Most recent version seems to work now, thank you.
     
  11. Offline

    mspau86

    Solved: It is not possible to sell weapons back. I can sell chainmail back, but not things like diamond_pickaxe, diamond_spade, etc.

    **CORRECTION** I figured out why it wouldn't work.
    If the weapon/tool is missing any durability (i.e. not perfect) then it won't sell.
     
  12. Offline

    juloo

  13. Offline

    Acrobot

    @Anthony45654
    Delete ChestShop.jar, download ChestShop 3.zip, extract ChestShop.jar to your plugins folder :)

    @mspau86
    Yeah, that's actually a feature, so people won't sell damaged items.
     
  14. will you be supporting iconomy6?

    thanks spidi
     
  15. Offline

    Acrobot

    @Spidi
    It's already supported, however I had reports that it's buggy (at least it was a month ago)
     
  16. Offline

    Stealthy_man

    Hey I have a slight problem. When I make an admin shop i can buy and sell from it and others can buy from it, but they can't sell to it. I've tried setting the spawn radius to zero in the bukkit.yml but I still have the same problem. I tried adding '- iConomyChestShop.shop.use' into the permissions and it worked but it looked funny in the notepad and the server gave me a ton of errors when someone sold to it. I think I"m missing something obvious and would be very grateful for any help. Thanks
     
  17. What is on the sign?

    UPD: Ah, I know the problem. YOU MUST WRITE PERMISSIONS WITHOUT "iConomy" BEFORE CHESTSHOP! (sry for caps)
    New permissions:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
    Also:
    Wrong: - iConomyChestShop.shop.use​
    Right: - ChestShop.shop.sell
     
  18. Offline

    Acrobot

    @VADemon
    Thanks for explaining it for him :)

    Also, @Stealthy_man - which ChestShop version are you using? Type /csversion in chat to find out :)
     
  19. Offline

    Stealthy_man

    Thanks VADemond!! It worked like a charm. Turns out I was also putting it in the plugins the wrong way.
    Version 3.12 Acrobot. I think its the newest version as I downloaded it last week but I could be wrong.
     
  20. Offline

    Acrobot

  21. Offline

    MistPhizzle

    Would it be possible to add in a feature where you can use permissions to have a certain group of users pay, and certain users dont have to pay to create chest.

    For example, my server has a VIP Feature, I would like to add Free Chest Shops to it, would that be possible?
     
  22. Offline

    Cubez

  23. Offline

    Acrobot

  24. Offline

    AceXx

    Please help me. When i place a sign and put (name) (howmany) (howmuch) and (itemdesc.) it says:
    07:13:39 [SEVERE] Could not pass event SIGN_CHANGE to ChestShop

    tring;)Z
    at com.Acrobot.ChestShop.Permission.has(Permission.java:32)
    at com.Acrobot.ChestShop.Permission.has(Permission.java:27)
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.ja

    va:41)
    at org.bukkit.plugin.java.JavaPluginLoader$31.execute(JavaPluginLoader.j

    ava:455)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav

    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j

    ava:321)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:967)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    :(plz help
    >
     
  25. Offline

    Acrobot

    @AceXx
    Outdated/Broken CraftBukkit?
    Which version are you running?
     
  26. Offline

    NGTNoodles

    when i look in my bukkit update folder it gives me a folder name plugins then another folder named check then in that it gives my a chestshop.jar1315680751000.check and nothing in it is it suposed 2 do that?
     
  27. Offline

    AceXx

    I'm running 1.7.3 bukkit. It's not broken every other plugin works and iConomy works by itself like commands like /money but chestshop doesn't work. Can you or someone make a video tutorial? Youtube ones didn't work for me.
     
  28. Offline

    SpiFioY

    Hey guys. :D I like the plugin, but i have one question - how can i make a shop whit stock?
     
  29. Offline

    Acrobot

  30. Offline

    _AMPLiFY

    Will this be compatible with 1.8 when BraftBukkit updates or will you have to update the plugin?
     

Share This Page