[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

    Could you please paste your config file, Permissions config file and server log?
    That helps me fix the problems :)
     
  3. Offline

    Racha

    @Acrobot They can CREATE shops there?
     
  4. Offline

    trivials

    I have tried it.

    But with some user it have work. I can put other names an create shops. It possible its an litte bit bugy ?
    I use Gorupmanager :)
     
  5. Offline

    Acrobot

    @trivials
    Say, how did you manage to do that? :D
    What was on the sign, when you placed it?
    Also, did anything pop up in the console?

    @Racha
    not really, you need to add someone to worldguard region then.
     
  6. Offline

    Racha

    Well, but is there a way to they can make shops there? Because I Dont want to add people to my WG protected spawn :D
     
  7. Offline

    Acrobot

    you can just remove and add them if you wish, there isn't a way at the moment and I think it's going to be a bit hard.
     
  8. Offline

    Dodecha

    Sorry about the post earlyer, a bit stressed today with alot of new users on our server.

    It worked when i cleared out old iConomy and iConomyChestShop folders, thanks for the help anyways!
     
  9. Offline

    Racha

    Can someone suggest me, how to protect the shop, but not the chest placing and removing?
     
  10. Offline

    Omen

    @Acrobot cool! i hope to see those suggestions implemented.

    i did find a security flaw though. yesterday we made a shop, and i had my friend break the block my shop sign was mounted on. the block broke which broke the sign. he was then able to open my chest and loot it. any way to protect the block the signs are mounted on?
     
  11. Offline

    Acrobot

    @Omen
    Yes, this is being implemented in the next version.
     
  12. Offline

    trivials

    I Have found your bug !!!

    If an user (Permission ist not important!)

    Name(can be other user name)
    1
    B 1:1 S (This is the Problem !!! without B and S, you get 1:1 and it works nornal)
    266

    Please fix this bug :)
     
  13. Offline

    itorrent

  14. Offline

    Alpha

    How do I update the config.? cause my .jar file is not working it says "you need to update your config."
     
  15. Offline

    Acrobot

    @Alpha
    Download the zip from my post?

    @Everyone
    1.0 will be when I fix the @trivials bug
     
  16. Offline

    Alpha

    Ok, i'll see if it works

    It didn't work? Like i am confused[​IMG]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  17. Offline

    UrbanX

    Good evening,

    your plugin works great except the command / sell.

    This shows me ERROR when I want something, and when I do not want it marks the message that I must take an object ...

    Thank you for your help, sorry for my English I'm French.
     
  18. Offline

    Acrobot

    @UrbanX
    could you please post your server log and my plugin's config?

    @Alpha
    What do you mean by "didn't work"?
    Was there any error?
    Did you paste everything to /plugins?
    What was the sign format?
     
  19. Offline

    Alpha

    Does anyone know how to change a Java File to a Win RAR File? Because for some reason my Win RAR files are alllllllllll Java Files!?!?!?! [​IMG][​IMG]
     
  20. Offline

    Acrobot

    @Alpha
    What?
    How?
    Did you download source or the .zip in my main post?
     
  21. Offline

    Alpha

    yes, it don't work

    I think that my comp only runs good with Java. Do you have a Jave file?

    Hey do anyone know what the "No config file!" is? it says that when i put a sign over the door and then it tells me that i got to be sure to paste everything into /plugins? what do i have to copy?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  22. Offline

    scar413

    CB#527
    v1.0 Alpha
    can't create a shop with the alpha version
    Error (open)

    2011-03-16 14:40:55 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NullPointerException
    at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:837)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:849)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

     
  23. Offline

    Acrobot

    @scar413
    What exactly were you doing?
    What is your config?

    EDIT: I see it, let me fix it.

    @scar413
    Fixed now

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  24. Offline

    scar413

    thanks, it works now.
    but, colored text still dont work [​IMG].
     
  25. Offline

    Pe6yc

    We have a strange bug here
    admin set the chest with cobblestone. i tried to buy something, but nothing appeared in chat window and nothing appeared in my inventory. But when i relogined game, i found cobblestone in inventroy. When i put cobblestone in active slot, and pressed shop sign again - and that time i saw how cobblestone added to me, but still no text in chat window :(
     
  26. Offline

    Kainzo

    12:13:24 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:607)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:289)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:851)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    was seeing this on 0.97 (I know im a bit late to the game for this)

    This is having issues with any type of sign plugin.

    JumpBlock / Craftbook (mechanisms with [gate] etc)

    Is there a fix? this is the error report posted above.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  27. Offline

    Alpha

    Hey do anyone know what the "No config file!" is? it says that when i put a sign over the door and then it tells me that i got to be sure to paste everything into /plugins? what do i have to copy?
     
  28. Offline

    Acrobot

    @Kainzo
    Works fine for me with 1.0 2nd Alpha

    @Alpha
    Download the .zip file, extract it to /plugins.
    Simple
    @Pe6yc
    Server log, Config file, CB version?
     
  29. Offline

    Pe6yc

    Config - default
    Version - current
    2011-03-16 19:28:45 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3
    at java.lang.String.charAt(Unknown Source)
    at java.util.regex.Matcher.appendReplacement(Unknown Source)
    at java.util.regex.Matcher.replaceAll(Unknown Source)
    at java.lang.String.replaceAll(Unknown Source)
    at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:573)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:222)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:480)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  30. Offline

    Edras

    @vatare put a special character and haven't translate tmpfix, i correct that :
    Code:
    lang:
        prefix: '[Shop] '
        somebodyBoughtFromYou: '<buyer> a achete <amount> <item> pour <cost>!'
        youBought: 'Vous venez d acheter <amount> <item> pour <owner>.'
        yourBalance: 'Apres cet achat , il vous reste <money> .'
        inventoryFull: 'Votre inventaire est plein!'
        noEnoughMoney: 'Vous n avez pas assez pour acheter!'
        outOfStock: 'Ce magasin est en rupture de stock!'
        yourShopIsOutOfStock: 'Votre magasin est en rupture de stock!'
        cantBuyFromYourOwnShop: 'Vous ne pouvez pas acheter dans votre propre magasin!'
        cantSellToYourOwnShop: 'Vous ne pouvez pas vendre dans votre propre magasin!'
        shopCreated: 'Votre magasin a ete correctement cree!'
        chestFull: 'Ce coffre est plein!'
        somebodySoldYou: '<buyer> Vend <amount> <item> pour <cost>!'
        youSold: 'Vous avez vendu <amount> <item> pour <cost>.'
        notEnough: 'Vous n avez pas assez d objets pour vendre!'
        modeSell: 'Mode de vente!'
        modeBuy: 'Mode d achat!'
        stealing: 'Vilain! Tu sais ce qu on leur fait aux voleurs ?!!'
        notEnoughMoneyForShop: 'L acheteur n a pas assez pour la transaction!'
        tmpFix: 'Mise a jour des items de la pancarte!'
     
  31. Offline

    Acrobot

    @Pe6yc
    You're using an old version, update.
     

Share This Page