[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

    Kaosvf

  3. Offline

    Acrobot

  4. Offline

    Kaosvf

  5. Offline

    Darkedge

    @Acrobot I've almost finished factions intergarion with ChestShop, basically if the owner is in the same faction people can open their chest, I guess I should add a confit option and maybe even some way fr the user to choose wether if factions members can open chests, will you merge my changes? :)

    Darkedge.
     
  6. Offline

    spunkiie

    @Acrobot

    Here's my users permissions:

    - 'ChestShop.shop.buy'
    - 'ChestShop.shop.sell'
    - 'ChestShop.shop.create'

    BTW: I have just tested with 3.12, didn't happen. The bug is probably due the update:
    • You won't sell to your own shop anymore
    Also, have you tested using my config.yml (LWC as the shop protection method) ?

    Ty for trying to help :)
     
  7. Offline

    Acrobot

    @Darkedge
    Sure I will, if it is coded properly :)
    Just add a config option named "FACTIONS_INTEGRATION" :)

    @spunkiie
    Testing this now.
     
  8. Offline

    Acrobot

  9. Offline

    Darkedge

    I'll try not to make a mess ;P I'll finish it tommorow, I'm gonna hit the hay for now.
     
  10. Offline

    Xtaino

    Is this possible with minecart chests?
     
  11. Offline

    Acrobot

    @Xtaino
    Nope - they are not a block. However, this seems like a useful feature, so when I'll be re-writing ChestShop, this will be surely considered as a module :)
    (I plan on making ChestShop 3 modular)
     
  12. Offline

    Kaosvf

  13. Offline

    Acrobot

    @Kaosvf
    Hmm :/ Weird... Do you maybe happen to know what causes this?
     
  14. Offline

    Warface

    Awesome plugin !
     
  15. Offline

    Xtaino

    Yeah, i would want that for my mine. Im busy setting up a RPG server, and want the chests to be sent directly to the shops when full ;) So no unloading/Reloading..
    Like 5 chests, 1 for each ore and cobblestone. From the ppl in the mine sell it to the cart for incomes, and can be bought in the shop :)
     
  16. Offline

    briankdk

    hi

    have just installed it at everything works fine!

    BUT.... i cant figure out how to make a Admin Shop ?

    if i place a sign, and write Admin shop in the first line, and press done - nothing happens....

    In the description it says :


    "Just put "Admin Shop" (or anything specified in config file" - but in the config file, there is nothing about Adminshop.


    Im confused...plz help


    .
     
  17. Offline

    Kane

    @Acrobot I don't use towny crap but still get spammed hehe:

    Code:
    2011-09-24 19:01:18 [SEVERE] Could not pass event SIGN_CHANGE to ChestShop
    java.lang.NoClassDefFoundError: com/palmergames/bukkit/towny/object/TownBlockOwner
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:93)
    at org.bukkit.plugin.java.JavaPluginLoader$35.execute(JavaPluginLoader.java:483)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1045)
    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:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.palmergames.bukkit.towny.object.TownBlockOwner
    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:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 13 more
     
  18. Offline

    albieos

    Is it possible to add blocking of shop creating if LWC limits are reached?
     
  19. Offline

    Malaras

    Is admin shop just for admins, or does it count as like a server shop? Cause im just trying to buy a few things from people as admin shop but they cant seem to use the signs.
    If not, is it possable just to set up a shop where u by things and server eats them?
    Also useing towny
     
  20. Offline

    PunJedi

    User Alpha places LWC locked chest down (/cprivated). User Beta comes along and places a shop sign above it. Accesses stuff through sign, and effectively steals the items out of the chest.

    Who's side would that be on? Lwc, or ChestShop?
     
  21. Offline

    TheNsA

    good morning, following the passage in 1.8.1, ChestShop does not work: /
    I get an error message in the console
    I wish that my permissions are correct.

    Code:
     [SEVERE] Error occurred while enabling ChestShop v3.2 (Is it up to date?): null; expected '<document start>', but found BlockMappingStart
    expected '<document start>', but found BlockMappingStart
     in "<reader>", line 27, column 1:
        TOWNY_CANNOT_CREATE_SHOP_HERE: " ...
        ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:233)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at com.Acrobot.ChestShop.Config.ConfigObject.reloadLanguage(ConfigObject.java:42)
            at com.Acrobot.ChestShop.Config.ConfigObject.<init>(ConfigObject.java:25)
            at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:49)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  22. Offline

    Acrobot

    @Warface
    Thanks :)

    @briankdk
    "Nothing happens"?
    Is the shop created at all?

    @Kane
    Re-download please, I fixed it about 20 mins after release :)

    @albieos
    In new versions, it doesn't create a new LWC protection if the shop is made. If you run out of protections, it just doesn't protect your chest/sign with LWC.

    @Malaras
    Admin shop means server shop = shop that doesn't use chests. It just eats items :p

    @PunJedi
    Hmm, are you sure that he hasn't got ChestShop.admin permission? It happened to one of my users, and I have no idea why - it works for me.
    http://forums.bukkit.org/threads/ec...ns-1-8-support-1185.4150/page-157#post-695669

    @TheNsA
    Try deleting the config file :)
     
    Kane likes this.
  23. Offline

    Massimo1993

    @Acrobot

    can add support for odditem 0.8?
     
  24. Offline

    Acrobot

    @Massimo1993
    Sure, doing that now.
    BTW. Doesn't it work with OddItem 0.8 as-is?
     
  25. Offline

    Massimo1993

    Code:
    [SEVERE] Error occurred while enabling ChestShop v3.2 (Is it up to date?): info.somethingodd.bukkit.OddItem.OddItemBase cannot be cast to info.somethingodd.bukkit.OddItem.OddItem
    java.lang.ClassCastException: info.somethingodd.bukkit.OddItem.OddItemBase cannot be cast to info.somethingodd.bukkit.OddItem.OddItem
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugin(pluginEnable.java:63)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:41)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:57)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  26. Offline

    Acrobot

  27. Offline

    Massimo1993

  28. Offline

    Acrobot

  29. Offline

    bond654

    when I have made it
    as it stands I have to do and it comes up shop created but noone can buy from it :(
    only comes up
    [shop]you can't buy here how do I fix it????
    have all the permission nodes installed :eek:
     
  30. Offline

    strontkever

    i getting errors when shops are created,
    its talking about towny, but the integration is diabled
     
  31. Offline

    Acrobot

    @bond654
    Your permission nodes are wrong.
    Are you sure that everything is in proper caps? F.e., Chestshop will not work, you need ChestShop

    @strontkever
    Re-download plugin please?
     

Share This Page