[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

    waluu

  3. Offline

    Acrobot

    @TJstriker
    If it's directly on top of the spawn, you must turn off spawn protection.
    Open server.properties, and change "spawn-protection" to 0.

    @waluu
    Under "Default" and "permissions:", there is an example "bar.foo" permission.
    Copy the line, paste it in new line after the bar.foo, and replace "bar.foo" with your Permission, so it may look like:

    Code:
    permissions:
        - 'bar.foo'
        - 'iConomyChestShop.shop.*'
    
     
  4. Offline

    TJstriker

    okay thanks, it was the spawn protection.
     
  5. Offline

    waluu

    @Acrobot
    All plugins crash when I do that
     
  6. Offline

    vapid2323

    your copying the entire line right? Not just the "- 'foo.bar'"?
     
  7. Offline

    Hackbard

  8. Offline

    going_down00

    I have been using your plugin along with lockette, and today lockette stopped working, so i reinstalled it, and now iCononomyChest Shop will not work. In the first post you said ChestShop is compatable with lockette. Do you have any idea why this is happening all of a sudden?
     
  9. Offline

    vegmel03

    I get this message when tryeng to load the chest shop into my server!
    can some one please help me?
    "2011-06-15 10:04:38 [SEVERE] Could not load 'plugins\iConomyChestShop.jar' in folder 'plugins':
    java.lang.ExceptionInInitializerError
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:175)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:174)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:339)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:247)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Error constructing com.avaje.ebeaninternal.server.core.DefaultServerFactory
    at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFactory.java:114)
    at com.avaje.ebean.EbeanServerFactory.<clinit>(EbeanServerFactory.java:57)
    ... 13 more
    Caused by: java.lang.IllegalArgumentException: Error constructing com.avaje.ebeaninternal.server.core.DefaultServerFactory
    at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:107)
    at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:94)
    at com.avaje.ebean.EbeanServerFactory.createServerFactory(EbeanServerFactory.java:112)
    ... 14 more
    Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\Vegard Melvær\Desktop\mc bukkit\craftbukkit-0.0.1-SNAPSHOT.jar (Systemet finner ikke angitt bane)
    at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigLoader.java:121)
    at com.avaje.ebeaninternal.server.core.XmlConfigLoader.load(XmlConfigLoader.java:78)
    at com.avaje.ebeaninternal.server.core.DefaultServerFactory.<init>(DefaultServerFactory.java:91)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.avaje.ebeaninternal.api.ClassUtil.newInstance(ClassUtil.java:104)
    ... 16 more
    Caused by: java.io.FileNotFoundException: C:\Users\Vegard Melvær\Desktop\mc bukkit\craftbukkit-0.0.1-SNAPSHOT.jar (Systemet finner ikke angitt bane)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at com.avaje.ebeaninternal.server.core.XmlConfigLoader.checkJar(XmlConfigLoader.java:176)
    at com.avaje.ebeaninternal.server.core.XmlConfigLoader.search(XmlConfigLoader.java:110)
    ... 25 more"
     
  10. Offline

    bibsch

    hello,

    i have installed the 3.0 beta 3 of chestshop. i get this error often:

    10:32:19 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
     
  11. Offline

    Acrobot

    @vegmel03

    Please move your server to somewhere that doesn't have special characters in your file path, like "C:/Server"

    @bibsch
    Could you give me the whole error?

    @going_down00
    What do you mean by "doesn't work"?

    @Hackbard
    Thanks, added to main post!
     
  12. Offline

    Debilitation

    I've got 860, except this bug has been happening since 766.
    Yes, I have GroupManager from Essentials.
    I dont think it's a permission erorr...
    No

    Okay I'm just going to flat out tell you the error.

    When my users remove a chest, they still have their limit on them. My users have a limit of 3, so if one removes a chest one sticks, until I have to remove it by doing lwc admin purge name

    Is there a way sot hat whenever they remove a chest or I, it automatically removes 1 lwc protection from their account?
     
  13. Offline

    bibsch

    what are the permissions nodes for 3.0 beta 3?
     
  14. Offline

    Acrobot

    @bibsch
    They're in the readme.
    Nothing really changed, just iConomyChestShop to ChestShop, so for example:

    iConomyChestShop.shop.buy

    would be
    ChestShop.shop.buy

    @Debilitation
    That would sound like a bug with LWC :/
    I'll make further investigation.
    (Meanwhile, you can turn LWC protection off - Leave the default one)
     
  15. Offline

    Kainzo

  16. Offline

    Acrobot

    @Kainzo
    Somehow, it doesn't know the item, I'll look into it.
     
  17. Offline

    fofogogo23

    I get "Owner does not want you to buy here" every time I or a friend tries to buy from an adminshop. I set it up like this:
    AdminShop
    1
    B:15
    rawfish

    This allows people to sell (Which i DO NOT want) but dissalows them to buy.
     
  18. Offline

    Felonu

    Your sign format is wrong... the third line should be
    B15
    to allow buying
     
    fofogogo23 likes this.
  19. Offline

    fofogogo23

    Thanks :D
     
  20. Offline

    Thebuilderdd

    I keep getting the Permissions error. Any help?
     
  21. Offline

    City Builder

    Hi,
    We're having trouble with your plugin.

    I have shops that are full of lava buckets, but when members try to buy from it, it tells them (and me) that my shop is out of inventory.

    Then i go to another users shop and try to buy some grilled pork and it tells me that my inventory is full when in reality my inventory has space, but the shop is out of grilled pork.

    A user goes to buy a compass from my compass chest shop and is told that it's out of stock when it's full of stock.

    Any clues what might be going on here?

    I'm using bukkit #816


    Edit: Updated to Bukkit #860 but the same problem persists.
     
  22. Offline

    Acrobot

  23. Offline

    Debilitation

    @Acrobot - hey, so instead of using the LWC protection, if I use the default one, will it still protect thier chests?

    I don't want players stealing other peoples items/chests.
     
  24. Offline

    Acrobot

    @Debilitation
    Yeah, it will still work, just test it by yourself :)
     
  25. Offline

    Debilitation

    Thanks Acro.
     
  26. Offline

    going_down00

    I fixed the issue, and what i meant was it seemed as if the server didn't have chesthop on it at all. I have a lot of mods on my server and one of them had to be conflicting with chestshop. At first i thought it was lockette but now i am not sure.

    I have these installed

    -Multiverse
    -WorldGaurd
    -iConomy
    -Lockette
    -Permissions
    -Towny
    -World Edit
    -Dungeon
    -Portcullases
    -Retractable doors
    -secret doors

    If you have time you might want to check the compatibility of those mods with yours, because at least one seems to completely disable chestshop.
     
  27. Offline

    Acrobot

    @going_down00
    List of checked plugins:
    • iConomy
    • Lockette
    • Permissions
    • Towny
    • WorldEdit
    • WorldGuard
    • MultiVerse
    So it's either:
    • Dunegon
    • Portcullases
    • Retractable doors
    • secret doors
    And how did you fix this issue?
     
  28. Offline

    going_down00

    I had to completely reinstall all my plugins, i started with chestshop and added one plugin at a time until i was finished. Nothing ever happen though and chestshop is working fine now.

    Out of those 4 Dungeon is most likely to cause issues (my thoughts). Since the other three provide only simple uses. I believe Dungeon has some coding pertaining to chest, and secret doors supports using chest as a block.

    those are some specifics that i know.
     
  29. Offline

    ncjenkin

    This might be a stupid question but I'm new to managing a server.
    Is it possible to limit how many shops a certain group can make?
    I know how to allow/disallow a group from creating/using shops, but I want to make it where my "Members" group can only make 3 shops max. Is that possible?
     
  30. Offline

    Acrobot

  31. Offline

    arnie231

    i am having a problem with perm nodes it will work for one group but wont work for another

    and even when i add every perm node to that group it still doesnt allow the user to use buy/sell ive checked for errors and cant see any maybe you can ?

    Citerzens:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Guest
    permissions:
    nSpleef.member.join
    nSpleef.member.leave
    nSpleef.member.list
    lwc.protect
    iConomy.access
    iConomyChestShop.shop.buy
    iConomyChestShop.shop.sell


    everything else is working except shops

    craftbukkit 816
    iconomy 816
     

Share This Page