[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

    A_Shy_Hyena
     
  3. Offline

    iforgot290

    :D
    i know that a while ago I reported the problem of enchanted armour not being able to be sold
    I see you've finally fixed that, or so says the changelog, ill do some testing when i get home
    This will really help my enchanted items buisness :D
    Keep up the good work
     
  4. Offline

    DD7780

    your plugin does not work with my updated server. it may be because the folder i kept was from the server, but the jar is new. could that be a problem?
     
  5. Offline

    Acrobot

    DD7780
    I can't help you if you don't specify your problem.
     
  6. Offline

    DD7780

    The buy/sell signs just have stopped working. If i try to make a new one it doesn't work either. Should I modify my permissions?​
     
  7. Offline

    Shylo132

    ok i was able to get everything working, now im just wondering if you can sell multiple items from the same chest... ive looked everywhere on this forum for someone to talk about it but i just havent seen any ask about it or give any idea of how to do it if possible.

    get back to me
    -Shylo132
     
  8. Offline

    Acrobot

    DD7780
    Are you SURE your economy plugin is working?
    It sounds like it is refusing to work.

    Shylo132
    Yes, you can - you just need multiple signs :)
     
  9. Offline

    Shylo132

    so just like the group restrictions, just add a sign above the orignal shop sign?

    and thanks for the super fast reply
     
  10. Offline

    Acrobot

    Shylo132
    Nah, add another sign somewhere around the chest (just not diagonally from the chest)
     
  11. Offline

    Shylo132

    ok, cool thank you
     
  12. Offline

    DD7780

    Yeah. I'm using essentials, the commands of which seem to be in full working order.
     
  13. Offline

    LCM542

    "[Shop] You can't buy here!" Any help on this?
     
  14. Your 3rd line is wrong (or if u're just a user - the owner of the shop doesn't allow you to buy anything)
     
  15. Guys do u know if theres a way for change the name of the items? cuz the ppl of my server dont speak english so they dont know what are they buying, i quited Showcase cuz i read from every1 about the lag and its true, while i has the server with Showcase i has lag sometimes....so i moved my shops to ChestShop, but its an huge issue if the ppl dont know what are they buying, im gonna make a Guide on my forum about the names on english and spanish, but will be a lot better translate these names.
     
  16. WingedSpear
    No way. The easiest solution is to place signs with names above the shops.

    But in theory you could try to change CraftBukkit :)
     
  17. Offline

    ethan588

    Hey i made a tutorial youtube video of this plugin and i was wondering if i can have it posted on the page Thanks -ethan
     
  18. Post the link here and Acrobot will probably add it.
     
  19. Offline

    Tanite

    Are the two "experimental" features mentioned in the OP still experimental? (WorldGuard and max price)
     
  20. Offline

    iTzNitewalk

  21. Offline

    Unknown_Source

    I can buy from a shop, but not sell, and yes my spawn radius is set to 0 in the bukkit.yml file.
     
  22. Offline

    mindystorm

    Uhhh... It says this plugin is conflicting with lockette on the lockette page but you recommend it here...
     
  23. Offline

    Acrobot

    mindystorm
    It's not conflicting, I have to ask Acru why he has put it there.

    Tanite
    Yep, they are still experimental. They work, but they might be renamed/changed how they work.
    The WorldGuard one will probably stay, though.

    DD7780
    Hmm... Are you sure you don't use any other economy plugin?
    Also, what happens if you click on the sign?

    Finally - what Bukkit version are you running?

    WingedSpear
    VADemon is actually wrong here :p
    You just have to use OddItem plugin.

    http://dev.bukkit.org/server-mods/odditem/

    Unknown_Source
    What happens if you try to sell?
    Are you sure you restarted (as in turned off and on again) the server and saved the bukkit.yml file?
     
    Inscrutable and Tanite like this.
  24. Offline

    zergilng

    help me!! i'm using long time to chestshop and very thankful
    but i'm using version 3.39,
    i can't create admin shop.
    no message, nothing happen
    what i problem?
    exist admin shop are working, and any other features are all working perfectlly
    help me..
     
  25. Offline

    Acrobot

    zergilng
    Hmm, can you post a screenshot of the admin shop you're creating?
    Also, can you post your server.log on pastebin.com?
     
  26. Offline

    Unknown_Source

    Acrobot
    Thank you I had only reload'd it before[/quote]
     
  27. Offline

    Garninc580

    I keep getting this when ever I interact with my shops. I have bukkit 1.2.4 and chestshops 1.2.4.
    I also get "You can not sell here".

    Code:
    [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:175)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:94)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:537)
        at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
        at com.iCo6.system.Queried.useMiniDB(Queried.java:92)
        at com.iCo6.system.Queried.hasAccount(Queried.java:237)
        at com.iCo6.system.Accounts.get(Accounts.java:14)
        at net.milkbowl.vault.economy.plugins.Economy_iConomy6.depositPlayer(Economy_iConomy6.java:156)
        at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:14)
        at com.Acrobot.ChestShop.Economy.Economy.addServer(Economy.java:36)
        at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:169)
        at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:39)
        at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:81)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 12 more
     
  28. Offline

    Acrobot

    Garninc580
    Your iConomy 6 is failing:

    Code:
     com.iCo6.system.Queried.useMiniDB
    
    It also seems you are using the files to store account information.

    Download new iConomy's version, if it still doesn't work, delete plugins/iConomy/config.yml
     
  29. Offline

    Garninc580

    Thank you
     
  30. Offline

    mjkaufer

    It says 'You can't buy here!' when I try to buy something. It may be because I am running 1.2.4 and using 1.2.3, so if that is the cause, please update.
     

Share This Page