[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

    xdarkxtriviumx

    Acrobot
    I should probably specify that it's not DIRECTLY bPermissions that has this error, but its counterpart plugin, bChatManager. lol. At least I believe it's that anyway
     
  3. Offline

    IkinesyKx

    Acrobot moss stone and how delete %amount ?
     
  4. Offline

    Acrobot

    IkinesyKx
    Well, simply delete it from the local.yml file?

    Also, were you using OddItem before?

    xdarkxtriviumx
    I see. Well, good luck with the server, then :)
     
  5. Offline

    xdarkxtriviumx

    Acrobot

    Thanks :) Will do. Your plugin is working flawlessly. ;) Thanks for such a great one!
     
    Acrobot likes this.
  6. Offline

    IkinesyKx

    Acrobot you don't have a version 1.4.7 for chestshop ?
     
  7. Offline

    Acrobot

    IkinesyKx
    I do, the test versions work fine, however the final version (which should be out very soon) will also support selling new items, such as fireworks.
     
  8. Offline

    IkinesyKx

    Acrobot my players are not good and bad uses for the sign shop that generates bugs on the console do you have any idea to prevent this? OddItel isn't up to date.
     
  9. Offline

    Acrobot

    IkinesyKx
    Yup, fixed it in a version which will be out soon. OddItem works fine with 1.4.5.
     
  10. Offline

    IkinesyKx

    odditem works fine with your future version 1.4.7 ?
     
  11. Offline

    Acrobot

  12. Offline

    IkinesyKx

  13. Offline

    Mrchasez

    Everyone is able to create Chestshops when only one single person (not even a group) has the permission node "ChestShop.shop.create"
    Members have the permisison to buy and sell, but not create yet every single one can. I can't figure out the reasoning for this so i am posting here.

    We are using bukkit 1.4.7R0.2
    Chestshop 0041

    Permissions: GroupManager
     
  14. Offline

    IkinesyKx

    Acrobot can't wait for an update :p *_* <3
     
  15. Offline

    IkinesyKx

    when to version 1.4.7?
     
  16. Offline

    Acrobot

  17. Offline

    IkinesyKx

    Acrobot if you want i can report you some bugs here. thx for the dl
     
  18. Offline

    LiLChris

  19. Offline

    Acrobot

    LiLChris
    Uh. That would be a lot code-wise, but from user point of view, here is a list of changes since v3.46:
    - you're able to sell new items (like fireworks)
    (that's the end of changes since the last test version)
    - modding ChestShop is easier
    - you can stick signs to chests
    - fixed a bug where LWC protections were made on existing protections
    - removed Essentials from the list of plugins supported without Vault - as it changed much, just use Vault
    - fixed item stacking bug, which has been neglected by Bukkit team
    - reloading ChestShop's config by doing /chestshop reload should work fine most of the times
    - prevented errors
     
  20. where can i find the spanish translation? the links doesnt work..
     
  21. Offline

    Acrobot

    Cuerdas
    I see, they're broken - unfortunately, I can't do anything with it, because I am not Spanish myself. You'll have to translate the local.yml file for yourself.
     
  22. Offline

    iTepzHD

    If i create a "Adminshop" it says : 'you cant buy here!'

    need help o:
     
  23. Offline

    Acrobot

    iTepzHD
    Something is wrong with your sign's 3rd line. Are you sure you are creating it correctly?
     
  24. Offline

    iTepzHD

    yea its :

    Adminshop (changed in config.yml)
    64
    B 0:0 S
    151:15

    Thanks for help =)
     
  25. Offline

    Acrobot

    iTepzHD
    Oh!
    This is a wrong sign, however I can understand the confusion.

    When ChestShop 2 came out (then named iConomyChestShop) - there was no way to have only buy or only sell price. In order to disallow selling or buying, you had to put "0" as the price. And since ChestShop needs to be backwards-compatible, it still retains that functionality.

    In order to sell for free, put "free" instead of "0". So, your sign would look like:

    Adminshop
    64
    B free:free S
    151:15

    Sorry for the confusion! :)
     
  26. Offline

    IkinesyKx

    there is a bug when i buy id like 35:17 (a fail shop) an unknown id with the last build test https://dl.dropbox.com/u/11388037/Bukkit/ChestShop147.jar

    Code:
    [ChestShop] Enabling ChestShop v3.50 t0044
    >15:08:18 [SEVERE] java.sql.SQLException: path to '/data/server6988/home/games/minecraft/craftbukkit/plugins/ChestShop/items.db': '/data/server6988/home/games/minecraft/craftbukkit/plugins/ChestShop' does not exist
    >15:08:18 [SEVERE]    at org.sqlite.Conn.open(Conn.java:103)
    >15:08:18 [SEVERE]    at org.sqlite.Conn.<init>(Conn.java:57)
    >15:08:18 [SEVERE]    at org.sqlite.JDBC.createConnection(JDBC.java:77)
    >15:08:18 [SEVERE]    at org.sqlite.JDBC.connect(JDBC.java:64)
    >15:08:18 [SEVERE]    at java.sql.DriverManager.getConnection(DriverManager.java:579)
    >15:08:18 [SEVERE]    at java.sql.DriverManager.getConnection(DriverManager.java:221)
    >15:08:18 [SEVERE]    at com.Acrobot.Breeze.Database.Database.getConnection(Database.java:74)
    >15:08:18 [SEVERE]    at com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:40)
    >15:08:18 [SEVERE]    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:76)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    >15:08:18 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
    >15:08:18 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    >15:08:18 [SEVERE] java.sql.SQLException: path to '/data/server6988/home/games/minecraft/craftbukkit/plugins/ChestShop/items.db': '/data/server6988/home/games/minecraft/craftbukkit/plugins/ChestShop' does not exist
    >15:08:18 [SEVERE]    at org.sqlite.Conn.open(Conn.java:103)
    >15:08:18 [SEVERE]    at org.sqlite.Conn.<init>(Conn.java:57)
    >15:08:18 [SEVERE]    at org.sqlite.JDBC.createConnection(JDBC.java:77)
    >15:08:18 [SEVERE]    at org.sqlite.JDBC.connect(JDBC.java:64)
    >15:08:18 [SEVERE]    at java.sql.DriverManager.getConnection(DriverManager.java:579)
    >15:08:18 [SEVERE]    at java.sql.DriverManager.getConnection(DriverManager.java:221)
    >15:08:18 [SEVERE]    at com.Acrobot.Breeze.Database.Database.getConnection(Database.java:74)
    >15:08:18 [SEVERE]    at com.Acrobot.Breeze.Database.Table.create(Table.java:181)
    >15:08:18 [SEVERE]    at com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:48)
    >15:08:18 [SEVERE]    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:76)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    >15:08:18 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    >15:08:18 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
    >15:08:18 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
    >15:08:18 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
     
  27. Offline

    Acrobot

    IkinesyKx
    I see. It's more of a problem with SQLite database we're having, though.
    Can you make sure that the "/data/server6988/home/games/minecraft/craftbukkit/plugins/ChestShop" folder exists?
     
  28. Code:
    2013-02-09 23:16:29 [INFO] [ChestShop] Enabling ChestShop v3.50 t0045
    2013-02-09 23:16:29 [SEVERE] java.sql.SQLException: path to 'D:\Server\1.4.7bukkit\plugins\ChestShop\items.db': 'D:\Server\1.4.7bukkit\plugins\ChestShop' does not exist
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.Conn.open(Conn.java:103)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.Conn.<init>(Conn.java:57)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.JDBC.createConnection(JDBC.java:77)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.JDBC.connect(JDBC.java:64)
    2013-02-09 23:16:29 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2013-02-09 23:16:29 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.Breeze.Database.Database.getConnection(Database.java:74)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:40)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:77)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    2013-02-09 23:16:29 [SEVERE] java.sql.SQLException: path to 'D:\Server\1.4.7bukkit\plugins\ChestShop\items.db': 'D:\Server\1.4.7bukkit\plugins\ChestShop' does not exist
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.Conn.open(Conn.java:103)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.Conn.<init>(Conn.java:57)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.JDBC.createConnection(JDBC.java:77)
    2013-02-09 23:16:29 [SEVERE]    at org.sqlite.JDBC.connect(JDBC.java:64)
    2013-02-09 23:16:29 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2013-02-09 23:16:29 [SEVERE]    at java.sql.DriverManager.getConnection(Unknown Source)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.Breeze.Database.Database.getConnection(Database.java:74)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.Breeze.Database.Table.create(Table.java:189)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.ChestShop.Metadata.ItemDatabase.<init>(ItemDatabase.java:49)
    2013-02-09 23:16:29 [SEVERE]    at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:77)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282)
    2013-02-09 23:16:29 [SEVERE]    at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
    2013-02-09 23:16:29 [SEVERE]    at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    On first time running a fresh server. No error on second startup.

    PS: Latest (unstable version from devbukkit)


    UPD: the latest russian translation: http://pastebin.com/kyRU6pyp
     
  29. Offline

    Acrobot

    VADemon
    Oh, hey! Haven't seen your name for a long time :)

    Okay, this probably just means that I'm trying to access the database before the folder is created. Thanks for showing me that!
     
  30. Offline

    IkinesyKx

    yes it is
     

Share This Page