[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

    ElDynamite

    I'm getting this weird error in console when I try to buy/ sell to shop:
    22:24:14 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:526)
    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:111)
    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)
    Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
    at com.Acrobot.ChestShop.Config.Config.getString(Config.java:29)
    at com.Acrobot.ChestShop.Shop.Shop.getOwnerAccount(Shop.java:197)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:88)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 12 more
    Would you be able to help? I can't read that :/
    My economy plugin is definitely working because it says
    22:31:27 [INFO] [ChestShop] Enabling ChestShop v3.36
    22:31:27 [INFO] [ChestShop] Vault loaded using economy plugin BOSEconomy
    when I load.
    Thanks!
     
  3. Offline

    fineout

    Please help me. I have been trying all day to get this to work. When i try to buy from the sign(ADMIN SHOP and ONLY BUY), nothing happens at all but when I try to sell it says you cannot sell here... obviously. so here is the code.
    23:23:27 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:441)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9
    2)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
    at com.iCo6.system.Queried.useMiniDB(Queried.java:92)
    at com.iCo6.system.Queried.hasAccount(Queried.java:237)
    at com.iCo6.system.Accounts.exists(Accounts.java:10)
    at net.milkbowl.vault.economy.plugins.Economy_iConomy6.getBalance(Econom
    y_iConomy6.java:124)
    at net.milkbowl.vault.economy.plugins.Economy_iConomy6.has(Economy_iCono
    my6.java:165)
    at com.Acrobot.ChestShop.Economy.Vault.hasEnough(Vault.java:22)
    at com.Acrobot.ChestShop.Economy.Economy.hasEnough(Economy.java:48)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:57)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:79)
    at sun.reflect.GeneratedMethodAccessor6.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.ja
    va:301)
    ... 12 more
    >
     
  4. Offline

    Evilhamster

    Acrobot

    Thank you :D tis all i can say..
     
  5. Offline

    Epics

    Latest beta...
    Code:
    2012-03-04 05:18:22 [INFO] [ChestShop] Enabling ChestShop v3.36
    2012-03-04 05:18:22 [SEVERE] Error occurred while enabling ChestShop v3.36 (Is it up to date?)
    java.lang.NoSuchMethodError: org.bukkit.plugin.PluginDescriptionFile.getSoftDepend()Ljava/lang/Object;
        at com.Acrobot.ChestShop.ChestShop.getDependencies(ChestShop.java:149)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:37)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:54)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Thanks
     
  6. Offline

    Toxic__Waste

    not going to quote but exact same as nate above
    plugins

    towny
    iconomy 6
    lwc
    vault

    just like nate sends errors but works
     
  7. Offline

    PutoBoy

    working in 1.2.3?
     
  8. Offline

    Wolf480pl

    Yes, it works!
    But don't forget to update iConomy.
     
  9. Offline

    Acrobot

    Epics
    Are you using the latest 3.36 version? (There was a dev version named 3.36, but it's not the same as the release)

    Chrisski3
    That depends on the economy plugin you're using.

    Nate954
    Well, it will be probably possible in ChestShop4, but not earlier :p

    ElDynamite
    You probably have something wrong in the config, regarding the server_economy_account

    fineout
    That's iConomy's 6 problem, and "you can't sell here" means that your 3rd sign line is wrong.
    It should be either
    B 5
    S 5
    B 5:5 S
     
  10. Offline

    ElDynamite

    Thanks, it's working now!
     
  11. Offline

    convictedsaint

    This happens when someone tries to use a ChestShop:
    Code:
    2012-03-04 14:18:39 [SEVERE] Could not pass event SignChangeEvent to ChestShop
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1247)
        at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/flags/StateFlag
        at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:92)
        at sun.reflect.GeneratedMethodAccessor71.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:301)
        ... 10 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.flags.StateFlag
        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:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
    I also have this set in the ChestShop configs:
    WORLDGUARD_INTEGRATION: false
     
  12. Offline

    Acrobot

  13. Offline

    convictedsaint

    Thanks. Great support. Wonderful plugin.
     
  14. Offline

    pjt0620

    one of my players reported this bug to me


    Chest Shop DUPING BUG IMPORTANT!!!!!!!!!!!!!
    Good lord, you can dupe items using the chest shops.

    Now since the update you can sell an amount of items less than the sign says...

    However, if you say sell 5 obsidian to a shop that has 8 as its quantity you can immediately buy 8.
    Therefore you can make an infinite number of whichever item you want.

    km3r told me of this so thanks to him I suppose. I have tested it on my shops with an alt, and it for sure works.
     
  15. please update to 2036
     
  16. Offline

    MysteryX

    Hi!
    Im Using MC 1.2.3 + craftbukkit-1.2.3-R0.1-20120303.110204-17.jar

    Guess this wont work untill u have updated it?
     
  17. Offline

    Epics

    Works fine now, thanks Acrobot!
    Sorry for the late reply, been busy updating!
     
  18. Offline

    LetCraft

  19. Offline

    DarkDanny

    How to reload plugin? :eek:

    EDIT:

    Nvm I fixed it.
     
  20. Offline

    Kainzo

    [quote="Acrobot,
    B 5:5 S[/quote]

    The packages for Heroes has changed. You will see this message unless reorganize all the imports.
    http://pastie.org/3529589
     
  21. Offline

    Acrobot

    Kainzo
    Everyone

    Sorry I can't reply at the moment, I currently have almost no free time :/
    I'll be fixing the bugs soon, and the worst Bukkit (or something) bug will be fixed too (I think)

    pjt0620
    Which CraftBukkit version?
     
  22. Offline

    Hackers5955

    Can you uppdate it we are in 1.2.3 now:D
     
  23. Offline

    JordanMacleyn

    Why I'cant sell ?
     
  24. Offline

    JordanMacleyn

    Change to 1.2.3 version !
     
  25. Offline

    Acrobot

    Hackers5955
    Yeah, sorry - been a bit busy :/
    I will do everything I can to update it.
     
    Hackers5955 and Debilitation like this.
  26. Offline

    Acrobot

    pjt0620
    Sorry, can't reproduce it - can you tell me, step-by-step, how to reproduce it?
    If I sell 5 items to the store, I only get 5/8 * price, so it shouldn't bug o.0
     
  27. Fail, in the thread is said, that the plugin is v. 3.37

    And in the download there is the version 3.36

    -,-

    I need the 3.37 ! :D
     
  28. Offline

    Acrobot

  29. ok, but i couldn't download it 30 minutes ago !
     
  30. Offline

    DoomAngelBlade

    v.3.36
    Mods: McMMO, IC 2 , BC, RedPower, Bukkit, LWC.
    Problem: Sign is locked with magical spell when using.
    Permissions Given To Users:
    - iConomyChestShop.shop.create

    - iConomyChestShop.shop.create.<id>

    - iConomyChestShop.shop.exclude.<id>

    - iConomyChestShop.shop.buy

    - iConomyChestShop.shop.sell

    - iConomyChestShop.command.iteminfo

    Signs And Chests AUTOPRIVATE when placing in world.
     
  31. Offline

    Acrobot

    DoomAngelBlade
    The permissions are:
    - ChestShop.shop.create
    - ChestShop.shop.buy
    - ChestShop.shop.sell


    and not the ones you posted.
    Also, update to 3.37, and the "autoprivate" is a part of LWC, not ChestShop.
    I'm sorry, but I don't understand the problem.
     

Share This Page