[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

    @LoStIt
    Something's wrong with your 3rd sign line.
    The format is (3 possibilities, spaces are ignored, B and S can be on either side of the price)
    B price
    S price
    B price : price S
     
  3. Offline

    JTanked

    Code:
    21:16:22 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
            at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(ProtectionManager.java:65)
            at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:169)
            at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:462)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:969)
            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:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    

    I don't even know what this means.
     
  4. Offline

    Acrobot

    @JTanked
    Try ChestShop 3. It's in main post, just remember to change permission nodes if you're using Permissions!
     
  5. Offline

    JTanked

    Thank you so much :p It was crashing my server.
     
  6. Offline

    b0rnprox

    is it possible to add two shop owners? if not can you try adding it ??
     
  7. Offline

    Acrobot

    @b0rnprox
    Hmmm... How? This plugin doesn't use any databases/etc, however if you disable Default chest protection, and use LWC/Lockette, many people can access the chest.
     
  8. Offline

    Switch0r

    I am confused :p
    Do i need this in permissions?
    iConomyChestShop.shop.create
    iConomyChestShop.shop.create.<id>
    iConomyChestShop.shop.exclude.<id>
    iConomyChestShop.shop.buy
    iConomyChestShop.shop.sell
    iConomyChestShop.command.iteminfo
    iConomyChestShop.admin
    Or do i need this in permissions?
    ChestShop.shop.create
    ChestShop.shop.create.<id>
    ChestShop.shop.exclude.<id>
    ChestShop.shop.buy
    ChestShop.shop.sell
    ChestShop.command.iteminfo
    ChestShop.admin
    I am using CHESTSHOP 3.0 BETA 11!
     
  9. Offline

    Acrobot

    @Switch0r
    You need the ChestShop... nodes.
    Also, it is easier just to add ChestShop.shop.* for people, and * for admin, right? :)
     
  10. Offline

    Switch0r

    Yes i did that, works nice.
    But where is the changelog from beta or whats the diffrence beteween the 2.78 and beta 3.0?
    Thanks for this plugin :)
     
  11. Offline

    Acrobot

  12. Offline

    Iakovosian

    This plugin is installed (the beta version) on a server I frequent, and I have a pressing question...

    How can one create chest shop signs with a custom item name in place of the one generated from an item ID? This is particularly relevant to items with names having more characters than that allowed on one line of a sign, and also to items with nondescript or slightly misleading names.

    I was told by someone that it is possible, but to come to you for help on the matter. Could you help me out please?

    - James

    P.S. If you're worried about some people possibly abusing an ability to change the item names on chest shop signs, do send your reply as a private message.
     
  13. Offline

    Acrobot

    @Iakovosian
    Long item names - no problem, it matches them.
    To use other item names, use "OddItem" - just configure the names in config, and if one is found, it will be used. Remember however, that they are case-and-space-sensitive :/
     
  14. Offline

    hedger

    i started getting a strange console message when i start my server after changing from beta9 to beta11

    Code:
    2011-07-26 18:12:30 [SEVERE] Error occurred while enabling ChestShop v3.00 BETA 11 (Is it up to date?): java.lang.String cannot be cast to java.lang.Boolean
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at com.Acrobot.ChestShop.Config.Config.getBoolean(Config.java:71)
    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:76)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) 
    im using craftbukkit RB1000. The only thing ive changed recently is my permissions mod, i moved from perms 3 to permsbukkit + superpermsbridge. But that was after i started getting this message

    The users on my server are telling me that sometimes the shop signs are appearing blank, which i havent been able to reproduce, but the shops are still working.

    I tested a few signs for my self and saw another warning

    Code:
    2011-07-26 18:28:28 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at com.Acrobot.ChestShop.Config.Config.getBoolean(Config.java:71)
    at com.Acrobot.ChestShop.Logging.Logging.log(Logging.java:31)
    at com.Acrobot.ChestShop.Logging.Logging.logTransaction(Logging.java:35)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:85)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:89)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:458)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422) 
    Love this mod, its perfect for my server, and it appears to be working, its just spaming my console every time someone uses a shop...
     
  15. Offline

    Iakovosian

    Not being a server owner/admin, is there a way to achieve this from my perspective alone?

    A couple of examples to better illustrate my point:
    Instead of 'Ink_Sack:11', you could write 'Yellow_Dye'​
    " " 'Ink_Sack:15', " " " 'Bonemeal' or 'White_Dye'
    " " 'Log:2', " " " 'Log:Birch' or 'Birch_Logs'
    " " 'Step:0', " " " 'Stone_Slab'​

    These are just a few examples, but hopefully it illustrates a point. My refined question, now, is can I do this using just your plugin? Or is it something that you can possibly support in a future version?
     
  16. Offline

    Acrobot

    Ehhh...
    I hate bukkit forums today.
    I've lost my message.

    It was something like this:
    @hedger
    Your LOG_TO_FILE property is wrong.
    Are you sure it's either false or true (case-sensitive)?
    If it is, and it still doesn't work, post here.
    @Iakovosian
    As @Navigateur said, it's OddItem, however in ChestShop 3 BETA you can also use names like:
    BIRCH LOG
    or
    (it's a bit of fail:) CHARCOAL COAL
    (next fail, these are only 2 that do not look nice) RED INK_SACK
    (and now, without fails) RED WOOL
    etc.

    @Navigateur
    Thanks
     
  17. Offline

    Iakovosian

    Thank you both. Lastly, where could I find a list of the additional names included in ChestShop 3 BETA?
     
  18. Offline

    Acrobot

    @Iakovosian
    Oh, it's not there yet :/
    I guess I'll have to add that later, thanks for remanding!
     
  19. Offline

    hedger

    thats what it was, the LOG_TO_FILE property was set to "ture" instead of "true"

    simple case of the stupid fingers... thanks for the help
     
  20. Offline

    Lookatmego

    ok dude i got a problem,..so i gave my players all ChestShop.shop.* and iConomyChestShop.shop.create - creating a shop with any item
    iConomyChestShop.shop.create.<id> - creating a shop with item with <id> iConomyChestShop.shop.exclude.<id> - excludes <id> from the list of allowed items iConomyChestShop.shop.buy - buying from shop iConomyChestShop.shop.sell - selling to shop

    nodes so they all have those and im using latest craftbukkit and ur latest plugin. It works for admins but for players and etc. it says they are not allowed to create that kind of a shop when thry try to create it any ideas?
     
  21. Use only for IconomyChestShop 2.75
    Code:
    iConomyChestShop.shop.create
    iConomyChestShop.shop.create.<id>
    iConomyChestShop.shop.exclude.<id>
    iConomyChestShop.shop.buy
    iConomyChestShop.shop.sell
    iConomyChestShop.command.iteminfo
    iConomyChestShop.admin
    Use only for IconomyChestShop 3 Beta

    Code:
    ChestShop.shop.create
    ChestShop.shop.create.<id>
    ChestShop.shop.exclude.<id>
    ChestShop.shop.buy
    ChestShop.shop.sell
    ChestShop.command.iteminfo
    ChestShop.admin
    And not both of them.
    Cordialy
     
    Acrobot likes this.
  22. Offline

    Acrobot

    @Lookatmego
    Hmm...
    Which version of plugin you are running?
    Type /icsversion in chat - if it works, it means you have got iConomyChestShop 2.x
    If it doesn't work - ChestShop 3.

    And then do like @Navigateur said :)
     
  23. Offline

    Lookatmego

    it doesnt work so chestshop 3:D
     
  24. Plugin version Permissions? (Perm? GM? BPerm? ...)

    Cordialy
     
  25. Offline

    Maxsi77

    every time a create a admin shop this popout in the console
    Code:
    2011-07-27 15:33:07 [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
    	at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(ProtectionManager.java:65)
    	at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:169)
    	at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:462)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:969)
    	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:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    but the shop work...
     
  26. Offline

    Acrobot

    @Navigateur
    Whichever one.
    (It needs to be compatible with Permissions 2/3 - most of them are, if not, they have "bridge")

    @Maxsi77
    Download ChestShop 3, remember to change the permission nodes! :)
     
  27. @Acrobot
    It was a question for Lookatmego
    I'll forgot this x)
    Otherwise ChestShop 3 pass in "official" version soon?
    I love this plugin ^^ i use it since v2.0 without error
     
  28. Offline

    Camibus

    Was having an error with one of my player's name being too long, saw the fix made to beta, installed ChestShop 3.00 BETA 11. Running iConomy 5.01.
    Now the player can successfully create shops, but does not receive any money when items are purchased or sold to them.
    Any Ideas?
     
  29. Offline

    Acrobot

    @Navigateur
    Oh, ok :)

    ChestShop 3 will be "official" soon. It's not BETA anymore, it's just not the main one ATM.

    @Camibus
    Hmm... That's weird.
    Could you please post me the contents of your longName.storage?
     
  30. Offline

    Camibus

    @Camibus
    Hmm... That's weird.
    Could you please post me the contents of your longName.storage?[/quote]

    Sorry, a little confused by that, in my ChestShop folder in plugins, i only have a config.yml and local.yml. Am i missing something?
     

Share This Page