[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

    phondeux

    I'm sorry - I think I misunderstood how protection and your plugin works. I assumed that another plugin was required for protection, not that this plugin would protect shop chests.

    If this plugin protects shops created for it then I'm good!
     
  3. Offline

    Acrobot

    @phondeux
    Nope :p
    If you set (or just left it by default) USE_DEFAULT_PROTECTION in config, it should be fine :)
     
  4. Offline

    ibreaktoucher

    ok try that thanks
     
  5. Offline

    SdtScrips

    Thanks bro! Great Plugin too :)
     
  6. Offline

    juodas

    BUG:
    Hello, in my server is a bug with this plugin, im using PermissionsEX for permissions ant iConomy6 for ecenomy plugins. Bug is that, the player with the names like nick nick or player name (in their names must be space(nick(space)nick)). Players wit names like that can buy without paying. I dont know is that for all shops or just for admin shops, but players sayed that in admin shop other players with those nick were bugging. Im very sory for bad english
     
  7. Offline

    eivind418

    Hello! i have a problem! it wont let builders make the shop! they say they have something with no permission even tho i did what it stood and you said i changed the spawn-radius to 0 and added the permissions to the builder rank but it wont work! help please! that is the only thing the players is complaining about!
     
  8. Offline

    Acrobot

    @juodas
    Well, it's impossible to register names with space in them on Minecraft.net, I think.
    I think that's a problem with iConomy, as I don't really do anything with names.

    @eivind418
    No permission... ?
    Can you post the whole error?
    There are 2 messages like that - it's probably LWC's problem (ChestShop's integration failed) - you can find a fix here:
    http://dl.dropbox.com/u/11388037/Bukkit/ForEuthy/ChestShop.jar
     
  9. Offline

    Kainzo

    @Acrobot - is there anyway to group item permission nodes together?

    For Heroes we want to give the Merchant Profession groups of items per level, I'm doing it per item at the moment but there has to be a faster way :(

    http://www.mediafire.com/?xsa7w6wsn2zman9


    I was hoping to have something like... chestshop.sell.diamondtools / chestshop.sell.diamondarmor - it would contain all the tools/armor instead of having 10+ different nodes.
     
  10. Offline

    Acrobot

    Well, at the moment there isn't :/
    Can't you make that in Heroes?
    Like that:

    Code:
    for (Material m : Material.values()){
         addItem(m.getName(), "ChestShop.shop.create." + m.getTypeId());
    }
    
    Also, it's ChestShop.shop.create, not ChestShop.shop.sell
     
  11. Offline

    Kainzo

    We don't hook Chestshop in Heroes... We have an external permission-skill system that allows us the ability to grant nodes from ANY plugin to any class we choose at any level we choose.

    The issue is since there are 300+ items one could sell a merchant profession is a terrible thing to create if you want level / node increases.

    I do know that you are able to set up different permission nodes in the plugin.yml but past that, I'm not sure how ChestShop handles it ;)
     
  12. Offline

    Acrobot

    @Kainzo
    Yep. Thank you for reminding me of plugin.yml! :D
    I can do that :)
    (I thought I had to code everything by hand)
     
  13. Offline

    Kainzo

    @Danda - has been working on the Merchant Profession and may have already written out a TON of the nodes heh. Feel free to join our #DH irc and speak with him -

    thanks!
     
  14. Offline

    fenukottero

    Hello Guys I have a problem! If I edit the sign like that:

    Username
    4
    B 1
    Apple

    Players will buy 4 stacks of Apples for 1 coin but if i edit the sign like that:

    Username
    4
    S 1
    Apple

    Players can't sell 4 stacks of Apples for 1 coin, why?!
     
  15. Offline

    fenukottero

    Oh, im just stupid :) Right click to buy and Left click to sell :)
     
  16. Offline

    Dandacion

    Smashes head on desk after writing 1000 lines of yml permissions creating unique permissions for each shop type

    @Kainzo
    Unfortunatly Danda on here isn't me =[
    He jacked my name!
     
  17. Offline

    Kainzo

    bastards... all we may need to mass edit the permission node (thread hijack!)
    I'll do it, its easy with notepad++
     
  18. Offline

    imjoe

    What does this error mean
    Code:
    Could not pass event ENTITY_EXPLODE to ChestShop
    java.lang.NullPointerException
        at com.Acrobot.ChestShop.Listeners.blockBreak.cancellingBlockBreak(blockBreak.java:35)
        at com.Acrobot.ChestShop.Listeners.entityExplode.onEntityExplode(entityExplode.java:14)
        at org.bukkit.plugin.java.JavaPluginLoader$67.execute(JavaPluginLoader.java:732)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.Explosion.a(Explosion.java:189)
        at net.minecraft.server.World.createExplosion(World.java:1524)
        at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:226)
        at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:122)
        at net.minecraft.server.EntityCreature.m_(EntityCreature.java:70)
        at net.minecraft.server.EntityLiving.d(EntityLiving.java:887)
        at net.minecraft.server.EntityMonster.d(EntityMonster.java:27)
        at net.minecraft.server.EntityLiving.w_(EntityLiving.java:297)
        at net.minecraft.server.EntityMonster.w_(EntityMonster.java:31)
        at net.minecraft.server.EntityCreeper.w_(EntityCreeper.java:72)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1253)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:107)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1235)
        at net.minecraft.server.World.tickEntities(World.java:1142)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:518)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    It is spamming my server a ton.
     
  19. Offline

    Acrobot

    @imjoe
    Which ChestShop version?
     
  20. Offline

    Tomskied

    Sales! Could there perhaps be an option for sales? Or Can I do this manually? I would like to change a large batch of shops like this.

    Where is the data stored for things like Admin Shops and player shops?
     
  21. Offline

    Timberman

    Hi There!

    My Server uses you Chestshop! Some Players selling single items. if players keep klicking the sings rapidly, the entire server freezes for about 1 up to 5 secs!!!

    How can that be?

    Using Chestshop with iconomy (mysql)

    Regards, Timber
     
  22. Offline

    JoneKone

    This is from v. 3.31

    19:15:00 [SEVERE] Could not pass event SIGN_CHANGE to ChestShop
    java.lang.ArrayIndexOutOfBoundsException: 0
    at com.Acrobot.ChestShop.Items.Items.getItemStack(Items.java:51)
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:34)
    at org.bukkit.plugin.java.JavaPluginLoader$36.execute(JavaPluginLoader.java:511)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1068)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  23. Offline

    Acrobot

    @Tomskied
    There is no database at all - that's why any map is compatible with ChestShop.

    @JoneKone
    No clue why it happens, but I changed the code in a new version.
    It should be out soon, just need some testing.
     
  24. Offline

    2Bucks

    I've tried just about everything in an attempt to sell Lapis Lazuli Dye. The plugin won't accept 254-4 or 254:4. What is the correct code to put in?
     
  25. Offline

    Acrobot

    2Bucks likes this.
  26. Offline

    2Bucks

    I'll be darned, you're right. Thanks for the quick response
     
  27. Offline

    MrMonkee

    hi, just installed ChestShop for my server but when i make the Admin sign it says notice:that sign is already locked by you, the shop comes up as if people could buy / sell from it but then they get that notice and they cant use the sign to buy or sell.

    ive tried editing the configs ive taken all of the locks off including LWC and the one that comes with the plugin!

    please help me?! maybe we can talk on skype?

    our server ip is
    173.9.74.234:8061

    please get back to me ASAP
    thanks
     
  28. Offline

    JoneKone

    In the new version, can you make so log shows as log "Birch Log,RedWoodLog,log/Normal Log etc.?"

    Or do all names come from odd items? <- Can't be! Right!?

    Anyways, the webpage statistics gives me only "log" not log:1 or log:0 log:2. Just Log.. Witch is fixable? please?
     
  29. Offline

    Acrobot

    @JoneKone
    Yeah, you can already do that on the sign, but I'll add it to webstats too :)

    @MrMonkee
    ChestShop version?
    What do you mean by "can't use the sign to buy or sell"?
     
  30. Offline

    JoneKone

    Ouh and option to disable TAX ses from admin shop
     
  31. Offline

    Ereqqu

    When I buy I dont get anything (I loose money) and I cant sell
     

Share This Page