[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

    Lookatmego

    alright ill post my permissions but every other permissions is working and i doubt is corrupted also im using essentials groupmanager
     
  3. Offline

    Mavericko

    HI,i have two groups in my server "Default and Vip's" how can i restrict to buy tnt for default users?
    Thank u.
     
  4. Offline

    Acrobot

    @Mavericko
    If you use a permission system that lets you use *'s, you can do for default users:
    ChestShop.shop.buy.*
    (and negative node here, it's either - before name or :false after it if you use permissionsBukkit)
    -ChestShop.shop.buy.46
     
    Mavericko likes this.
  5. Offline

    imaxorz

    Is this something new that was introduced? That's why I was asking, cause it seems we were able to do this before.

    I see what you mean. Rebuilding our mall will suck, haha, it's massive.
     
  6. Offline

    Mavericko

    Something not right.well im using AdminShops only.
    I did this permision for default users.
    -ChestShop.shop.buy.46
    buy they still can buy tnt.
    Im using permisionsBukkit
     
  7. Offline

    Acrobot

    @Mavericko
    Remember, you need to DISABLE ChestShop.shop.create permission (delete it), instead, give them ChestShop.shop.buy.*

    @imaxorz
    Yeah - it was introduced in the new version, but I'll probably change it for you, so if there is another sign on a block, nobody will be able to destroy it, even if your sign is there.
     
  8. Offline

    jeroen1602

    i get a erorrrrrrrrrrrrrrr
    Code:
    [SEVERE] Error occurred while enabling ChestShop v3.24 (Is it up to date?): com/nijikokun/bukkit/Permissions/Permissions
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugin(pluginEnable.java:48)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:41)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:57)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        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.Permissions
        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.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more
    2011-10-22 19:13:22 [INFO] [ChestShop] iConomy 6 loaded.
    2011-10-22 19:13:22 [INFO] [Jail] Loaded 2 jail zones.
    2011-10-22 19:13:22 [INFO] [Jail] Loaded 3 prisoners.
    2011-10-22 19:13:22 [INFO] [Jail] Loaded 15 cells.
    2011-10-22 19:13:22 [INFO] [Jail] Jail v2.0.3 loaded!
    2011-10-22 19:13:22 [INFO] LWC: Loaded 139 locale strings (0 overrides)
    2011-10-22 19:13:22 [SEVERE] Error occurred while enabling LWC v3.53 (Is it up to date?): com/nijikokun/bukkit/Permissions/Permissions
    java.lang.NoClassDefFoundError: com/nijikokun/bukkit/Permissions/Permissions
        at com.griefcraft.integration.permissions.NijiPermissions.<init>(NijiPermissions.java:47)
        at com.griefcraft.lwc.LWC.load(LWC.java:1077)
        at com.griefcraft.lwc.LWCPlugin.onEnable(LWCPlugin.java:360)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        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)
    what do i need to do?
     
  9. Offline

    Acrobot

    @jeroen1602
    Re-download your permission plugin.
     
  10. Offline

    RaesWolf

    ChestShop is still throwing errors: Could not pass event BLOCK_BREAK to ChestShop

    any reason or idea why this is throwing off this error?? As well at times it will boot ppl from the game when they try to buy something
     
  11. Offline

    Acrobot

    @RaesWolf
    Can you post the whole error?
     
  12. Offline

    imaxorz

    That would be awesome, you would save us a ton of time.
     
  13. Offline

    Acrobot

    @imaxorz
    Just give me ~1 day, please :) It should be up tomorrow, if not official, then I'll link you to it.
     
  14. Offline

    imaxorz

    No hurry at all, you already do a ton.
     
  15. is the config "stack_unstackables" not changing anything?
    Because when I have a shop thats buying 10 diamond helmets for 5 dinar and a user is klicking on the sign, a new stack of 5 helmets appears in the chest!
    Is this a bug or did I do something wrong?

    greetings
    Chriss
     
  16. Offline

    Acrobot

    @christopher_2007
    Hmm, did you set it to true? If so, it should stack the items to 64... Hmm...
    (I g2sleep, cya =)
     
  17. Offline

    RaesWolf


    22.10 20:36:58 [Server] SEVERE Could not pass event BLOCK_BREAK to ChestShop

    thats the whole error...
     
  18. Can you please add the option to remove r clicking the sign to open the chest, this is acting as a bypass for lockette.
     
  19. Offline

    Canadianese

    It says i cannot create this type of shop what am i doing wrong? i have iconomy / chest shop but even tho i gave it permissions on my account it still does not work.
     
  20. Offline

    Acrobot

  21. Offline

    abouyer20

    i leaft the fist line blank and i have no bugged chunk so i do not know what is the problem
     
  22. Offline

    Acrobot

    @abouyer20
    Are you SURE your sign is the only one on that block?
    What does your sign look like?
     
  23. Offline

    awosume-O

    Hey... when i use this plugin i cant sell ''Bone meal'' i tried already to use the ID of that item but there are some small little numbers behind like: ¹² .... how do i need to fill in this? THX:D
     
  24. Offline

    Acrobot

  25. Offline

    _ChaosTiger_

    I love this plugin

    Thank you

    But i have 1 Problem

    How can i see how much money i have?

    i tried with /gold and /bank

    but he says:

    Bukkit sad.Bukkit want you to access command,but Bukkit cannot let you. Bukkit will leak teears :'(

    Help me please
     
  26. Offline

    imaxorz

  27. Offline

    Acrobot

    @imaxorz
    Oh, did you change the value in config?

    @_ChaosTiger_
    Well, this isn't an economy plugin, but I guess you use iConomy.
    You should use /money then.
     
  28. Offline

    imaxorz

    Fail.

    I didn't realize you added it to the config, works perfectly now :)


    Thank you very much.
     
  29. Offline

    Acrobot

    @imaxorz
    No problem :)
    Just thought I'd add it to config instead, so people can choose :p
     
  30. Offline

    Milburn95

    Try wool:red or whatever colour you would like
     
  31. Offline

    Milburn95

    Non ops cannot buy or sell, Help ?
     

Share This Page