[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

    Epics

    Always glad to help! :)
     
    rexs123 likes this.
  3. Something, that im facing is we cant use the shop its not working! we make the sign
    Admin Shop
    64
    B 64: S 16
    Log
     
  4. Offline

    Acrobot

  5. Offline

    Halloween96

  6. Offline

    Epics

    In your server directory open the file
    bukkit.yml
    and edit the value
    spawn-radius: 16
    to
    spawn-radius: 0
     
  7. Offline

    Lucasring

    Help Ive been trying to get this plugin to work for well scence 1.2 came out ive installed it correct and used the same of every plugin I had before [no permissions] And it wont work? i followed many things on how to fix But they don't work?
    any ideas?
     
  8. Offline

    Austin

    This plugin has one major problem.

    Its not idiot friendly. All the kids on my server will blow their brains out trying to figure out how to make a correct shop.
     
  9. Offline

    Epics

    My server has relatively new players and they can figure it out quite easily. Just have a template sign.

    I'm not sure about no permissions, you'll have to wait for Acro on that one.
     
  10. Offline

    jchiu

    New here, but our server has an inflation problem and I Was wondering if it'd be possible to impose a variable tax rate that is basically a quadratic function so a tax would vary proportionally with the value of an item sold. Also, would it be possible to implement it so that only certain items were taxed and not all items? I checked Property.java and the method only had one field with which to determine a tax rate.

    Thanks. :)
     
  11. Offline

    Halloween96

  12. Offline

    the_merciless

    is there a perm node for allowing town owners to make shops under the town name? so the money will go directly to the town. i can do it but regular players cant
     
  13. Offline

    the_merciless

    Chances are u type the item name incorrectly. try just using the item id so instead of glass u would just put 20. and the plugin will change it to glass
     
  14. Offline

    J04054NT05

    What if i whant to buy and sell, but it never appears nothing on the chest, to people sell and buy, and i never have to clean the chest, and put more or less, like an unlimited chest, how do i do it.(sorry for the bad english)
     
  15. Offline

    Acrobot

    Austin
    Well, it is idiot-friendly, besides the sign thing - you have to learn it.

    Lucasring
    What exactly error do you get?
    What permission plugin are you using?

    jchiu
    Well, you can always edit the TAX_AMOUNT in the config by an external program and do a /chestshop reload in console :p

    J04054NT05
    That's exactly how admin shop works.
    Just put "Admin Shop" (you can change it in the config) on the 1st line of the sign, and it will never be out of stock.
     
  16. Offline

    0chat

    what is the texture pack in the picture its awesome. :D

    O kay i know its not the kind of question you want but im desperate for na good texture pack like the one in the demo picture.:oops:

    please, i would appreciate a lot. :cool:
     
  17. Offline

    Lucasring

    Lucasring
    What exactly error do you get?
    What permission plugin are you using?


    Im not using any permissions plugins and cant even use an admin shop.
    It even says shop created but when i right click the shop to buy [Yes i typed everything correct ive been using this sence 1.0] it dosent do ANYTHING
    So if u can help me with this id be very grateful mainly because I am to busy to be making perms for my server.

    Found an error
    Could not pass PlayerinteractEvent to chestshop
    Hope this helps!
     
  18. Offline

    syddie

    @Acrobot The newest release, but it seems craftbook, commandbook, and world edit are broken for me as well
     
  19. Offline

    irondragon1992

    Hey, does this work for spawn eggs, like the chicken or zombie? if so what id do you use, i tryed the ones on minecraft wiki but they don't work. Thanks.
    Nvm i figured it out.
    For anyone wanting to know its 383:then the id for the entity you want to spawn
     
  20. Offline

    kolby monson

    yep first one for the new d-load
     
  21. Offline

    Buckethead

    Newest build and bukkit 2060

    Code:
    22:40:11 [SEVERE] Could not pass event SignChangeEvent 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:441)
     
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1349)
     
            at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
     
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
     
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:116)
     
            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.NoClassDefFoundError: com/sk89q/worldguard/protection/flags/StateFlag
     
            at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:92)
     
            at sun.reflect.GeneratedMethodAccessor122.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)
     
            ... 10 more
     
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.flags.StateFlag
     
            at java.net.URLClassLoader$1.run(Unknown Source)
     
            at java.net.URLClassLoader$1.run(Unknown Source)
     
            at java.security.AccessController.doPrivileged(Native Method)
     
            at java.net.URLClassLoader.findClass(Unknown Source)
     
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
     
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
     
            at java.lang.ClassLoader.loadClass(Unknown Source)
     
            at java.lang.ClassLoader.loadClass(Unknown Source)
     
            ... 15 more
    
     
  22. Offline

    Buckethead

    Also on statup w/ ur 3.38 it says 22:44:32 [SEVERE] [ChestShop] WARNING! Your spawn-radius in bukkit.yml isn't set to 0! You won't be able to sell to shops built near spawn! when in fact its 22
     
  23. Offline

    jordyluke

    So I'm having troubles with this plugin, Does it ONLY work with iconomy now? I use Essentials Eco. and I'm wondering if it will only work with iconomy :c
     
  24. Offline

    Krazy

  25. Offline

    tutkillerz

    Admin Shop
    16
    B 70:30 S
    Wool

    but others can't still buy?
    but they can sell
    I tried all the kind of Format like
    AdminShop
    16
    B 70 : S 30
    35
    but they can't still buy?
    how to fix?
     
  26. Offline

    Epics

    Try using the latest development versions of these at
    http://build.sk89q.com/

    ChestShop works fine for me :)

    It should work fine if you use the proper damage value. ( number:damageval )

    Exactly. The chest shop plugin needs the spawn-radius to be 0 for sign shops to be read in spawn.

    Maybe update/use Vault. I'm on BOSEconomy and it's working great.

    Krazy
    http://forums.bukkit.org/threads/ec...ugins-1-1-r7-1-2-3.4150/page-235#post-1013332

    Any error messages console-wise or in-game? Is your spawn-radius set to 0?
     
  27. Offline

    Krazy

    Epics

    undestand, i from brazil and bad inglesh...

    for fix this error i need put: -ChestShop.shop.create.*
    in
    FREE PLAYERS ( this can not create)
    or VIP (this can create)


    free permissions atm:
    - ChestShop.shop.buy
    - ChestShop.shop.sell

    vip permission atm:
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.shop.create
     
  28. Offline

    TheChinski

    I have been playing with this plugin for awhile but I found recently a few of my poorer members made a sign like this:

    Name
    1
    B 0.01:10 S
    Dirt

    Is there anyway to set it so they cant have the sell price over the buy price?

    Thanks,
     
  29. Offline

    Curthiany

    hi is it possible to trade items for items? i dont know how to config it or if the feature is even in there... i see the permissions for it but i dont know how to set it up in signs...
     
  30. Offline

    tschagg

    Hi!

    With the new version, every user can create a shop without the Permission!
    please fix it
     
  31. Offline

    Epics

    Are you using Permissions EX?

    Let me know.

    The parent nodes are broken on PEX as far as I know. You need to give them the full permission.

    Hope this helps,
    Epics

    I don't believe there is.
     

Share This Page