[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

    sharkck

    I am having the same issue... when any of my users create a shop sign, it immediately pops off the wall. ChestShop.shop.create is working 100%.
    The problem is chestshop is refusing to work with LWC (unless you have the node mentioned below) When I remove LWC, they can create a sign again.
    The only fix to this (aside from disabling LWC... yeah right...) is to give all your users access to permission node: ChestShop.admin (ChestShop.mod does not allow them to create shops... only .admin)
    With that permission node, users will be able to create chest shops again as well as dominate everybody else's :( But hey! It'l work!

    Please come up with a bugfix to fix this issue! This is a wonderful addon and I have really enjoyed using it so far!
     
  3. Offline

    olimoli123

    Ok Perms 2.7
    - 'ChestShop.shop.buy'
    - 'ChestShop.shop.sell'
    - 'ChestShop.shop.create'
    - 'ChestShop.shop.sell'
     
  4. Offline

    Acrobot

    @olimoli123
    I mean, paste the permission file on pastebin.com please :)
    The permissions you said are fine o.0
    Be sure, SURE to run the latest version.
    Type /csversion in chat, please :)

    @sharkck
    Sure!

    @monir
    Something is wrong on your 3rd line, it might look like
    B: 5 S:5
    while it's B 5:5 S

    @Kane
    Really?
    https://github.com/Acrobot/ChestShop-3/commit/c64627205e1bf4055ce72f420f5950b9c17b4190

    @prohaxah
    Did you change your permissions to ChestShop instead of iConomyChestShop?

    @Cactus_Master
    Are you sure you are putting "Admin Shop" on the 1st line?

    @Croslicre
    It's already possible.

    @aidzocfc1
    That's right, nothing shows up.
    You're just assigning admin shop's ACCOUNT to your economy account, you are not making PLAYER shops.

    @dbershevits
    Look at sharkck's post, it may be the issue.
    I will try to fix it.

    @monir
    Since the ChestShop-BETA.
     
  5. Offline

    Acrobot

    FIXED THE LWC BUG.
     
  6. Offline

    dbershevits

    Should it still say Version 3.0 when I run it?
     
  7. Offline

    Acrobot

    @dbershevits
    Nope, version 3.01
    EDIT: Wait, what happened to GitHub? It reverted my upload to previous state......
    EDIT2: IT JUST DOESN'T WORK o.0
    EDIT3: GitHub's bugged. Please download from my dropbox, I replaced the original link.
     
  8. Offline

    daleisme

    I tried putting adminshop and my minecraft name on top and it does nothing.
     
  9. Offline

    Acrobot

    @daleisme
    Please try to re-download from a new link, the old one is broken at the moment.
     
  10. Offline

    Partian

    DOes this plugin work for 953?
     
  11. Offline

    Cactus_Master

    I put "AdminShop"
    Should it be Admin Shop? Because I thought in my config it was AdminShop.
     
  12. Offline

    Acrobot

    @Cactus_Master
    No, AdminShop is fine, it was my mistake (btw it would work too)

    Hmm...
    Are you sure it doesn't work?
    Try checking how much money do you have before and after transaction?

    @Partian
    Didn't try it, but it should.
    BTW why are you using old CB?
     
  13. Offline

    Fuzzwolf

    How do I use my old iConomyChestShop database with ChestShop?
     
  14. Offline

    Acrobot

    @Fuzzwolf
    Change the column name from "ics_transactions" to "cs_transactions"
     
  15. Offline

    Fuzzwolf

    Sorry, I didn't specify :( . I changed ics_transaction to cs_transaction within iConomyChestShop.db and I renamed the database ChestShop.db and placed it in the ChestShop folder. Was I not supposed to do this? It doesn't seem to be working just yet.
    (and yes, I have the permissions)
    I'm assuming you meant change this?
    Code:
    ƒS--†Ytablecs_transactionscs_transactionsCREATE TABLE cs_transactions ( id
     
  16. Offline

    Rizal

    @Acrobot My server is running both freebuild and survival can you make so it only works in specific worlds?
     
  17. Offline

    Acrobot

    @Fuzzwolf
    That's everything you needed :)
    Nothing else changed in the database :)

    Also, be sure to turn on database in config file :p

    @Rizal
    You can use MultiWorld permissions? Just deny the ChestShop.shop.* in other world?
     
    Rizal likes this.
  18. Offline

    Fuzzwolf

    Alright, thanks. By the way - are you going to make it so admins can plugin usernames to shops like you could with ics? This was great for making shopkeepers with only so much money to buy your stuff with. (as opposed to infinite admin shops)
     
  19. Offline

    Rizal

    @Acrobot im using essentials.. how can i remove it from worlds :p? i really wanna know cause i can use it to other things too
     
  20. Offline

    Acrobot

    @Rizal
    I believe Essentials (GroupManager) creates a new folder.
    I have found THIS by googling.

    @Fuzzwolf
    It's already there :p
    You can even change admin shop label.

    @Fuzzwolf
    Yeah, this, but did you do that by notepad? :D
    (Should work anyways)
    EDIT: Oh, you edited your post. Well, try, for example, SQLite Browser
     
  21. Offline

    Rizal

    @Acrobot ohh great work ;) thanks you :)
     
  22. Offline

    Acrobot

  23. Offline

    Kane

  24. Offline

    Cactus_Master

    It definitely doesn't work, maybe its not working because Treasury is a bank account and not a player account?
     
  25. Offline

    Acrobot

  26. Offline

    Cactus_Master

    I modified the .dat of one of my permabanned players to be treasury.dat and then linked that fake account with the AdminShops (and all the stuff in BOSEconomy, not that it matters). Now it works. Thanks!
     
  27. Offline

    Acrobot

  28. Offline

    false_chicken

    I just updated from version 2 and it seems like a feature has gone missing. In 2 you could have chests one or more blocks away ( Configurable in the config ). But now I don't see that option and the chests I have in many of my shops ( Directly behind 1 wood block with sign on the opposite side ) do not work any more. It just says "Cannot find chest".
     
  29. Offline

    Kane

  30. Offline

    spunkiie

    Code:
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.*' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.* is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.shop.*' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.shop.* is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.shop.create.(itemID)' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.shop.create.(itemid) is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.shop.create' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.shop.create is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.shop.buy' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.shop.buy is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-16 00:34:57 [WARNING] Plugin ChestShop v3.01 tried to register permission 'ChestShop.shop.sell' but it's already registered
    java.lang.IllegalArgumentException: The permission chestshop.shop.sell is already defined!
    at org.bukkit.plugin.SimplePluginManager.addPermission(SimplePluginManager.java:423)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:184)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
     
  31. Offline

    McSushi

    adminshop out of money?
     

Share This Page