[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. @rizemon
    USE /iteminfo I'M SURE you typed wrong item id's.
     
  3. Offline

    BloodShura

    [Sorry for my bad english, I'm brazilian...]

    I don't know if this bug is caused by ChestShop, but... when I buy/sell anything, my money don't change. It means that players can buy, buy, buy, without pay and, they can sell, sell, sell, and don't receive anything.

    This don't happens only with ChestShop, but with MobDrops too.

    I'm using:
    CraftBukkit #1565
    Spout (for #1337)
    ChestShop (actually, for #1337 too)
    MobDrops (for #1337)
    Register
    SimpleRegionMarket
    SpoutTrade
    iConomy 6.0.3b

    What should be the error or inflict?
     
  4. Offline

    Acrobot

  5. Offline

    rizemon

    @VADemon
    I did typed the correct item id , but it still says the same thing ! D:
     
  6. Offline

    mineHAVOC

    is there a way to limit the "click per second" that is registered?

    cuz right now, with a "external mysql" (its local on the same network) with icomony6, if people spam click to buy or sell on a sign, it lags the server out.

    Its like it needs a "only register 1 click per second" type thing.
     
  7. Offline

    ElementzYT

    Is there a way to limit the amount of shops per group and to allow people only being able to make a shop in a certain region, for example with WG?
     
  8. Offline

    Acrobot

    @rizemon
    Try either
    Piston base:6
    or
    Sticky piston b:6

    @mineHAVOC
    Well, not a setting. It's hardcoded to be 150 msec, but you can re-compile it to work with, for example, 1 click per second.

    @ElementzYT
    Not yet, in ChestShop 4.
     
  9. @rizemon
    Hm. Please send us a screenshot of the sign. And say the amount of a block that is in the chest.
     
  10. Offline

    mineHAVOC

    well, i guess ill have to learn how to recompile something then!
     
  11. Offline

    rizemon

  12. Offline

    mmerner

    bukkit 1566
    LWC 3.54 or lastest dev build.
    iConomy 6.0.8b

    with ChestShop 3.29
    when creating a shop sign, it will error say "you don't have permission to access this chest".
    (yes sounds like a LWC error)
    for non lwc.mod. people with lwc.mod can create it just fine.

    works fine under 3,24

    didn't try 3.28

    just a FYI, or inquiry if anyone else has this problem.

    thanks for this awesome plugin.
     
  13. Offline

    rizemon

    @VADemon
    @Acrobot
    Here is the screenshot.
    I already tried piston base:6 but it didnt work
     

    Attached Files:

  14. Offline

    rouge_killer97

    @rouge_killer97
    Why would you like to do that?[/quote]

    i want my lord rank to be able to make Admin shops but not to have as much power as to destroy others only there own
     
  15. @rizemon
    Hah, ok. But piston base:6 is wrong.
    That is what you have to write on the sign:
    For piston: 33:7
    For sticky piston: 29:7

    Use /iteminfo man!
     
  16. Offline

    StackUnderflow

    Hi,

    I have a server running craftbukkit 1517 using chestshop 3.29, running groupmanager that comes with essentials as permissions and iConomy+registers for economy, and lockette for protection.

    When I make a shop, buying and selling works fine, but whenever left clicking the sign, it buys but also breaks the sign (maybe set up some sort of protection in towny)

    Also, putting free on the third line seems to not work, and putting B0:0S triggers "You cannot buy here".
    Note that it seems to capitalize the "free" but it acts as just a sign and not a shop.
     
  17. Offline

    Acrobot

    @rizemon
    Could you do /iteminfo?

    @mmerner
    Yep, seems like /cremove before creating fixes that, but I'll try looking into it.
     
  18. Offline

    1born2kill

    Im using PEX, and I cant seem to make it so that the Default rank will not have permission to Create a Shop, and my Member's rank to be able to.

    For default rank, i did:

    - ChestShop.shop.buy
    - ChestShop.shop.sell

    For Member, I did:

    - ChestShop.shop.create

    Now, the default member can easily create a Shop, and I dont want that to happen.

    EDIT: NeverMind, I think its working now

    EDIT 2: OK... wtf, now I cant make Shop, it restricted Shop making to all users
     
  19. Offline

    1born2kill

    And also, I get this while trying to buy from a chest

    Code:
    20:15:50 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Economy.hasAccount(Economy.java:16)
            at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:116)
            at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:35
    )
            at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:75)
            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:178)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9
    2)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
            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:521)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    20:15:50 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Economy.hasAccount(Economy.java:16)
            at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:116)
            at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:35
    )
            at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:75)
            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:178)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:9
    2)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:497)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
            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:521)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    >
     
  20. Offline

    benyo217

    How do you make a shop you know the thing where you walk in to a shop and it ses [shop] you have entered (name) shop?
     
  21. WorldGuard/Residence region's greeting message.
     
  22. Offline

    jeroen1602

    a error

    Code:
    12:48:21 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to ChestShop
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Listeners.blockBreak.cancellingBlockBreak(block
    Break.java:35)
            at com.Acrobot.ChestShop.Listeners.blockBreak.onBlockPistonExtend(blockB
    reak.java:70)
            at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.j
    ava:582)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:75)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:52)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:498)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:502)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:499)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:499)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:497)
            at net.minecraft.server.BlockDiode.onPlace(SourceFile:214)
            at net.minecraft.server.Chunk.a(Chunk.java:339)
            at net.minecraft.server.World.setRawTypeIdAndData(World.java:349)
            at net.minecraft.server.World.setTypeIdAndData(World.java:446)
            at net.minecraft.server.BlockDiode.a(SourceFile:67)
            at net.minecraft.server.World.a(World.java:2321)
            at net.minecraft.server.World.doTick(World.java:1740)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    12:48:21 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to ChestShop
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Listeners.blockBreak.cancellingBlockBreak(block
    Break.java:35)
            at com.Acrobot.ChestShop.Listeners.blockBreak.onBlockPistonExtend(blockB
    reak.java:70)
            at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.j
    ava:582)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:75)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:52)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:498)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:499)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:53)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:290)
            at net.minecraft.server.World.k(World.java:522)
            at net.minecraft.server.World.applyPhysics(World.java:497)
            at net.minecraft.server.BlockDiode.onPlace(SourceFile:214)
            at net.minecraft.server.Chunk.a(Chunk.java:339)
            at net.minecraft.server.World.setRawTypeIdAndData(World.java:349)
            at net.minecraft.server.World.setTypeIdAndData(World.java:446)
            at net.minecraft.server.BlockDiode.a(SourceFile:67)
            at net.minecraft.server.World.a(World.java:2321)
            at net.minecraft.server.World.doTick(World.java:1740)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  23. Offline

    CosmicVoyager

    Somebody please tell me how to sell items with a second data value such as dyes. I've been struggling trying to do it for so long. Nothing works.
     
  24. Offline

    Chaotchen

    Hello all,

    I've got a big problem, all my users which are no admins can't create a shop. They only get the message: "you don't have permissions to access this chest"
    Only people with the ChestShop.* permissions can create a shop.
    Please help me :)

    Here're some information:

    - CraftBukkit version: git-Bukkit-1.8.1-R4-99-g893d9d9-b1572jnks​
    - ChestShop version: 3.29
    - Your economy plugin: iConomy6
    - Have you got any Permission plugin? Which one? - PermissionsEX v. 1.16, I also tried it with the newest Dev-build, too.
    Greetings,
    Chaotchen
     
  25. Offline

    OZ4RK

    If you sell or buy from an admin shop, where does the money go/come from? Is it given to someone with Chestshop.admin? Or does it just disappear?
     
  26. Offline

    Chaotchen

    It just disappears.
     
  27. Offline

    Zidkon

    Seems that the plugin is getting errors with the latest builds or something like that.

    The first rank I set on bPermissions have only ChestShop.sell and ChestShop.buy permissions, and I can create a shop without ChestShop.create, is like ChestShop is ignoring permissions plugin.
     
  28. Offline

    Kirbyflys

    Seems like I'm having problem using this with the latest DEV Build of Bukkit.

    I gave my users the chestshop.shop.create, chestshop.shop.buy, chestshop.shop.sell, and they still can't make shops. It says "You do not have permissions to access this chest."
     
  29. Offline

    Zidkon

    Try with caps "ChestShop.shop.create" by example.
     
  30. Offline

    Kirbyflys

    Tried that too, didn't work. I'm using PermsEX.
     
  31. Offline

    Zidkon

    Well seems that here is a problem since other people is getting the same error than you and I'm getting error with permission issue too.

    Anyway they are not giving any support here but on BukkitDev, check the first post and go post to make this fix goes faster xD
     

Share This Page