[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

    Kevin Forte

    I had the same problem :) Go into the config, and there's something along the lines of which account to use for the Admin Shop. Just delete what's after that altogether, including the " " and it worked for me.
     
  3. Offline

    amunro

    Thanks alot!
     
  4. Offline

    amunro

    Just checked my config and its already "".

    Code:
    separatingLineAfterTransaction: false
    doNotRemoveSignIfNotCorrect: false
    serverAccountName: ""
    #separatingLineAfterTransaction - Do you want to show a line in the chat after transaction?
    #doNotRemoveSignIfNotCorrect - Do you want to keep the sign, if it's not correct?
    #serverAccountName - Account of the server to use with AdminShops, blank if you don't want to use one
    If this is the part you mean :S
     
  5. Offline

    jbMurdock

    Try to remove the "" as well...
     
  6. Offline

    amunro

    Tried that, and now when i left click on signs nothing happens. You can still buy but not sell...
     
  7. Offline

    Acrobot

    @jbMurdock
    I wouldn't do it.

    This is a weird issue, btw.

    Please try to re-download the plugin?
     
  8. Offline

    amunro

    Ok, i gave up, i have just made it so that my bank account is the account for adminshop and then given myself lots of money.
     
  9. Offline

    amunro

    and for some reason now my money does not go down, lol! it does the opposite of what you would expect!
     
  10. Offline

    Kevin Forte

    That's really odd hahaha. I would try just wiping the plugin folder and letting it generate a new config. Are you using the most recent version of the plugin?
     
  11. Offline

    Acrobot

  12. Offline

    uncaer9

    Hi. When i installed that on my LAN server(latest dev bukkit snapshot) and played with my sister(with nick Player if it matters), when she buy something it takes it from my chest and gives me money, but she doesn't receive anything and she doesn't spend her money.
     
  13. Offline

    Acrobot

    @uncaer9
    Lastest dev bukkit snapshot doesn't work with this.
    I am waiting for Reccomended Build, or at least candidate for RB.
     
  14. Offline

    omerdn1

    exact same problem for me :(
    please fix this
     
  15. Offline

    jbMurdock

  16. Offline

    Rick

    no 814? maybe?
     
  17. Offline

    bfanboy

    Getting this error on server reload on cb803 icc 2.73
    "The plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin."
     
  18. Offline

    Acrobot

    @bfanboy
    I know about it, and it doesn't really bug anything :)
    I want to have Bukkit for 1.6 :(
     
  19. Offline

    Acrobot

    To all:
    I will try to fix the plugin for #615 later today (It's 01:34 AM)
     
  20. Offline

    WizardCM

    Very unusual, annoying bug:
    I made a sign with the following contents (for large ASCII writing):
    88
    88
    88
    88
    And it tells me this:
    [Shop] You have no chest set up!

    Would love a way around this, my jail now says JA L, and my store says S ORE.
     
  21. Offline

    anubisrwml

    Everything seems to work in 815 - except I'm getting an error when people try to buy/sell - all my other plugins work just fine and I havn't had any major bug issues.

    21:18:14 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.IllegalArgumentException: Listener already listening
    at net.minecraft.server.Container.a(SourceFile:28)
    at net.minecraft.server.EntityPlayer.syncInventory(EntityPlayer.java:70)
    at org.bukkit.craftbukkit.entity.CraftPlayer.updateInventory(CraftPlayer
    .java:217)
    at com.Acrobot.iConomyChestShop.Shop.buy(Shop.java:80)
    at com.Acrobot.iConomyChestShop.ShopManager.buy(ShopManager.java:61)
    at com.Acrobot.iConomyChestShop.ShopManager.transaction(ShopManager.java
    :43)
    at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerI
    nteract(iConomyChestShopPlayerListener.java:87)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:299)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:310)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:209)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:544)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:215)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:396)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:308)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    I'm assuming it's related to the Listener heh - I don't know java though.
     
  22. Offline

    Donny

    ChestShop is what my server revolves around. Lets hope it's an easy fix for you after a RB CB comes out =)

    Go head and schedule the next week of school/work off so you have time for it ;)
     
  23. Offline

    Acrobot

    @WizardCM
    There is an option in config.
    "doNotRemoveSignIfNotCorrect"

    @anubisrwml
    Yes, I know

    @Donny
    Doing it now, however, I want to relase ChestShop 3.0 eventually :p It's like 90% done, now just little things to do.
     
  24. Offline

    Hex

    Code:
         Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                -'fight.user'
                -'jobs.join.*'
                -'jobs.join.jobname'
                -'iConomyChestShop.shop.buy'
                -'iConomyChestShop.shop.sell'
    Did I get the permissions wrong? The players cant buy anything.
     
  25. Offline

    arsjet

    add other groups as well.
     
  26. Offline

    Hex

    Code:
         Default:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                -'fight.user'
                -'jobs.join.*'
                -'jobs.join.jobname'
                -'iConomyChestShop.shop.buy'
                -'iConomyChestShop.shop.sell'
    
         Starters:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'foo.bar'
    
         Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                -'fight.user'
                -'jobs.join.*'
                -'jobs.join.jobname'
                -'iConomyChestShop.shop.buy'
                -'iConomyChestShop.shop.sell'
    
         Owner:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                 - '*'
     
  27. Offline

    arsjet

    I think it's right.
     
  28. Offline

    Hex

    It doesnt work though, an Admin tried to do it but it didnt work. Said he had Permission problems
     
  29. Offline

    arsjet

    bukkit What version?
     
  30. Offline

    Hex

    Not sure, how do I check
     
  31. Offline

    arsjet

    Try running

    146 recipes
    16 achievements
    20:15:06 [info] Starting minecraft server version Beta 1.5_02
    20:15:06 [info] Loading properties
    20:15:06 [info] Starting Minecraft server on *:25565
    20:15:06 [info] This server is running Craftbukkit version git-Bukkit-0.0.0-751-
    g45fecad-b798jnks (MC: 1.5_02)
    20:15:06 [info] Preparing level "world"
    20:15:06 [info] Preparing start region
    20:15:07 [info] Preparing spawn area: 65%
     

Share This Page