[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

    Uh, I will try to implement buying and selling on one sign, but still, the idea is nice.

    Now I am not ill anymore, so back to school for me :p

    I like the idea, I will try implementing it :)
     
  3. Offline

    Omen

    it would be epic if you could run redstone from a chest to a sign and connect them that way. then you can place your chest anywhere in relation to the sign. I would love to have a storage room out of the public eye but not all shops face south. I know I can make a basement, but on a multi level shop, that isnt possible.
     
  4. Offline

    fatepower

    Yea your plugin is nice, and a great idea that you can run a own selling company with your name.
    The trade is good and this might help you on the way, the essentials are using a type of that but with no selling to users. You can't run your plugin + essentials eco because of sign conflict. Anyway you might get some code referense, but beaware of using other's code, don't forget to support them by adding names/nicks ect.. Probably you allready know that but i need to say that anyway. :) As you also are a plugin dev.

    You can have a look at the SVN: http://java.net/projects/essentials/sources/svn/show/EssentialsEco?rev=518
    And you can see how it is constructed, i mean it can provide you with enough information.

    The idea of having the buy and sell into same sign is a really good idea. When you not have more stone to sell or empty inventory, you can go there and buy them instead :)

    Greetings,
     
  5. Offline

    PatrickFreed

    If you could implement redstone, thatwould be the best thing ever.
     
  6. Offline

    Acrobot

    I will try with redstone, but I don't promise anything
    Good night everyone :p
     
  7. Offline

    PandaVidya

    good night? i thought you said you were going to schoool
     
  8. Offline

    Acrobot

    I am going to school, tomorrow...
    It's 21:21 here
     
  9. Offline

    Seta

    its broken now... damn update :/ does anybody have an older Version?

    Code:
    SCHWERWIEGEND: Could not load plugins/iConomyChestShop.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:79)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:117)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:82)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
        at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.Acrobot.iConomyChestShop.iConomyChestShop.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.bukkit.plugin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassLoader)
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
     
  10. Offline

    Acrobot

    @Seta
    Update the CraftBukkit, it's worth it.
     
  11. Offline

    Seta

    LoL ... starting "Hardcore Update Action" now... No plugin seems to work now :/
     
  12. Offline

    axebyte

    Getting same error as the guy above, cant load Jar. I would update my bukkit and see.. but seems that page is down again. I must catch it everytime its down :D
     
  13. Offline

    Acrobot

  14. Offline

    axebyte

    lol guess i missed the memo on that move.. thanks!
     
  15. Offline

    Seta

    Hmm update seems to dont be an option at the moment, everything i can find there is above 400 an it seems that no plugin works there, and some dont are updated yet (Essentials!). Please give me an older Copy :/
     
  16. Offline

    Acrobot

    Okay, I'll make another copy for older versions.
     
  17. Offline

    Seta

    thx! thats awsome!

    EDIT:// AWSOME! Works perfect! ^^
     
  18. Offline

    Acrobot

    Okay, here it is.
     
  19. Offline

    Omen

    that would be great!!!! having a back room to a shop would be so nice. just the signs being visible would allow more room for the actual shop building. then people can place their chests anywhere they want! i will keep an eye on this topic to see if it makes it into one of your builds.
     
  20. Offline

    PandaVidya

    Woowt! buying works now but you need to use the item id. can't write the name. also just a request, but is it possible to make it so items dont get added to the chest? they just dissapear? basically in my server i use shops to be able to get money out into the economy. so people can sell resources to me. but the chest keep getting full :/
     
  21. Offline

    Acrobot

    @PandaVidya
    Buying works for item aliases too (at least for me).
    But I do not recommend aliases, they are just broken because of the naming system.
     
  22. Offline

    PandaVidya

    Ok they weren't working for me. Any idea on the second thing I added? to basically make items go into thin air?
     
  23. Offline

    Acrobot

    Yeah, I will definitelly make something like that.
     
  24. Offline

    Dodecha

    Is the buying shops not supposed to transfer money from the player that created the shop?

    Sellers get money from placing blocks in a buy chest but chest creator isnt subtracted any.
     
  25. Offline

    Acrobot

    Buying shops, as I said, don't work well, so they aren't transfering money from the shop creator, I'll fix it when I'll implement toggling buying/selling into chat.
     
  26. Offline

    Red00

    @Acrobot - Hey thanks for the sign placement update... I changed it to be 3 DOWN, and It works except I don't get the "Your shop has been successfully created!". I do however get the message if i place then sign direct above the chest though (even though the config is still 3 DOWN.

    I'll make a new video for this update once you get the message in place... Thanks again!
     
  27. Offline

    LucidLethargy

    Where is it? o.0

    I'm on 345 until all the plugins I use roll over to the new versions (400/50/whatevertheheckitisnow) so this would be really helpful! Right now it works alright, but it can't detect items in the chest.

    edit: OH you put it in the OP! Sorry about that. X)
    P.S. still would love a "ATM" (server pays for items) feature! Sounds like that would work perfectly since the bug people are getting is the original person not getting paid. (I can't imagine this would be super difficult to make, but then again i'm not well versed with java)
     
  28. Offline

    loloppe

    I got an error with that plugin, hope you can help me:

    I dont know what the problem, I use the last patch, last bukkit and Permissions 1.9(2.0 buggy for me..).
     
  29. Offline

    shatteredbeam

    Great plugin, but might I ask that you give us a link that is wget friendly? :)

    dropbox works great for a small add-on. Thanks for your plugin!
     
  30. Offline

    james allen

    My signs don't work with this
    Why?
     
  31. Offline

    GingernutRanger

    Help! I get this everytime!

    Code:
    22-Feb-2011 10:20:07 org.bukkit.plugin.SimplePluginManager loadPlugins
    SEVERE: Could not load plugins\iConomyChestShop.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:79)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.NoSuchMethodException: com.bukkit.Acrobot.iConomyChestShop.
    iConomyChestShop.<init>(org.bukkit.plugin.PluginLoader, org.bukkit.Server, org.b
    ukkit.plugin.PluginDescriptionFile, java.io.File, java.io.File, java.lang.ClassL
    oader)
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
            ... 8 more
     

Share This Page