[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

    Acrobot

    In the next update, ALL MAJOR economy plugins will be supported, thanks to @Nijikokun, who created "Register"!
    Really thanks, Niji!

    Also, I will clear the code and try to make it faster.

    @Wizbaggd
    Thanks :)

    @MineralMC
    Hey :)
    If you are admin and you are writing something in the first line, which is not "AdminShop" or any variation of it, it won't work, just leave it blank.

    If it's not the case, and you're sure that your economy has this account (for example, in iConomy it's /money accountName), if there is no account like this and you want to create it, in iConomy do /money create <accountName>.
     
  3. Offline

    MineralMC

    Aha, there we go! Did you ever look into the 'sign on one side of a block, instructions on the other side' idea? I'm going around creating the gold converters for the new map!
     
  4. Offline

    Acrobot

    @MineralMC
    Actually, I will try to do it, but I have more important things to do ATM :p
    During iConomyChestShop's development, I learned some java tricks, which I will do, so it will support VirtualChest from the next release, if everything goes right.
     
  5. Offline

    MineralMC

    Hey, no rush mate! Certainly something I'd like to see at some point! Keep up the good work. :)
     
  6. Offline

    hofec

    I have a little suggestion for next update sir Acrobot. Can you please add a config option to select an iConomy account used for all admin shops? It means that I should have a State account on my server which would be named "StateAcc" instead of "Admin Shop" ;) it will be great !! [diamond]
     
  7. Offline

    William Hall

    Umm... Is it Kenzi? thats the only name i see when i type /money ?
     
  8. Offline

    ray0911

    Ty for the updates! I can now use Iconomy 5
     
  9. Offline

    Acrobot

    @William Hall
    You are using iConomy 4.65, but nevermind it, my new version supports all major economy plugins and both iConomy versions.
     
  10. Offline

    William Hall

    ahh, Thanks. Also does Chestshop work for double chests?
     
  11. Offline

    Acrobot

  12. Offline

    William Hall

    Thanks :D I love the plugin already :)
     
  13. Offline

    Liger_XT5

    I agree, I have some shops that were on their own account instead of using Admin Shop. I'm doing this so no one can get a lot of money just for selling meaningless items like dirt. Once the chest if full, they can't sell to the shop anymore.

    I didn't realize this until recently. I went to update some prices/qty on some stores and kept coming up with my name instead of the account Stores that I would type in.
     
    hofec likes this.
  14. Offline

    flozza83

  15. Offline

    Puremin0rez

    I'm getting this error on shutdown

    Code:
    14:35:40 [SEVERE] java.lang.NullPointerException
    14:35:40 [SEVERE]       at com.Acrobot.iConomyChestShop.DBqueue.saveQueueOnExit(DBqueue.java:22)
    14:35:40 [SEVERE]       at com.Acrobot.iConomyChestShop.iConomyChestShop.onDisable(iConomyChestShop.java:225)
    14:35:40 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:129)
    14:35:40 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:690)
    14:35:40 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:261)
    14:35:40 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:255)
    14:35:40 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:120)
    14:35:40 [SEVERE]       at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:241)
    14:35:40 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:317)
    14:35:40 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    Can you catch the exception? :)
     
  16. Offline

    Acrobot

  17. Offline

    halvors

    iConomyChestShop is not working for me now, do i need to download the Register plugin?
     
  18. Offline

    Acrobot

    @halvors
    Register is not a plugin.
    What do you mean by "not working"?
     
  19. Offline

    halvors

    When place a sign with the format i get no reply, when right click on it nothing happends.
     
  20. Offline

    Acrobot

    @halvors
    What have you got on the sign?
    What is your plugin version? /icsversion
    Bukkit version?

    Plugin conflict?
     
  21. Offline

    Kainzo

  22. Offline

    Acrobot

    @Kainzo
    Oh, thanks :)
    I see it's not only me!

    I will try to fix that.
     
  23. Offline

    Kainzo

    @Acrobat - it was easier to just copy and paste the entire thing - screw pruning :p and yes WorldGuard has to fix that shite too.
     
  24. Offline

    hofec

    Incredible work ! Many thanks man, one [diamond] for you :cool:
     
  25. Offline

    William Hall

    Is there a way to make a shop for planks without using the ID? i tried plank, planks, woodenplank, wooden plank and some others but it kept saying incorrect item ID or something like that...
     
  26. Offline

    Naughtygeko


    Theres never a space when typing item names, For example, iron ingot would be ironingot :)
     
  27. Offline

    Acrobot

    @Naughtygeko
    @Dragonvine
    Actually, it's not true.
    Iron ingot is true, make sure you didn't missspell it.
    It is compatible with item id's too. Just type in item id and it will automatically put its name there.
     
  28. Offline

    karsten1994

  29. Offline

    Naughtygeko

    Sorry if this is a repeated question but is it possible to sell a kit of sorts? For example selling a entire set of iron armor from just one shop.
     
  30. Offline

    esiao

    I have a problem. When i buy or sell it works but there are no alerts or message and in the logs I have
    Code:
    2011-05-13 15:09:32 [INFO] [iConomyChestShop] esiao bought 1 BREAD with durability of 0 from Cradhel for 2 Cube
    2011-05-13 15:09:32 [SEVERE] Could not pass event PLAYER_INTERACT to iConomyChestShop
    java.lang.NullPointerException
        at java.io.FileOutputStream.<init>(FileOutputStream.java:201)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at java.io.FileWriter.<init>(FileWriter.java:78)
        at com.Acrobot.iConomyChestShop.Logging.log(Logging.java:29)
        at com.Acrobot.iConomyChestShop.ShopManager.buy(ShopManager.java:80)
        at com.Acrobot.iConomyChestShop.iConomyChestShopPlayerListener.onPlayerInteract(iConomyChestShopPlayerListener.java:90)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Can you please help me ?
    Thaks a lot for the future help.
     
  31. Offline

    RiHeDiPa

    I permissions look like this but it wont work:

    groups:
    Defaults:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'EcoAPI.getMoney'
    - 'EcoAPI.isNegative'
    - 'EcoAPI.hasEnough'
    - 'EcoAPI.hasMore'
    - 'EcoAPI.hasLess'
    - 'essentials.help'
    - 'essentials.compass'
    - 'essentials.getpos'
    - 'essentials.depth'
    - 'essentials.back'
    - 'essentials.back.ondeath'
    - 'essentials.home'
    - 'essentials.sethome'
    - 'essentials.rules'
    - 'essentials.list'
    - 'essentials.helpop'
    - 'essentials.clearinventory'
    - 'essentials.jails'
    - 'essentials.suicide'
    - 'essentials.spawn'
    - 'iConomy.access'
    - 'iConomy.payment'
    - 'iConomy.list'
    - 'iConomy.rank'
    - 'iConomy.bank.main'
    - 'mobRider.monsters'
    - 'mobRider.command.go'
    - 'mobRider.animals'
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.create.<id>'
    - 'iConomyChestShop.shop.buy'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.command.iteminfo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    users:
    RiHeDiPa:
    group: Admins
    permissions:
    ChYta:
    group: Admins
    permissions:
    PrincessofLight:
    group: Admins
    permissions:
    PrinsOfDarkness:
    group: Admins
    permissions:
    ___________________________________________________________________________

    but when i place a chest, and put a sign above it then it says

    [permissions] You can't make this type of shop!

    I realy don't know what to do can anyone help me?
     

Share This Page