[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

    Freddy

    i have the config file too when ever someone trys to buy somthing it says you can buy from shops. they cant create or sell ether
     
  3. Offline

    danzer

    Getting following error too, upgraded from earlier version:
    Code:
    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)
    
     
  4. Offline

    sillyrosster

    So they can buy from shops, but they can't make their own or sell stuff to other shops? I would talk to the plugin dev guy who made this plugin. Not me lol..
     
  5. Offline

    Boon Pek

    What are the names for the wood (17) blocks? I can't seem to get them funtioning :/
     
  6. Offline

    Acrobot

    @Boon Pek
    Log

    @Everyone with "java.lang.NoSuchFieldError: BLOCK_RIGHTCLICKED"
    You have an old plugin version,
    please update.

    @Freddy
    I guess your Permissions file got corrupt, please start again with default one.
    @12345blitzkrieg
    NoID is deleted from code - caused too much trouble.
    In next version, you will be able to type /iteminfo and it will show up, what's the item for this id("/iteminfo 5"), or what's the item in hand (just "/iteminfo")
    Permissions are in first post.
     
  7. Offline

    Thumm

    After buying from a shop inventory doesnt update right away unless item is in hand when purchase is made. It will update eventually but it seems to take some time. Not sure if this has been reported. Thanks for your hard work great plugin.
     
  8. Offline

    Acrobot

  9. Offline

    crazymadd44

    Could you please update this plugin to work with minecraft beta 1.4. I would love to use this plugin on my server.
     
  10. Offline

    Acrobot

    @crazymadd44
    It was updated the day Minecraft went 1.4 :p
     
  11. Offline

    Boon Pek

    Mhmm. Just download the attachment from the bottom of the main post ;)
     
  12. Idea:
    Admin shops needn't be stocked
     
  13. Offline

    Deadlystrike

    it seems every time a place a sign it thinks it is for your plugin and says
    no config file be sure to place everyting in /plugin or w.e

    Also i cant find a config file for your plugin?
     
  14. Offline

    Acrobot

  15. Offline

    clash

    I read through parts of this post, but did not see this request, so sorry if it's a repeat.

    It would be nice if you could type "/buy 10", and set the quantity you want to buy.
    Same for "/sell". I like to set prices for just 1 item, but it is a pain to click 64 times
    to get a stack of something.

    Is there a way to do something like that now?

    Regardless, awesome plugin. Love it! Thanks!
     
  16. Offline

    Acrobot

    @clash
    No, there isn't a way to do it atm :p

    I don't think it's possible at the moment, I'll do my best to code it tho :)
     
  17. Offline

    PandaVidya

    Any word on 2.0? It makes me sad that admin shops dont work :(
     
  18. Offline

    Acrobot

    @PandaVidya
    99,5% done :)
    What is working:
    • item selling, buying
    • admin shops
    • /iteminfo command - for item informations
    • aliases for items
    • colored items and their aliases
    • it's working faster
    • more command aliases: /buy - /chBuy - /chest buy |||| /sell - /chSell - /chest sell
    • automatically changes item ID's on signs to item names
    What am I doing now:
    • testing everything

    The 2.0 should be out tomorrow or day after :)
     
  19. Offline

    PandaVidya

    cant wait!
     
  20. Offline

    MrAllthat

    Thats what I figured out after I posted. Still learning some stuff about bukkit and all the plugins.
    I just made an account called Bank and gave it tons of money. All is good now :)
     
  21. Offline

    kmccmk9

    Hi, can anyone help me get it working? I have a chest with string inside, on the sign I write
    But it says its in the old format. What's wrong?
     
  22. Offline

    killerbeez

    Use item names kmccmk9?

    I am using 1.0 Alpha 8 with craft v617 and when people buy from a shop, the inventory is invisible until they either click on the slot where the item should be or relog.
     
  23. Offline

    Kresnik002

    Im getting here:
    Code:
    03:38:29 [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)
    
    Didnt tested to see if it is working, preparing the update for the 1.4 and just updating all plugins first
     
  24. Offline

    killerbeez

    03:38:29 [SEVERE] BLOCK_RIGHTCLICKED loading iConomyChestShop v1.0a6

    Try Alpha 8
     
  25. Offline

    Kresnik002

    Ops, downloaded the wrong link, sorry.
     
  26. Offline

    City Builder

    So making sure that I've not misconfigured...

    I installed latest version of this plugin with bukkit 617 and now when we create a shop it no longer automatically fills in the name of the item on the last line like it was when we were running the older plugin on bukkit 556

    Any solutions for this?
     
  27. Offline

    Frag_Me

    Hello
    I have an error too ...i have the default config file .

    Code:
    2011-04-04 06:03:30 [INFO] Starting minecraft server version Beta 1.4[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] Loading properties[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] Starting Minecraft server on 188.165.255.152:25613[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-612-g4c7a9e7-b617jnks (MC: 1.4)[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] Preparing level "world"[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] Preparing start region[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:30 [INFO] 144 recipes[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] [Permissions] version [2.5.4] (Phoenix) was Initialized.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] [HelpCenter] Checking file locations for upgrade availability..[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] [HelpCenter] Location OK.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] [HelpCenter] HelpCenter v1.72 enabled.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] HomeX enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [SEVERE] Nag author: 'TheYeti' of 'iChat' about the following: onPluginEnable has been replaced with a new signature, (PluginEnableEvent)[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:31 [INFO] [iConomy] Logging is currently disabled.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [iConomy] v4.65 (Kenzi) loaded.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [iConomy] Developed by: [Nijikokun, Coelho][/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [iConomyChestShop] version 1.0a8 initialized![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [Permissions] version [2.5.4] (Phoenix) loaded[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [SEVERE] BLOCK_PLACED loading iConomyChestShop v1.0a8 (Is it up to date?)[/COLOR]
    [COLOR=rgb(0, 0, 0)]java.lang.NoSuchFieldError: BLOCK_PLACED[/COLOR]
    [COLOR=rgb(0, 0, 0)]at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.java:153)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at com.Acrobot.iConomyChestShop.iConomyChestShop.setupPermissions(iConomyChestShop.java:46)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at com.Acrobot.iConomyChestShop.iConomyChestShop.onEnable(iConomyChestShop.java:73)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)[/COLOR]
    [COLOR=rgb(0, 0, 0)]at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] Lockette version 1.3.2 is being enabled! Yay![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] Lockette: Detected craftbukkit build [617] ok.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] Lockette: Linked to Permissions plugin version 2.5.4[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] Lockette: Ready to protect your containers.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [iConomy] hooked into Permissions.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [iConomyChestShop] Successfully linked with iConomy.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] LoginMessage 0.6_1 enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] Nether v1.1 enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] NoExplode version 1.4 is enabled![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [Residence] Found Permissions Plugin![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [Residence] Successfully linked with iConomy.![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [Residence] - Save Loaded![/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] [Residence] Enabled! Version v1.2.7 BETA by bekvon[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] SpawnX enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] TeleportX enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] WorldEdit 4.3 enabled.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:34 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:35 [INFO] [xWarp]: 0 warps loaded[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:35 [INFO] [xWarp]: Permissions enabled.[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:35 [INFO] [xWarp]: xWarp 2.7.7 enabled[/COLOR]
    [COLOR=rgb(0, 0, 0)]2011-04-04 06:03:35 [INFO] Done (0.489s)! For help, type "help" or "?"

    2011-04-04 06:03:34 [INFO] [Residence] Enabled! Version v1.2.7 BETA by bekvon
    2011-04-04 06:03:34 [INFO] SpawnX enabled
    2011-04-04 06:03:34 [INFO] TeleportX enabled
    2011-04-04 06:03:34 [INFO] WorldEdit 4.3 enabled.
    2011-04-04 06:03:34 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-04-04 06:03:35 [INFO] [xWarp]: 0 warps loaded
    2011-04-04 06:03:35 [INFO] [xWarp]: Permissions enabled.
    2011-04-04 06:03:35 [INFO] [xWarp]: xWarp 2.7.7 enabled
    2011-04-04 06:03:35 [INFO] Done (0.489s)! For help, type "help" or "?"
    [/CODE][/COLOR][/COLOR][/FONT][/SIZE]
     
  28. Offline

    silverneo188

    question, how do i set the permissions? I have the permissions and iconomy and iconomychestshop plugin but where do i put this?
    Code:
    iConomyChestShop.shop.create - creating a shop
    iConomyChestShop.shop.use - using the shop
    iConomyChestShop.shop.sell - selling to shops
    iConomyChestShop.shop.admin - admin
    
    Do I just put it in my permission's config file or the iconomychestshop's config file?

    EDIT:Nvrm figured it out
     
  29. Offline

    Acrobot

    @City Builder
    Nope, it was removed, be ready for 2.0, where you can just type /iteminfo and it shows information for item in hand/ item id/ item partial name.

    @silverneo188
    You need them in Permission's config

    @Frag_Me
    Seems like you have Old permissions plugin
    "com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.java:153)"

    @killerbeez
    GitHub version fixes this.
     
  30. Offline

    City Builder

    What will that do to get the name on the sign so that users don't list diamonds on the 4th line when they have dirt in the chest?
     
  31. Offline

    kmzkamikaze

    Okey so theres a problem with the signs, not a big problem but annoying problem since we use craftbook, you can't place blocks on the signs... I was not sure what plugin caused this so i disabled one by one and it turned out to be the iConomyChestShop.

    Is there a solution or do we gotta wait for a update to fix this?
    Thanks
     

Share This Page