[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

    sean_skroht

    Hi Acrobot,

    Unfortunately this is not fixed. We are still getting "You don't have permissions to access this chest"

    Have to go back to v3.24 once again. Also I noticed that we get this message with v3.24 if we don't type our names on the first line of the sign. If we do, then it's ok.
     
  3. Offline

    HzR

    I really need help!

    I can creat Chestshop easy, but when i try 2 buy from my "admin shop" i get this:


    13:16:53 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.getEnchantments()Lja
    va/util/Map;
    at com.Acrobot.ChestShop.Utils.uInventory.addManually(uInventory.java:76
    )
    at com.Acrobot.ChestShop.Utils.uInventory.addAndStackTo64(uInventory.jav
    a:64)
    at com.Acrobot.ChestShop.Utils.uInventory.add(uInventory.java:47)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:88)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)

    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:80)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    13:20:37 [INFO] GroupManager - INFO - Data files refreshed.
     
  4. Offline

    papand13

    I use ChestShop 3.30, i use the recommended bukkit build. I use the latest Towny. Here is my config: http://pastebin.com/NKBVctBJ
     
  5. Offline

    Acrobot

    @HzR
    ChestShop 3.30 is made for Minecraft 1.0.0
    If you want to use ChestShop with Minecraft 1.8 or lower, use ChestShop 3.29

    @SkepticCraft
    Ok, no problem :)

    @Harry_on_P
    I think it does. People sometimes reported that it doesn't, but eventually it was fixed - they were using Permissions 2/3 AND PEX.

    And the 2nd bug is fixed in ChestShop 3.30

    @Hayden06
    I think it's in ChestShop 3.30

    @Eciah
    Hmm...
    Do /iteminfo
    It should tell you exactly what to put on the sign.

    @babybell
    Can you make a screenshot of your plugins folder?

    @sean_skroht
    Hmm...
    Can you make a shop when you type your name in the 1st line of the sign in ChestShop 3.30?

    @Jeroeny
    iConomy doesn't need to be updated to be working.
    I use iConomy 5 on the 1.0.1 server and it works fine.
    @papand13
    I see "TOWNY_INTEGRATION: true" in your config.
     
  6. All who say that PEX doesn't work with ChestShop:
    IT DOES. Check your permission nodes maybe they're wrong!
    @Acrobot
    We really need a F.A.Q
     
  7. Offline

    deathdragonaw

    Okay, so using a random name will allow it to go in negative? I settet it up now, much work looking for many item id's cause name's didn't work always. most complicated were different wood types and dyes. ^^

    I hope you will include the stock signs in the next update, it would make my system a perfect unique one :D

    thanks ^^
     
  8. Offline

    Phantom Index

    Whenever someone left clicks to sell an item nothing happens. Appearently you changed the node for that.
     
  9. Offline

    darkcloud784

    will do - you can either email me the package or post it here. [email protected]
     
  10. Offline

    Harry_on_P

    Thank you its all working, love this plugin.
     
  11. Offline

    Acrobot

    @VADemon
    Yep. I had FAQ in iConomyChestShop 2, it's high time we should make one :p

    @darkcloud784
    Ok, doing that now.

    @Phantom Index
    No, I didn't. You need to change your spawn-radius to 0 (in bukkit.yml), or move the shops out of the spawn :)
     
  12. Offline

    Acrobot

  13. Offline

    Harry_on_P

    Hey im experiencing an error where I cant sell wood because it says my shop is out of stock when actually its not
     
  14. Offline

    Acrobot

    @Harry_on_P
    Oh right. Can you take a screenshot of your chest's inventory? Thanks :)
     
  15. Offline

    AYKBY2TMA

    Acrobot, Please help

    http://pastebin.com/wKsVD0N9

    -Using ChestShop_3
    -Running Craftbukkit version git-Bukkit-1.8.1-R4-2
    9-g83401e6-b1506jnks (MC: 1.0.0) (Implementing API version 1.0.0-R1-SNAPSHOT)
    -Using iConomy 6.0.7
    -Using Essentials Group Manager

    Please help, thx
     
  16. Offline

    monir

    Uppdate to rec build 1597 why are you still on 1506?
    http://ci.bukkit.org/job/dev-CraftBukkit/1597/
     
  17. Offline

    Phantom Index

    You NEED an FAQ or a guide for this. I'd type it up for you.
    *EDIT* disabled spawn protect in essentials and no dice. Does Towny also interfere?
     
  18. Offline

    darkcloud784

    Code:
    8.12 17:10:53 [Server] SEVERE at java.lang.Thread.run(Unknown Source)
    18.12 17:10:53 [Server] SEVERE at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    18.12 17:10:53 [Server] SEVERE at com.Acrobot.ChestShop.DB.Generator.run(Generator.java:27)
    18.12 17:10:53 [Server] SEVERE at com.Acrobot.ChestShop.DB.Generator.generateStats(Generator.java:115)
    18.12 17:10:53 [Server] SEVERE at com.Acrobot.ChestShop.DB.Generator.fileStart(Generator.java:31)
    18.12 17:10:53 [Server] SEVERE at java.io.FileWriter.<init>(Unknown Source)
    18.12 17:10:53 [Server] SEVERE at java.io.FileOutputStream.<init>(Unknown Source)
    18.12 17:10:53 [Server] SEVERE at java.io.FileOutputStream.<init>(Unknown Source)
    18.12 17:10:53 [Server] SEVERE at java.io.FileOutputStream.open(Native Method)
    18.12 17:10:53 [Server] SEVERE java.io.FileNotFoundException: /var/www/shops/website.html (No such file or directory)
    18.12 17:10:53 [Server] INFO [ChestShop] Couldn't generate statistics page!
    That would be the stacktrace it left.
     
  19. Offline

    xxDalekcaanxx

    When ever I try to buy from a chest it says:

    23:28:11 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.getEnchantments()Lja
    va/util/Map;
    at com.Acrobot.ChestShop.Utils.uInventory.equals(uInventory.java:125)
    at com.Acrobot.ChestShop.Utils.uInventory.amount(uInventory.java:97)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.amount(MinecraftChest.jav
    a:82)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.amount(MinecraftChest.jav
    a:61)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.hasEnough(MinecraftChest.
    java:65)
    at com.Acrobot.ChestShop.Shop.Shop.hasEnoughStock(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:65)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)

    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:80)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    >

    PLEASE HELP!!!!!!
     
  20. Offline

    Eciah

    i did /iteminfo with birch in my hand it said "17 : 2 - LOG" when i tried that it didnt let the shop work, when i tried just "17 : 2" it said "you have specified invalid item ID" i dont know what im missing here
     
  21. Offline

    darkcloud784


    I think this is an odditem issue.
     
  22. Offline

    papand13

    Dammit, forgot about changing my live server too. Only changed it to false in my DEV server. :(
    Don't bother with that anymore XD
     
  23. Offline

    AYKBY2TMA

    @monir

    Thank you so much, anyone having the same problem as me
    http://pastebin.com/wKsVD0N9

    [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop

    Please go to this website:
    http://ci.bukkit.org/job/dev-CraftBukkit/promotion/latest/Recommended/artifact/target/
    and download the latest build for CraftBukkit and change the run.bet, if you don't know how please go to this website

    http://wiki.bukkit.org/Setting_up_a_server
    and follow the instructions and link.

    Anyways, thanks to monir I fixed the problem
     
  24. Offline

    deathdragonaw

    i know what problem you mean
    it depends on the type of wood, try 17-0, 17-1 and 17-2 in the forth line as code.
     
  25. Offline

    Harry_on_P

    Thank you so much
     
  26. Offline

    Eciah

    so, do i need to install odditem then in order to sell the subcatagories of stuff?
     
  27. Offline

    sean_skroht

    No. Not at all.
     
  28. Offline

    Leespiker

    - CraftBukkit version - 1.0.1-R1
    - ChestShop version - 3.29
    - Economy plugin - iConomy & essentials economy I believe (comes with Essentials)
    - Have you got any Permission plugin? Which one? - bPermissions
    Okay so the problem is:
    I have given my members
    - lwc.protect
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.shop.create
    and all the essentials permissions:
    - essentials.signs.break.disposal
    - essentials.signs.break.mail
    - essentials.signs.break.protection
    - essentials.signs.break.trade
    - essentials.signs.create.disposal
    - essentials.signs.create.mail
    - essentials.signs.create.protection
    - essentials.signs.create.trade
    - essentials.signs.use.*
    - essentials.signs.use.trade
    - essentials.signs.use.sell
    - essentials.signs.use.protection
    - essentials.signs.use.mail
    - essentials.signs.use.free
    - essentials.signs.use.buy​

    They can buy and sell from signs, and now destroy the signs since I added - essentials.signs.break.disposal, however they are not able to create a shop sign.

    Any help would be much appreciated.
    Thanks in advance!
     
  29. Offline

    Jeroeny

    Thank you :D
     
  30. Offline

    Bigbadbrad78

    Hi There, just wondering if anyone can help me with a problem I am having with permissions. I am using essentials permissions (Group manager) and i am getting errors when trying to use this plugin with permissions. When the server starts up, I get a message as follows:

    http://pastebin.com/rpkMR60r

    Whenever anyone breaks a block i get this error:

    http://pastebin.com/2quWGePQ

    No permissions are working, not sure wether it is my permissions or chestshop.
    My groups yaml for group manager - http://pastebin.com/CXezzc3f
    my global groups yaml - http://pastebin.com/abpZgMs6

    Any help would be much appreciated.
     
  31. Offline

    noxiw

    So, on my server I only want a local admin marketplace, which everything is set up and functional for me. Standard members can't sell to the admin shops though, they can buy, but not sell.

    Any advice?
     

Share This Page