[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

    Delta-One
    What do you mean by "don't work"?
    PEX is just a plugin that doesn't really like to work with Bukkit's permission system, so it might be PEX's fault, but first you need to tell us what doesn't work and post your perm config on pastebin.com
     
  3. Hey Acrobot!
    About translations: were there any changes or updates? If yes I would like to translate them again :)

    btw, can you change the link to http://minemania.ru/ ?
    Thanks
    Code:
    [URL]http://minemania.ru/[/URL]
    
     
  4. Offline

    Acrobot

    VADemon
    Only one new string - a shop refund.
    And sure, I will :)
     
  5. Offline

    abctheing

    When i have Gamemode 1 i can't buy something from the ChestShop.
    I must set me to Gamemode 0 and THEN i can buy.
     
  6. Offline

    Acrobot

    abctheing
    Change the settings in your config :)
     
  7. Offline

    AcidSikeO

    Aha. Thanks alot.
     
  8. Offline

    madilla111

    cant get admin shops to sell me things saying i cant buy or sell here.... i have tried the permissions but still doesn't work could someone help thanks
     
  9. Offline

    Etsijä

    Player creates a player shop, and puts as a test:

    Playername
    64
    B 1:1 S
    Stone

    => this is what we get when I try to buy (left-clicking the sign with mouse):

    16:49:51 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to ChestShop
    java.lang.NullPointerException
    at com.Acrobot.ChestShop.Economy.Register.add(Register.java:15)
    at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:22)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:77)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:78)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:507)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

    Version 3.34 in use, with Recommended Build #1818.
    Player shops used to work, so this is quite fatal.
     
  10. Offline

    Kazulin

    Excuse me, I'm completely new to plugins and this is my first server. How do I get this to work ? I downloaded and installed the .jar file into the plugins but when I do the sign next to the chest nothing happens. What do I do with the permissions you have available for copy/pasting ? Do i put that it in permissions.yml in the original server folder ? Sorry for my ignorance, I appreciate it. Err..also how do i turn "LWC" on ?
     
  11. Offline

    Etsijä

    Seems like ChestShop 3.34 with RB #1818 is completely broken now. Right-clicking the shop sign spams this:

    Code:
    2012-01-29 12:06:46 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to ChestShop
    java.lang.NullPointerException
    at com.Acrobot.ChestShop.Economy.Register.add(Register.java:15)
    at com.Acrobot.ChestShop.Economy.Economy.addServer(Economy.java:33)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:145)
    at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:35)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:79)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:284)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Also see my post #6387. Another similar error. Is it only us or can someone confirm this?
    EDIT: Version 3.33 still works with #1818. So something must have been broken when the plugin was updated to new event system?

    2012-01-29 12:06:46 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to ChestShop
    java.lang.NullPointerException
    at com.Acrobot.ChestShop.Economy.Register.add(Register.java:15)
    at com.Acrobot.ChestShop.Economy.Economy.addServer(Economy.java:33)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:145)
    at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:35)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:79)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:284)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServerecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  12. Offline

    godgodgodgo

    Is it possible to sell mob spawners? If it's not then could you please add this
     
  13. Offline

    fffizzz

    Code:
    09:49:27 [SEVERE] Could not pass event org.bukkit.event.block.SignChangeEvent to ChestShop
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Utils.uTowny.isInsideShopPlot(uTowny.java:16)
            at com.Acrobot.ChestShop.Utils.uTowny.canBuild(uTowny.java:29)
            at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:93)
            at org.bukkit.plugin.java.JavaPluginLoader$38.execute(JavaPluginLoader.java:530)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1094)
            at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:587)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    
    getting this now.
     
  14. Offline

    Guess?Who

    bug?
    I have name xyz ,i make a shop,ok.
    I enter the server with xyz. ,i can buy from shop but for free!
     
  15. Offline

    xBlueXFoxx

    I'm still having permission issues, when I use - -ChestShop.shop.create on "Builder" all ranks that inherit "Builder"'s permissions cannot make shops, I need this to only work on "Builder"'s group.​
    If I do NOT have - -ChestShop.shop.create, "Builder" can make shops, regardless of having or not having the permission - ChestShop.shop.create.​
    The permisison plugin I use is groupmanager.​
     
  16. Offline

    mdm514

    I have This Error That Say's: You cant create that type of shop?
    Please Help!!
     
  17. Offline

    godgodgodgo

  18. Offline

    Etsijä

    It is GroupManager's fault, it does not handle negated permissions correctly. You can hack-fix this by opening the plugin.yml from ChestShop.jar and changing the "true"s into "false"s on these lines:
    ChestShop.shop.*:
    description: Gives access to all user ChestShop permissions
    children:
    ChestShop.shop.create: true
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
     
  19. Offline

    enigmare

    Late reply sorry but ya tested it and it worked thanks :)
     
  20. Offline

    false_chicken

    Is there a way to make a admin shop with a finite number of goods? Like a standard chest shop but the money is stored on the server account?
     
  21. false_chicken
    Register an economy account, for example Market.
    Then write a sign, on the first line write Market ; other lines: like a normal shop.
    Now, you manage the extra "Market" account and you can also put items in the chests yourself.
     
  22. Offline

    Bo98

    ChestShop v3.34 now takes about 10 seconds to initialise.
     
  23. Offline

    xenilis

    having issues with the chests being able to be opened by people in player shops what do i do ._. i dont get any errors
     
  24. Offline

    Deren909

    This is an awesome plugin. Really adds some competition to economies! Can their be some sort of webstore add-on though!!?? That would be soo cool :)!

    Thanks,

    - Deren
     
  25. Offline

    lethaltactics

    Ok so my defualt players have the buy and sell permissions but can only sell wtf? I Use groupmanager btw.
     
  26. Offline

    lethaltactics

    nvm fixed it
     
  27. Offline

    kyle939

    I need help.

    I've made a shop and it says made successly right.

    I right click or left click on the shop and it just opens the crate, and I've placed all the items for the shop, to make stock into the chest, so there are stuff to buy and I cannot buy any of it. I click it and just opens, no buying or selling or anything of any kind.

    No errors, just made successful.

    Also, friends who are not admins get you do not have permissions, could anyone help me with this as it is not working.
     
  28. Offline

    Acrobot

    Ok, I can access internet for a moment - it's not on my PC though, and I don't have ChestShop or even minecraft server on it, so bear with me.

    @Bo98
    Well, it didn't on my server, but it is probably caused by lag during connecting to stats server. You can turn it off in plugins/PluginMetrics(or something like that)/config.yml

    VADemon
    Thanks :)

    @kyle939
    You aren't supposed to buy/sell to your own shop - it opens the shop's inventory.
    For your "You do not have permissions" error - check if you configured your perm plugin correctly and if you don't have multiple perm plugins.

    @madilla111
    Your 3rd sign line is wrong.
    It should be like:
    B 5
    S 5
    B 5:5 S

    @Blankplanet
    Check if you're not running multiple perm plugins - they often conflict with each other.

    @Etsijä
    At the moment I can only tell you to try using 3.33 version, but first:
    - check if the player has got an economy account
    - you can also try running Vault

    It is probably my fault (sorry :() - I don't check if the economy plugin is loaded.

    @Kazulin
    LWC is a plugin, you can use it to secure chests, but it's not really needed for ChestShop - the shop chests are automatically protected.
    The permissions are needed if you're running a permission plugin, like bPermissions or PermissionsEx. (of course, there are more)
    Regarding your problem - do you get any errors in the console of the server?

    @godgodgodgo
    I think it's possible, but I can't check that at the moment - why don't you try it yourself?

    @fffizzz
    Hmm, towny must have changed something. You can turn off the TOWNY_INTEGRATION in config at the moment, I'll investigate it when I get home.

    @xenilis
    Which ChestShop version?
    Are you sure the player who is testing this isn't OP/hasn't got ChestShop.admin or ChestShop.mod permission?

    @Deren909
    Thanks :D
    This could be added as an addon in ChestShop 4 (which development is halted, at the moment - Bukkit is changing :p)
    Could you explain a bit more how this would work, also it would be nice if you added this as a ticket in ChestShop bukkitdev page.

    Sorry if I missed something :)

    Well, I'm going back to skiing now :)
     
    Inscrutable likes this.
  29. Offline

    darkcloud784

    Anyone know of an OddItem replacement - we get alot of The item is not recognised.
     
  30. Offline

    kyle939

    Okay I've checked my file, and I have one permissions file which is bpermissions and still people are getting the you don't have permissions, and I've typed the correct info in the permissions file.
     

Share This Page