[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


  3. Offline


    Not really a harmful error, but if you want it gone, test the TEST VERSION.
  4. Offline


    I am having trouble with selling enchanted items on the latest build. Items seem to work but I see that you have made some changes to enchantments and durability? Perhaps I have set something up wrong, but it was working fine until the updates.
  5. Offline


  6. Offline


    When someone wants to sell something to the admin-Sop, he gets the message that the store owner doesnt have enough money. But the iConomy account from the server shop has more than enough money and the name in the config is also correctly specify:

    Tested with:
    ChestShop 3.50 v0023
    Vault 1.2.19
    iConomy 6.0.10b
  7. Offline


    Acrobot are you sure it has nothing to do with LWC? Please don't give up on me ._.
  8. Offline


    How do you do this? after you make sign?
  9. Offline


    hello people I'm playing in a threesome with 2 other friends on a minecraft nitrado server and look for a plugin that creates a shop is just filled with the raw materials and commodities prices all have a firm.
    (not a player on the shop itself)
  10. Offline


    How Do I Make It Sho TNT Can Blow Up The Shops?
  11. Offline


    How Do I Make Chest Shop RaidAble To TNT?
  12. Offline


    Yes, it has nothing to do with LWC.

    Just, try again.

    Download ChestShop TEST version and delete all old ChestShop files.
    Install ChestShop and try typing /csversion to make sure it works.
    Create a shop normally.
  13. Offline


    how do you place colors on the sign when the id is 351:1?
  14. Offline


  15. Offline


    Having an issue with my chestshops example. 278-an (diamond pick with unbreaking 3) even though I have the sign properly set up it keeps saying the chest is 'out of stock' to sell Doesnt seem to be problems with potions and the like with :#### codes but so far weapons with enhancements all say out of stock.

    version info
    craftbukkit 1.3.2 R2.0
    chestshop 3.50t0013
    vault 1.2.9-b248
    pex 1.19.3
  16. Offline


    Have you tried the latest TEST VERSION?
  17. Offline


    yeah I updated now
    getting error now as well on console.
    16:16:16 [SEVERE] Could not pass event SignChangeEvent to ChestShop v3.50t0024​
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)​
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)​
    at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)​
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)​
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)​
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1334)​
    at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:46)​
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)​
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:111)​
    at net.minecraft.server.ServerConnection.b(SourceFile:35)​
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)​
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:561)​
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)​
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)​
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)​
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)​
    Caused by: java.lang.NullPointerException​
    at com.Acrobot.ChestShop.Listeners.Block.SignChange.formatItemLine(SignChange.java:231)​
    at com.Acrobot.ChestShop.Listeners.Block.SignChange.onSignChange(SignChange.java:77)​
    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:339)​
    ... 15 more​

    I looked at what versions you had and seen you had a semi-stable 3.46 so I tried that and after installing that version jar everything worked fine also the sign creation error dissapeared as well.

    PS. I love this plugin keep the great work up, here is suggestion for something to add... faction owned shops as in set a shop up and have the faction name as the owner so the faction gets paid the money.
  18. Offline


    Hey there.
    The reason why 3.50 takes so long is that you're now able to make plugins for ChestShop which essentially do that :)

    And for the error - I'll be fixing it, thanks!
  19. Offline


    Bukkit: #2399
    ChestShop: v3.50t0024
    2012-10-24 06:48:32 [SEVERECould not pass event SignChangeEvent to ChestShop v3.50t0024
        at org
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1334)
    at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:214)
    at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:111)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:561)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused byjava.lang.NullPointerException
        at com
    at com.Acrobot.ChestShop.Listeners.Block.SignChange.onSignChange(SignChange.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:474)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)
    15 more
  20. Offline


    2012-11-01 00:00:46 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop v3.46
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:114)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:549)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:111)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:569)
    at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
    Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at com.Acrobot.ChestShop.Config.Config.getBoolean(Config.java:29)
    at com.Acrobot.ChestShop.Listeners.Player.P

    Pleaze help me
  21. Offline


    White on white is a really bad font colour choice.

    Also, you've set some property in config to something else than "true" or "false", but I can't tell you which one, because you've cut the message right there where it says.
    Sycholic likes this.
  22. Offline


    Hey guys, pay attention right clicking admin shop sign.
    If in config.yml ALLOW_PARTIAL_TRANSACTIONS: true
    The player is able to get money :S X without the item.
  23. Offline


    Impossible o.0
    Which ChestShop version? Which economy plugin? Have you got any errors in your server.log?
  24. Offline


    Is it possible to make price like it needs $ and diamonds in inventory?
  25. Offline


    nice work the beta seems to work great. looking forward to the release. Only real bug i noticed is you cant sell leaf blocks. always says you don't have enough to sell.
  26. Offline


    Haha, not really a bug - just look at leaves' item id (use /iteminfo while holding them in hand) - the leaves that fall from tree are different than the ones you pick up - Jeb_, IIRC, had to add the separate data value to make the placed leaves not decay.
    Sycholic and XxBoonexX like this.
  27. Offline


    Ohhhh nice good to know, ty
  28. Offline


    Yeah use iteminfo not itemdb (essentials I think that comes from) iteminfo will provide the item:code that you need to use to sell special titles or weapons etc.
  29. Offline


    I get this error upon making new shops sometimes. This error was one for clay. Bukkit 1.4.2 Beta (R0.2), Chestshop version 3.50t0026. I've also noticed it isn't "rephrasing" some signs (i.e. 302 -> Chain Helm), or others it is leaving the _ in between names (i.e chainmail_leggings). Other than that this is working very well, thank you!!
  30. Offline


    Yeah, I fixed it, the fixed version will be uploaded soon.

    Also, it isn't rephrasing sings which wouldn't fit or wouldn't mean the same. I can't exactly tell you why Chain_Helm wouldn't work, however there's probably a reason.

    And for chainmail_leggins, it should work fine - however, the error you posted might have prevented it from being formatted.
  31. Offline


    I also think I may have been incorrect, the error could be from players buying. Not sure yet, its a little sporadic. Thanks for the quick replies!

Share This Page