[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

    Siloxis

    Nope no Creative Mode, Survival Difficulty level 2 (Normal)
    Spawn Zone is something around 300 Blocks away and in bukkit yml its set to 0
     
  3. Offline

    gooscar

  4. Offline

    Acrobot

    gooscar
    I can't see any economy plugin there.

    Siloxis
    Ok, did you test 3.36 and the recommended bukkit build?

    Also, did you right-click your own shop, or someone's else's shop?
     
  5. Offline

    whebzy

    PLEASE be ready for the 1.2 RB I love your plugin!
     
  6. Offline

    Acrobot

    whebzy
    "[ECON] ChestShop 3.36 (iConomyChestShop) - Chest&sign shop for economy plugins [1.1-R6/1.2]"

    Also, there isn't any "1.2 RB" yet.
    RB = recommended build

    All the 1.2 versions are only DEV versions.
     
  7. Offline

    whebzy

    Acrobot
    Oh, sorry.
    I knew that there was no RB for 1.2, I thought that you were able to go by the dev versions to update the plugin.
    And thanks for pointing out the [1.1-R6/1.2] for me.
     
  8. Offline

    Acrobot

    whebzy
    No problem :p Sorry for sounding not nice - didn't mean that. I was only slightly annoyed, because that was the, like 6th time I wrote this today :p
     
  9. Offline

    whebzy

    No, you didn't sound not nice (soz on the double negative), I was merely apologizing on account of my ignorance.
    I'm also a little frantic as my friends who play my server are constantly pestering, "The update is out! Hurry up and get the server running again I want to play!"
     
  10. Offline

    gooscar

    OOPS.
    I removed iConomy and forgot, all working perfect now, sorry for the hassle!
     
  11. Offline

    Dragendave

    I am sorry for asking, but I could't find the latest changelog :)

    So: How about the AutoSign thing I've asked you for? Did you try and if, is it possible or not.

    Greetings,
    Dave
     
  12. Offline

    Acrobot

    Dragendave
    No, sorry. I totally forgot D:
    If you added it as a ticket on dev.bukkit, I would certainly test it :)

    I also believe that unfortunately SignUpdater wasn't updated :/
     
  13. Offline

    BeeT

    Acrobot

    Worldguard integration doesn't work.
    1. Players can create shops everywhere.
    2. chestshop flag doesn't work. It says "You don't have permmision to do that"
     
  14. Offline

    Acrobot

    BeeT
    Wait, what?
    Firstly - are you using the latest WorldGuard build?

    "/region flag" is a WorldGuard command, so you need to give yourself /region flag permission.
    http://wiki.sk89q.com/wiki/WorldGuard/Permissions

    Second - did you turn WorldGuard integration on in the config?

    Also, do you get any errors in console?
     
  15. Offline

    BeeT

    Yes, I updated worldguard.

    Yes I given permissions "chestshop" allow in the region and also I turned it on in config.
    I don't have errors in config, but I can make shops everywhere and also in regions where "chestshop" flag is enabled I can't place signs and can't place chests.
     
  16. Offline

    Acrobot

    BeeT
    Really? It seems like a WorldGuard problem, not a ChestShop one - ChestShop doesn't block chest/sign placing.
    (It would just say "You can't create a shop here")
     
  17. Offline

    BeeT

    Hmm, interesting, ok thanks for help.
     
  18. Offline

    ximnotyoux

    i placed a post asking you to create a time based signshop you told me to change the time intrval in config but can you make it able to set time for every sign different
     
  19. Offline

    Etsijä

    Starting 3.36 on 1.1-R3 and getting this:

    19:00:11 [SEVERE] Error occurred while enabling ChestShop v3.36 (Is it up to date?): org.bukkit.plugin.PluginDescriptionFile.getSoftDepend()Ljava/util
    /List;
    java.lang.NoSuchMethodError: org.bukkit.plugin.PluginDescriptionFile.getSoftDepend()Ljava/util/List;
    at com.Acrobot.ChestShop.ChestShop.getDependencies(ChestShop.java:149)
    at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:35)
    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:54)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
    at im.creep.bukkitinsider.smartassery.ModifiableSimplePluginManager.enablePlugin(ModifiableSimplePluginManager.java:457)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  20. Offline

    Acrobot

    Etsijä
    R3?
    Update to at least R6 - it changed really many things, so it can't work with R3.

    ximnotyoux
    No, it's not possible at the moment.
     
  21. Offline

    J04054NT05

    Acrobot, how do i get iconomy 1.2.3 for my server,please help,because i ve got a lot of friends asking for the server, but i cant open it whit out some plugins like yours.Please help.
     
  22. Offline

    Acrobot

  23. Offline

    J04054NT05

    But it says 1.1 r5 and i need 1.2.3
     
  24. Offline

    Acrobot

    J04054NT05
    It works.
    Why don't you try it, instead of just looking at what it says?
     
  25. Offline

    truxtonl

    :( chest shop won't work when we create a shop the owner of it can left click and open teh chest
    But the people when they left click/right click (with something in thier hands) it won't buy or sell!
    we use iconomy but i don't know what is happening :(
     
  26. Offline

    Etsijä

    Well I really can't update to R6 yet - since numerous other plugins will break. I counted 8, and we are using 13. :( So have to wait until all plugin developers catch up with 1.2.
     
  27. Offline

    Acrobot

    Etsijä
    Well, use 3.35 then :p
    Which plugins, by the way?

    truxtonl
    What error do you get in console/people get in chat?
    Also, be sure not to be in creative mode (by default creative mode is blocked)
     
  28. Offline

    Nate954

    Hey Acrobot,

    Awesome plugin, first of all. However, I'm just having one small issue that has been annoying me. Whenever anyone without the ChestShop.admin node tries to make a shop, this error appears in the console:

    16:49:48 [SEVERE] Could not pass event SignChangeEvent 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 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: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.NoClassDefFoundError: com/sk89q/worldguard/protection/flags
    /StateFlag
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.ja
    va:92)
    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.ja
    va:301)
    ... 10 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.worldguard.protection.fla
    gs.StateFlag
    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)
    ... 16 more

    And the person who tried to create the sign gets no confirmation message that the shop was created. However, after that, it works perfectly, other people can buy from it like they should be able to. It's just annoying for me because whenever I look at the console, there are errors everywhere. So anyway, here is my server info:

    CraftBukkit Version: 1.1 R6 (latest stable build)
    ChestShop Version: 3.36
    Economy: Essentials (without Vault)
    Permissions: EssentialsGroupManager
    List of all plugins, in case you need them: EssentialsCore (the 4 jars included), EssentialsGroupManager (the 2 included), and ChestShop

    Thanks so much!
     
  29. Offline

    Acrobot

    Nate954
    Yeah, actually I am stupid.
    I'll be fixing that later.
     
  30. Offline

    Chrisski3

    Im probably asking a really dumb question... But how do you get Money in your Vault account?
     
  31. Offline

    Nate954

    Alright, thanks so much!

    Also, now that I'm here, I might as well make a suggestion. You should make it so that you can use in-game items as currency. Like, for example:

    Nate954
    5
    B 10 Dirt
    Cobblestone

    This sign would allow a player to buy 5 Cobblestone using 10 Dirt. I don't know if you want to (or can) do it, but it's just something I would like to see.
     

Share This Page