[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

    sole10

    Ok i have no permissions on my server but my player can't buy from my chest :(
    BTW: nice plugin:)
     
  3. Offline

    legendx123

     
  4. Offline

    1born2kill

    Hey idk whats wrong with the plugin, but:

    Code:
    name[iConomyChestShop.34] startTime[1313914881099] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.39] startTime[1313914881229] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.40] startTime[1313914881355] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.41] startTime[1313915458930] stmt[null] createdBy[null]
    name[iConomyChestShop.38] startTime[1313914796491] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.36] startTime[1313914796751] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.23] startTime[1313914765328] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.31] startTime[1313914765602] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.32] startTime[1313914766037] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.28] startTime[1313914768546] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    name[iConomyChestShop.26] startTime[1313914796908] stmt[select t0.id c0, t0.buy c1, t0.shop_owner c2, t0.shop_user c3, t0.item_id c4, t0.item_durability c5, t0.amount c6, t0.price c7, t0.sec c8
    from ics_transactions t0
    where t0.sec < ? ] createdBy[null]
    
    2011-08-21 03:30:58 [INFO] Closing Connection[iConomyChestShop.41] psReuse[0] psCreate[0] psSize[0]
    Running Craftbukkit 1000, and ChestShop 1000 also, Permissions 3.x
     
  5. for some reason the admin shops arent working! I create one but i cant buy or sell to it! i type:
    admin shop
    1
    b 10:5 s
    glass

    It makes it but when i right and left click it just says this sign is protected by you and it wont work
     
  6. Offline

    TakeMeNL

    I have a stange bug. When i try to destroy my sign it opens the chest...
    I dont think that is supose to happend,
    - CraftBukkit git-Bukkit-0.0.0-978-g29df7eb-b1058jnks (MC: 1.7.3)
    - ChestShop 3.01
    - Your economy plugin iConomy
    - Have you got any Permission plugin? Permissions 3.1.6 (Yeti)
     
  7. Offline

    zangetsuslayer

    @TakeMeNL
    Sneak mode and then destroy your sign.

    @sole10
    Did not setup permission :p
    Code:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
    
     
  8. Offline

    sole10

    It works without premissions i realized that i don't get how to make sell and buy shop
     
  9. Bump my post the admin shops set up fine but i cant buy from them! It's the latest plugin version latest permissions latest lwc and bukkit build 1000. Ive set up the config to work with iconomy. And it's the latest iconomy too! Ive set up all the config ive set it to left and right click to buy and sell but it just wont work on the admin shop. Havent tested normal shops but not sure if they work either :S
     
  10. Offline

    TakeMeNL

    Try the new recommend build Bukkit 1060 ;)
     
  11. Offline

    TakeMeNL

    Thanks that helped!!
     
  12. Oh no i got it working. I think its cos it said i had to hav an account the admin shops go to. So i made an account. Only problem is now the admin account when you type /money top it comes top of the list with all the money its been credited just so i can sell to it
     
  13. Offline

    Iceflamei

    Hi, I have a problem with ChestShop. I downloaded it recently and have 1060 but when anyone tries to buy from the shop this pops up:​
    09:06:04 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boole
    an
    at com.Acrobot.ChestShop.Config.Config.getBoolean(Config.java:60)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:72)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:6
    3)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)​
    I have setted it BOSEconomy, although I have disabled other plugins requiring money.​
    Any help? :(
     
  14. Offline

    jkllo

    I have this problem with iconomy too :(
     
  15. Offline

    jkllo

    give a link for older version please
     
  16. Offline

    Temaska

    Hi, guys!

    On my server, players began to use a large bag of money.
    One player creates the a sign

    or


    Balance user1: 0, user2: 0
    user1 is buying from the user2.
    [INFO] [ChestShop] user1 bought a SAND for -1000.0 from user2
    Balance user1: +1000, and user2: -1000 and can continue to buy.

    Some players quickly began to use this bug and had very little to fix the plugin:

    com.Acrobot.ChestShop.Utils -> uSign.java -> 71 line -> return (price != 0 ? price : -1); change in return (price > 0 ? price : -1);

    this plugin with bug-fix: http://dl.dropbox.com/u/29407930/ChestShop.jar
     
  17. ^ Hi!
    | Omg, the bug above really works!

    But I'm here to suggest a one new permission:
    As you know ChestShop.admin gives permission to destroy other player's chests and make AdminShops. It's not good if an administrator (in my case Admins are like Moderators) makes a shop where you can buy 100500 diamonds for 1 dollar and he can destroy other shops.
    What I need is a permission that allow to destroy other shops without to be able make an AdminShop.
    (ChestShop.shop.destroy)
    Thanks!
     
  18. Offline

    exo123456

    Code:
    [SEVERE] Error occurred while enabling ChestShop v3.01 (Is it up to date?): special characters are not allowed
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 506
        at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
        at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at com.Acrobot.ChestShop.Config.Config.reloadLanguage(Config.java:41)
        at com.Acrobot.ChestShop.Config.Config.setUp(Config.java:25)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:43)
        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)
    - CraftBukkit: newest
    - ChestShop: newest
    - Your economy plugin: iConomy
    - Have you got any Permission plugin? newest from TheYeti
     
  19. 1. The plugin wasn't installed properly
    OR
    2. Error with a localization
     
  20. Offline

    exo123456

    what u mean?
    ps:ur question above: there is a permission, only for mods, which say that they can destroy chests, but dont create admin shops! The permission is:
    - 'ChestShop.mod'
     
  21. Uh, really?
    ChestShop.mod allows open chests but you can't destroy them! *Tested on my server*
     
    exo123456 likes this.
  22. @Acrobot
    I have an AdminShop that sells and buys Iron_Ingot in lots of 100 at a time. If you buy 100 iron ingots it will cost you 100 coins as it should, but you only get 64 of those. The rest are somehow lost. It worked fine on the old version.

    CB 1063
    ChestShop v3.01
     
  23. Offline

    exo123456

    VADemon uh sry, i am german, and i read it false :( sry
     
  24. Offline

    Maniak72

    The mod works great, but for some reason normal users can only buy from my shop, but they can't sell items. ME being the admin it allows me to do both, but the normal users can only buy. I'm kind of new to everything and some help would be really nice.
     
  25. Permissions
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops - should help
     
  26. Offline

    maller

    There seems to be a conflict with Stargate 0.6.2.
    If I have stargate enabled, and try to create a shop, i get the message "Another player's shop detected"
     
  27. Offline

    Acrobot

    @Sorken
    Weird, I'll investigate it when I'm back home.

    @Iceflamei
    In your config, somewhere you have something that is supposed to be true/false, but is an other thing.

    @maller
    Are you sure that it's the problem? Did you try creating a shop somewhere else?

    @Temaska
    Thanks, I'll temporarily change the download link.

    @jkllo
    @legendx123
    https://github.com/downloads/Acrobot/iConomyChestShop/iConomyChestShop.zip

    @1born2kill
    Hmm, try deleting plugins/ChestShop/ChestShop.db

    @sim242
    Large B and S please.
     
  28. Offline

    SilverHearts

    I cant seem to place a sign beside the chest it wont detect the chest unless its above the chest.
    I don't know if its a bug or not.
    - CraftBukkit version - This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    - ChestShop version - Chest'sShop version is: 3.01
    - Your economy plugin - iConomy 5.01
    - Have you got any Permission plugin - Permission 3x
     
  29. Offline

    Escimo

    Hey guys, i have a little problem on v. 3.0 (craftbukkit_1000, perm3x)
    I have a message like this one:

    "Ran out of money in this shop"

    BUT, this shop is Admin Shop 0_o
    What did I do wrong?
     
  30. Offline

    maller

    Yeah I am. I tried several things to figure out what was causing the problem. One being creating shops in different places.
    I figured out stargate was the conflicting plugin after disabling it. Stargate 0.55 doesn't cause the problem, so I had to downgrade to that.
     
  31. Offline

    Subfin

    just wondering, do you know what texture packed was used in the pic at the bottom (right above the change log)?
     

Share This Page