[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


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!
    I've put a LOT of effort into making this plugin,
    you can donate if you appreciate my effort =)

    - An economy plugin supported by Register or Vault, for example iConomy, BOSEconomy or Essentials Eco.
    - 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

    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.

    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/

    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:

    (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:

    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:
    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)

    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)

    If you want to delete your old shop, simply SNEAK and destroy the sign.
    It's that easy =)

    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?

    Changelog (open)

    Changelog can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/
  2. Offline


    Yea well that is what I have got, but users aren't able to buy, it sais, 'you cannot buy here' Or so im told from one of them.
  3. Offline


    Could I see your permission config?
  4. Offline


    Let me correct myself sorry, they CAN buy, but they cannot sell :/ Aparantly is sais 'nothing' when they go to left click the sign, any suggestions?

    And yes sure I will edit it into this post.

    default: false
    prefix: '&9[Trusted]'
    build: true
    - ecoCreature.PVPReward
    - ecoCreature.DeathPenalty
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - essentials.home
    - essentials.sethome
    - essentials.spawn
    - essentials.msg
    - essentials.afk
    - essentials.list
    - iConomy.help
    - iConomy.payment
    - iConomy.holdings
    - mcmmo.ability.*
    - mcmmo.skills.*
  5. Offline


    What version of ChestShop do you have? Older versions have the command where you have to /sell before you can sell anything.

    What permissions plugin are you using?
  6. Offline


    Im pretty sure I got the version at the top with the huge link
    ChestShop - DOWNLOAD
    This the most recent?

    I just asked a player then to type /sell and it said.
    'you dont have access' :/ ?

    Permissions wrong?

    Also, the latest permissions plugin.
  7. Offline


    :rolleyes: yea.. that would be the most recent...
    You might need to check your permissions config. go here: http://yaml-online-parser.appspot.com/
    and paste everything on it to look for errors :D
  8. Offline


    Looks fine. :(
  9. Offline


    Hmm... I can't help you without the screenshots/video, sorry :/

    If you use external database for iConomy/BOSEconomy, your server waits until it finishes querying it - that means lag. Try using a default SQLite database.

    Well, the /sell command isn't in ChestShop anymore.
    However, if they want to sell and the spawn protection is blocking it, go to bukkit.yml and change spawn-radius to 0.
  10. Offline


    Little note, I figured it out, pretty embarrassing really...
    I had the selling price as 'B 100:0 S' therefore making it deny the sale request :p
    Good for other people to know I suppose. Im sure its not a common problem.
  11. Offline


    @Acrobot Also! I think it would be a cool feature if you made it so that 'second hand' goods couldn't be sold, or have you already done this?
  12. Offline


    I am not sure if this was already said (didn't find it in a search), but it could you update the plugin to work with new items in 1.8.1 like Melon?

    Also it would be nice to support cycle block names like Redwood or Birch.
  13. Offline


    Problem... when i sell item write :

    You can't sell here !

    Permissions is good.
  14. Offline


    We've been having issues with the plugin recently.. Just at random times, it'll screw up and not let people buy, saying they don't have enough money. Anyone have an idea?
  15. Offline


    iConomy 6 error :/
    You should probably ask it in their thread.

    What do you mean?

    Well, yes - it works.
    Also - it works with the names like redwood -
    redwood log
    birch log,
    red wool, etc.
  16. Offline


    18:19:08 [SEVERE] Error occurred while enabling ChestShop v3.21 (Is it up to dat
    e?): com/nijikokun/bukkit/Permissions/Permissions
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
            at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugin(pluginE
            at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(plugin
            at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:57)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:170)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.bukkit.Permissions.Pe
            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.
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 13 more
    18:19:08 [INFO] [ChestShop] Essentials 2.2 loaded.
    Whenever I run my server I get this error code, does anybody have any idea on what this means? I also have my permissions here:

            default: true
                build: true
            - 'ChestShop.shop.*'
            - 'lwc.protect.*'
            - 'towny.town.*'
            - 'towny.nation.*'
            - 'towny.wild.*'
            - 'towny.spawntp'
            - 'towny.publicspawntp'
            - 'essentials.kit'
            - 'essentials.balance'
            - 'essentials.pay'
            - 'essentials.afk'
            - 'essentials.compass'
            - 'essentials.depth'
            - 'essentials.getpos'
            - 'essentials.help'
            - 'essentials.list'
            - 'essentials.mail'
            - 'essentials.mail.send'
            - 'essentials.me'
            - 'essentials.motd'
            - 'essentials.msg'
            - 'essentials.nick'
            - 'essentials.realname'
            - 'essentials.rules'
            - 'essentials.seen'
            - 'essentials.suicide'
            - 'essentials.whois'
            - 'essentials.spawn'
            - 'essentials.back'
            - 'essentials.home'
            - 'essentials.sethome'
            - 'essentials.sethome.multiple'
            - 'essentials.warp'
            - 'essentials.warp.list'
            - 'essentials.portal'
            - 'essentials.worth'
            - 'essentials.ignore'
            - 'essentials.suicide'
            - 'essentials.kick'
            - 'essentials.kick.exempt'
            - 'essentials.kick.notify'
            default: false
                build: true
            - 'essentials.god'
            - 'essentials.heal'
            - 'essentials.heal.others'
            - 'essentials.kit'
            - 'essentials.time'
            - 'essentials.sell'
            - 'essentials.spawner'
            - 'essentials.ban'
            - 'essentials.ban.exempt'
            - 'essentials.ban.notify'
            - 'essentials.ban.offline'
            - 'essentials.broadcast'
            - 'essentials.clearinventory'
            - 'essentials.clearinventory.others
            - 'essentials.mute'
            - 'essentials.mute.exempt'
            - 'essentials.tempban'
            - 'essentials.tempban.exempt'
            - 'essentials.tempban.offline'
            - 'essentials.unban'
            - 'essentials.weather'
            - 'essentials.jump'
            - 'essentials.setwarp'
            - 'essentials.joinfullserver'
            - 'essentials.signs.color'
            - Default
            default: false
                build: true
            - '*'
            - 'ChestShop.*'
            - 'lwc.admin.*'
            - 'towny.*'
            - 'essentials.*'
  17. Offline


    Your permissions .jar is corrupter, re-download it.
  18. Offline


    Well i have iconomy but im not sure wat u mean by, you must specify in the preffered economy plugin
  19. Offline


    [quote="Acrobot, post: 757318"
    Well, yes - it works.
    Also - it works with the names like redwood -
    redwood log
    birch log,
    red wool, etc.[/quote]
    ahh yeah I spelled it redwood with different caps I think. Same for melon. Or something. It gave me an error saying bad id, but it is working now.
  20. Offline


    @Acrobot Well, for example. Armour is a durable good, so maybe you could configure it so that if you try and sell it once it has been used (or undergone some durability) it cannot be sold, Otherwise people could make money off almost completely used tools and armour, the alternative is to just set the price as zero, but mabey it could say 'You cannot sell used items' or something?
  21. Offline


    I had the same problem, it is because you are trying to sell the item at '0' dollars?
    like this ..

    Admin shop
    B 1000:0 S <--- make the sale value an actual number.

    If it is for sale for zero dollars, it 'cannot be sold'
    Try making the item have a sale value, see if it works then.
  22. Offline


    Im still having the same problem as the players on my server cant seem to sell goods. The permissions seem to be fine, is there anyway that I can use a negative node for the permissions? Like allow them to everything, exept creating the shops, and destroying them. Here is my permissions file,

    default: false
    prefix: '&9[Trusted]'
    build: true
    - ecoCreature.PVPReward
    - ecoCreature.DeathPenalty
    - ChestShop.shop.buy
    - ChestShop.shop.sell

    ^^^ I have removed these permissions now, just so its blank until I hear back from you.
    - essentials.home
    - essentials.sethome
    - essentials.spawn
    - essentials.msg
    - essentials.afk
    - essentials.list
    - iConomy.help
    - iConomy.payment
    - iConomy.holdings
    - mcmmo.ability.*
    - mcmmo.skills.*

    Can you see any problems? Any conflicts?

    I want the players to be able to sell to the chestshop, to be able to buy from it, and nothing else, any suggestions??
  23. Offline


    Restricted shops don't work on my server since I have PermissionsBukkit (Permissions 3 before). All the players can buy/sell to shops with a sign [restricted] above.

    I added the permission ChestShop.group.groupName: true for each group (for example ChestShop.group.carpenter for the carpenter group) and tested ChestShop.group.*: false to deny player to buy/sell.
    It isn't work, why ?

    bukkit: 1317
    PermissionsBukkit: 1.2
    ChestShop: 3.24
    LWC: 3.53
    iConomy: 6.0.7

    Edit : Problem solved !
    I have install SuperpermBridge, and it's work !
  24. Offline


    Damaged items cannot be sold.

    Nope, it's case-insensitive :)

    Hmm, I don't know, I didn't really try it with permissionsBukkit, I'll try it.
    BTW - it is case-sensitive. Are you sure you entered it with the right caps?

    In config, on the top you can find "PREFERRED_ECONOMY_PLUGIN".
    Just type iConomy (exactly like that, case-sensitive) between the quotation marks.

    The selling might be because of your spawn-radius setting. Go to bukkit.yml, change it to 0.
    Your permissions are fine.
  25. Offline


    @Acrobot The spawn radius would most likely explain the situation, but I need to have it set rather large to use for the plugin I have for spawn protection, changing it to zero would mean risking major griefing in my spawn area. Thanks for your help though! I rate this plugin 100/100, just not really able to use it, will definitly come back to it if I get a new plugin for spawn protection.

    P.S. I probably will come back once I install worldguard again, I had an old version of bukkit running so it would not work, now its fine, so when I get the time I will hook back into it, thanks for your help, good work.
  26. Offline


    Hmm - if you use any plugin for spawn protection, you shouldn't use default spawn protection. It is rather unrelated (or is it?)

    And thanks :)
  27. Offline


    I already tried that, but I'll try again.
  28. Offline


    Its still not working. I've done everything you said, and it still wont take gold from the buyers HELP... could it be b/c the store is owned by the admin?
  29. Offline


    Hi i am setting up my new server and have been having problems for day setting up chestshop. I have been doing research after research and cant find anything. This is the probably i was only wanting an admin shop soo in my spawn area i set it up everything is working buy and sell except for only 6 of the sell goods are not working. LIke you can buy it but not sell it it dont make any sense casue all of the other ones are working fine for both buying and selling in the admin shop can you please help Thank you in advance for your time
  30. Offline


    I found a bug, you can open other people chest that protected.

    So, find a protected chest, then make a shop on it, right click the sign, and bam, you can open that chest.
  31. Offline


    i created a shop then i distroyd it because i wanted to move it it say anover player has a shop here when i'm the only persone in the area could you help me

Share This Page