[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


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!
    I've put a LOT of effort into making this plugin,
    you can donate if you appreciate my effort =)

    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    - 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

    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.

    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/

    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:

    (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:

    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:
    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)

    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)

    If you want to delete your old shop, simply SNEAK and destroy the sign.
    It's that easy =)

    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?

    Changelog (open)

    Changelog can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/
  2. Offline


    Do i need all of those? i have iconomy (not 4 or 5) its named "iconomy".
    - Please help :)
  3. I dont like that solution, would be better to just refresh inventory.
  4. Offline


    IconomyCHestShop doesnt work on my Root Server i put IconomyChestShop.jar and IconomyChestShop in my plugins folder but evrytime i get this message:

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:174)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:156)
    at org.bukkit.util.config.Configuration.load(Configuration.java:74)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:339)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:831)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:846)
    at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1436)
    at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalarSpaces(ScannerImpl.java:1507)


    in "", line 91, column 45:
    found unexpected end of stream
    ... dy_bought_items_from_your_shop: '<
    in "", line 91, column 43:
    while scanning a quoted scalar
    > 13:16:41 [SCHWERWIEGEND] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
  5. Offline


    Remove all tabs in config file.
  6. Offline


    I dont understand what you mean sry my english is bad.So i should delet evrything thats in the config file?
  7. Offline


    Top Line left blank shd auto enter shop owners name, caps an everything (does it already?)
    This line shd be left alone
    Maybe this line needs to have the item name/number
    And this contain the prices

    Thats my thoughts, the layout at the moments is great tho. Maybe add 'Server Shop' and 'Shop' that do exactly the same thing as 'Admin Shop'. Yea thats a good idea, add more ways of writing the signs. So rather that having to write the format available now, you could have more than one format for each line that does the same thing as the original. i.e 'Buy 34 : Sell 12' works the same as 'B 34 : S 12' (if it fits :p) and instead of 'Grilledpork' only, there shd be 'CookedPork', 'CookedPorkchop' and maybe even 'CookedMeat'.

    The item index needs a bit of work like the 'grilledpork' item reference and a few others. I cant remember if it was this plugin or a give plugin, but if i were to type 'DiamondShovel' it wouldn't work but 'DiamondSpade' would...

    Uhhhh, thanks for offering the opportunity to ask for a few changes :p
  8. Error flew by:

    14:53:20 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.LinkageError: com/nijikokun/register/payment/methods/iCo5$iCoAccount
            at com.nijikokun.register.payment.methods.iCo5.getAccount(iCo5.java:49)
            at com.Acrobot.iConomyChestShop.EconomyManager.hasEnough(EconomyManager.java:25)
            at com.Acrobot.iConomyChestShop.ShopManager.sell(ShopManager.java:69)
            at com.Acrobot.iConomyChestShop.ShopManager.transaction(ShopManager.java:32)
            at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:87)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:64)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:459)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  9. Offline


    Got another idea! The current item name line should be allowed to be the price or the name. And the current price line should be allowed to be the item name or the price. I can think of how you would implement that quite easily :)
  10. Offline


    One more thing: That transactionlist only lists the items, am I correct? Could you (after fixing it ofc^^) implement a statistic about the individual users? Meaning who bought how much of what item. This would greatly help me as I'm running an AdminShop meaning that players only buy/sell from the server but don't trade with each other and when I see that the price of an item is extremely off the record I sometimes need to correct not only the price but also need to take the gained money from those players who abused the shop.
  11. Offline


    Custom item names work with plugin called "OddItem"
    And yeah, I had it with "Buy" and "Sell", I even wanted to allow something like "I'll Buy for 15" to work :)
    Custom admin shop names - yeah, I will do it.
    I just don't like having item name and amount in one line :/

    Wow, weird. Does it do this all the time?
    Try to turn off your server and then turn it on again.

    Incorrect config file - please use the one attached to .zip

    It didn't work at that time, I believe that normal version works with newest RB now.

    No, just one is needed.
    Please type "/money ?" in chat and tell me, what do first lines say.

    Okay, but not in 3.0
    Maybe later.
    At the moment, you can make your custom database reader or read log file in iConomyChestShop/iConomyChestShop.log
  12. Offline


    Which version of iConomy are you using? That seems to be an issue with the version.
  13. Offline


    Well i did but i still get the same Error
  14. No, rarely. I had just done a /reload.

    There seems to be quite a few plugins around that do not like /reload.
  15. Offline


    Yes i downloaded the version for 1.6, to double check i downloaded it again, installed it again and restarted my server. Still my players have to relog to see the items in their inventory.
    I have the latest Bukkit version, permission plugin and iconomy plugin and ofcourse latest chestshop plugin
  16. Offline


    lol, It kind of is an error because the server stops dead there. That's the whole log, it won't load any further.
  17. Offline


    Oh, that's weird.
    That is not an error with my plugin then o.0
    What plugins do you have?

    Did you change the config? If not, do so.
    OR, normal version probably works with newest Recommended Build

    Plugins do not like reload if something changes. Here it looks like iConomy is not working while I am using it O.0

    Not possible o.0
    Be sure not to have:
    - Special characters
    - Tabs
    -> ' (unless it's between "s )
    -> "
  18. Offline


    @Acrobot When I disable ChestShop it's fine :( !
    About my plugins, let's see..

    iConomy 5.(whateverthenewestversionis)
    Permissions 2.7.4
    Permissions Plus

  19. Offline


    That's not good :/
    You should do something like:

    open iConomyChestShop.jar with WinRAR/7Zip/whatever
    open "plugin.yml"
    delete the line that says "database: true"

    Be sure that the file was modified in the .jar!

    Then, modify your iConomyChestShop config, so useDB will be false.
  20. Offline


    Acrobot how you mean Tabs?should i remove al " and ' in my Config file too?
  21. Offline


    Tabs - tabulators

    Nope, you shouldn't.
    Please post your config on pastebin.com :) (GodIhateThoseSmiles)
  22. Offline


  23. Offline


    @Acrobot What exactly will that do? I'll give it a shot, though, thanks!

    Yay it worked! I don't know what the deuce it did but it works now, thank you!
  24. Offline


    im pretty sure u didnt read my post, cause that doesnt make sense as a reply
  25. Offline


    Yep, sorry, replied to incorrect person.
    Do you get any errors in the console?
  26. Offline


    Can you add it so there is a price limit for items?
  27. Offline


    Tried command "/money" then it says: [money] Balance: 30.00 dollars
  28. Offline


    It may cause lag only if you have your iConomy database on another computer.

    Not "/money", but "/money ?"

    Yep, but in 3.01 or so.
  29. Offline


    Its comes up a whole bunch of new commands like "/money rank" and alot more fun:)
    But can still dont right-click the sign i placed over the chest and buy things :/
  30. Offline


    You should tell me the first lines.

    Also, try re-downloading the plugin and iconomy.
  31. Offline


    I have been trying to get the plugin to work for some time now, to no avail.
    Only the admin can create a shop, but the users can't create them nor use them
    reciving the message: [Permissions] You can't make this type of shop!
    Is there a specific version of Permissions i should be using? (using 3.0.6)
    permissions file:

Share This Page