[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

    yeahMan

    So is the exploit fixed on the Selling? I don't want users to reach the negatives again :(
    It takes money away from the shopowner?

    Also, a way to keep old sign format if wanted? Like say old format only reads "buy this item" exclusively if not updated to new format? Not necessary but would be nice

    EDIT: nevernmind, I reverted back to 0.8 as the plugin was reading "Cannot buy from this shop" on all new sign formats after changing them :/. Also wasn't too fond of the new format as well.
     
  3. Offline

    Acrobot

    Yes, it takes money from the shop owner.

    No, there isn't a way to keep the old sign format.
    I will probably do something that converts the shop to new format automatically.
     
  4. Offline

    Kainzo

    Is this updated for 531 and iconomy 4.+?
     
  5. Offline

    Acrobot

    iConomy 4+
    Code:
    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-
    gdf87bb3-b531jnks (MC: 1.3)
    Yes, it works
     
  6. Offline

    itorrent

    Uhmm im having som issues on my server with this:
    when im trying to sell "DIAMOND" it doesn't work at all, it just says out of stock. do i need some item.db file?
     
  7. Offline

    Acrobot

    No, you don't.
    Hmm, it seems like the diamond is the only item that doesn't work...

    If anyone has any clue how to fix this, please, please inform me.
    Use noID at the moment, please :)
     
  8. Offline

    itorrent

    Yeah and theres that thing, im not quite fully understanding the noID part :/ can u explain it to me, somewhat eaasily?
     
  9. Offline

    Acrobot

    okay, so:
    if you have "noID: true" instead of "noID: false" in your iConomyChestSHop/config.yml, you can just place sign like
    Code:
    (blank)
    Quantity
    Price for items you buy/Price for items you say
    (blank)
    
    And it will automatically take items from your chest.

    The only bug(is it?) I found is: if you want to sell to shop, you need at least one item inside the chest.
     
  10. Offline

    itorrent

    ty, and btw awesome plugin :) I have tried others, but this one is defenitly superior to those i've tried :) GJ
     
  11. Offline

    Kainzo

    Getting some weird errors on 531 - Ill post it later.
     
  12. Offline

    Shenlong

    Would it be possible to add the ability for admins to create shops with infinite stock? Just an idea I had thinking that it would be nice to be able to allow my players to buys some of the rarer materials with excess money without having to constantly stock it myself.
     
  13. Offline

    Incendia

    Does this work with dual chests yet? If not, can you look at lwc and see how it does dual chest protection? Maybe it'l give you an idea how to have dual-chest shops
     
  14. Offline

    Kainzo

    I am the creator of the Heroes (RPG) plugin - I am directing a team of 10+ developers, we see that your ChestShop plugin is vital to one of our RPG professions and are officially requesting use of the source (possible modification) and or your assistance on implementing it into the RPG plugin - Feel free to hit me up in anyway you see fit.
     
  15. Offline

    @vatare

    This message appear in the console when i put the sign on the wall and i write in
    (blank)
    1
    20:15
    DIRT
    Code:
    01:16:53 [GRAVE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFa
    ce.down
            at java.lang.Enum.valueOf(Unknown Source)
            at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
            at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChan
    ge(iConomyChestShopBlockListener.java:489)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.j
    ava:289)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava: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)
    >
    What is the problem ? Thanks for your help .

    When i click right on the sign , It say incorrect position in config but , i have
    useID: false
    noID: true
    sell: true
    distance: 1
    position: 'down'
    protection: true

    and the sign is like in the video .
     
  16. Offline

    Hapistorique

    Code:
    Price for items you sell:Price for items you buy
    Doesn't work at all, it doesn't create the shop

    Selling is set to true :/
     
  17. Offline

    Moo Master

    Selling for players and me does not work, sometimes it does, and sometimes it doesn't.

    atm, diamonds don't work but everything else does...

    And i have multiple items per chest, its set up on another account and it still doesn't work sometimes.

    Sorry it was later when i said that and was rushing.

    It just won't work sometimes...
     
  18. Offline

    Emolk

    when i finsih writing sign it does nothing and nothing happens. i dont really get what to do, ive renamed the yml to config, put the .jar file intro plugins but there are no instructions on what to do, help please?
     
  19. Offline

    Acrobot

    @Emolk - why did you rename anything?
    You should just place everything from .zip to /plugins, that's all.

    @moo Master
    Please report what was in chest and what was player having in inventory (Best method - print screen)

    @@vatare
    Not 'down' but 'DOWN'
    Case matters
     
  20. Offline

    @vatare

    Now there is this message :
    what is the config to have the same of the video ?my (blank) never change .
    I am OP on the serveur .

    Code:
    14:12:14 [GRAVE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
            at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.hasPermiss
    ions(iConomyChestShopBlockListener.java:54)
            at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChan
    ge(iConomyChestShopBlockListener.java:497)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.j
    ava:289)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava: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)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHa
    ndler
            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:30)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 13 more
     
  21. Offline

    Moo Master

    Pictures no,

    Video yes!

     
  22. Offline

    Acrobot

    @@avatare - you have no permissions plugin
    @moo Master
    Thanks, I will see what causes the problem
     
  23. Offline

    yottabyte

    Any plans for built-in protection? That is all this is missing. [​IMG]
     
  24. Offline

    Acrobot

    Yeah, will be soon :)
     
  25. Offline

    Moe041991

    so no more need for LWC to protect the chest? awesome!

    E:Well i used to use your chestshop a couble of versions ago. Everything works fine.

    No i just have trouple. My Co-Admin and i cant neither sell nor buy to shops.
    We both have full admin rights.
    The shop is created succesfully. But if we click on the shop, nothin happens.

    If i click on my own shop, it wont even say that i cant buy from my own shop.

    No Errors in console at all.
     
  26. Offline

    Acrobot

    Hmm, can you post me server log and post screens of the chest inventory and sign?
     
  27. Offline

    Rekorderlig

    When i try this it says something about an outdated Sign?
    How do i fix it into a working sign? :)
     
  28. Offline

    Acrobot

    Just remove it and place it with new format:
    Code:
    same as in old sign
    same as in old sign
    Price for items you sell:Price for items you buy
    same as in old sign
    
    for example
    Code:
    AcrobotPL
    1
    15:10
    diamond
    
    BTW, just fixed diamonds, will post soon.
     
  29. Offline

    Moe041991

    No errors in console, so i suppose we doing something wrong!

    [​IMG]
    [​IMG]
    [​IMG]

    Instead of 5 i tried wood.
    No it at leasts say if i try it, i cant buy/sell to my own shop. But if my co-Admin tries, still nothing happens.

    Edit: no i got some errors:

    Code:
    2011-03-12 17:52:07 [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:486)
    	at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:259)
    	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:493)
    	at net.minecraft.server.Packet15Place.a(SourceFile:57)
    	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)
    Build:
    Code:
    This server is running Craftbukkit version git-Bukkit-0.0.0-512-g63bc855-b527jnks (MC: 1.3)
     
  30. Offline

    Rekorderlig

    Could someone show me step for step to fix my problem?
    When i place the sign it says its outdated,
    And also one thing, when i put the sign, there is no message that my shop has been created :/
     
  31. Offline

    itorrent

    Maybe u aren't allowed to use the command. Or are u an admin on the server? And what other plugins are in use!
    (info like this rly matters when trying to fix a problem)
     

Share This Page