[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

    heythatismydime

    Well isnt this a wierd situation lol ^^^ shad. When will the server up-date too?
     
  3. Offline

    Acrobot

    Look, I know it's frustrating, but it seems like craftbukkit

    @ShaDooM
    That's because you're using an outdated CB build. Look at the title, it's 602+

    @KeithGB
    Grr... Probably bukkit dev's changed something again...
     
  4. Offline

    KeithGB

    I'm using CB617 now with alpha7 and it seems to be working fine.

    Anyone having problems I'd suggest upgrading to CB617.

    Thanks again for the great plugin Acrobat!
     
  5. Offline

    Acrobot

    @KeithGB
    Thanks :)

    Also, if I am right, there was no need to update player's inventory manually from code, so it is removed in alpha 8.
     
  6. Offline

    Nerozx

    not working even with CB617 and i get the same error as KeithGB
     
  7. Offline

    Acrobot

    @Nerozx
    What version of ChestShop are you using?
     
  8. Offline

    Nerozx

    Latest you posted i think it's alpha 8 v 1.0 and bukkit bulid is 617
     
  9. Offline

    Crown3r

    Works perfektly! Thanks :)
     
  10. Offline

    2kool250

    does this work with groupmanager?
     
  11. Offline

    Acrobot

    @2kool250
    Yes, it works with groupmanager + fakepermissions :)
     
  12. Offline

    Nerozx

    any solutions for me?
     
  13. Offline

    Acrobot

    @Nerozx
    Hmmm...
    It looks like:
    your CB is too old, or
    your iConomyChestShop is too old :/
    Please try turning OFF the server, deleting the old plugin and then paste the new iConomyChestShop.
     
  14. Offline

    Nerozx

    thanks it works perfect!
    Btw it's a great plug-in! :D
     
  15. Offline

    Acrobot

    @Nerozx
    Thanks :)
    2.0 is 90% done!
     
  16. Offline

    arsjet

    Permissions Plugin that introduced the completed
    The non-administrator can not make a shop and buy.

    What do I have to apply for permission?


    I have a situation like the image.
    http://bit.ly/feutDt

    How can I be better?
     
  17. Offline

    Acrobot

    @arsjet
    I'm sorry, but the image link doesn't work for me.
     
  18. Offline

    JaredKey

    Did you provide permissions for users to buy from the shops? This can be found in the original post.

    (For Acrobot: It's an image of clicking on a shop sign with the error 'You can't buy from shops'.)
     
  19. Offline

    MrAllthat

    I wasn't able to find anything on this using a google search of bukkit.org:

    Would you be able to add in a config option to have the admin shop chest not destroy the item when it is sold. I wanted to be able to have my players sell gold bars to an "ATM" machine type setup then transport them to the "Bank Vault" on my server. Then I can allow players to buy back gold bars at the same rate. Effectively this allows you to deposit your gold bars in exchange for credit (iconomy money) and make a withdrawl to get the physical bars back.
     
  20. Offline

    PandaVidya

    admin shops aren't working properly. bukkit 617. When I right click an admin shop it gives me the money, but it wont take the items unless im holding them in my hand. so if i have gravel in my inventory but i rightclick with just my hand then it pays me, but doesn't take the gravel.
     
  21. Offline

    rmb938

    for me it thinks your buying the item but doesn't give you anything. Also I am getting this error in cmd

    Code:
    14:10:05 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.l()V
            at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:458)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:217)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:207)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    Hopefully that will help
     
  22. Offline

    Freddy

    i put in the permissions as shown
    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    permissions:
    - 'foo.bar'
    - 'iConomy.payment'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.create'
    but no one other than admin can do anything
     
  23. Offline

    sillyrosster

    I think you can get rid of -'foo.bar'. Lol..I don't have it in there. Sorry, I know this doesn't help you.
     
  24. Offline

    Freddy

    iconomy itself works i dont understand why chest shop is not it wont work even when i give them all promisions with the *
    it was working intil the update
     
  25. Offline

    Acrobot

    @Everyone
    2.0 is comming, please wait, ATM please use alpha 8 under my original post.

    @rmb938
    You're using an outdated version, please update.
     
  26. Offline

    Freddy

    good plugin in acrobot it was nice the other day
    but i cant get it to work now i have alpha 8 and craftbukkit 617
    but the permisions dont seem to work
     
  27. Offline

    PandaVidya

    no problem :) Only issue for me atm is admin shops but its not a big deal. can't wait for 2.0
     
  28. Offline

    Thyraxxx

    just placed the .jar in my plugin folder and got this error at the start, no folder got created too ( I have build 617 btw )

    [SEVERE] BLOCK_RIGHTCLICKED loading iConomyChestShop v1.0a6 fixed edition (Is it up to date?)
    java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED
    at com.Acrobot.iConomyChestShop.iConomyChestShop.onEnable(iConomyChestShop.java:59)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  29. Offline

    arsjet

    Thanks everyone!
    Successfully completed shops!
    Permission was caused by not authorized.

    There is no command in this plugin.
    So there is no need to give permission.
    I thought so.

    Thank you very much.
     
  30. Offline

    sillyrosster

    So admin/ops can use it, but players that don't just have unlimited access to commands can't? Just wondering, but is it making a config.yml file? Because if you just downloaded the .jar, then it won't work because it needs the config.
     
  31. Offline

    12345blitzkrieg

    how do you set it to no I.D needed?

    what are the permissions

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016

Share This Page