[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

    Red00

    Hey i like the plugin though it seems I am one of the affected by LWC not working on the chests. Is there a way or a setting you can make to have the sign moved up an additional block?

    (Simple illustration :)
    Block Sign
    Block Block
    Block Chest

    Thanks!
     
  3. Offline

    Acrobot

    LWC seems like it doesn't work. Sorry, I have NO CLUE what did I do wrong, maybe LWC dev will tell me.

    Also, I will try making it so the sign placement is in the cfg.
     
  4. Offline

    GyD

    @Acrobot : the plugin stopped working with 0.5

    bukkit: 328
    Pluggins: Permissions, iConomy, iConomyChestShop

    I did what you show in the picture.
    Message on the sign:
    GyD
    1
    1
    dirt

    I got 'Your shop has been successfully created!'

    Right clic on the sign with a something in hand (dirt, stone, etc…) place the block.
    Right clic with nothing in hand or a pickaxe: no messages on my shop or other users shop.

    Edit: it was working right with 0.4

    Edit 2: ok, now it work. I din't see the useID was back to true. my bad.

    But it still place block if I right clic with something in my hand.
    BTW what do you meen by colored message? Does that mean in can change the color for chat message or sign message? ^^
     
  5. Offline

    Acrobot

    You can change the chat message's colours :3
    Look in the config.

    Also, yes, it is annoying it places the block, I will try fixing it.
     
  6. Offline

    Red00

    @Arcobot

    I love this plugin! I made a small edit to change the location of the chest, down three blocks, until you can make a change to include it in the config.
    Code:
    if (event.getBlock().getFace(BlockFace.DOWN, 03).getType() == Material.CHEST) {
    It works fine, except when I am in the block that contains the sign. It won't do anything... not sure that it matters, i'll just put up another block as a shop counter or something... Thanks for this again!

    Red
     
  7. Offline

    iSushi

    Sorry, i've been gone lately and haven't been able to keep up. After the new updates, do you still have the same problem?
     
  8. Offline

    ydido

    Can it work without the Permissions plugin?
     
  9. Offline

    iSushi

    It doesn't check for the permissions plugin on launch, so I think you need it. If it checked for it, most likely the developer would set the OP's file for use of commands if the permissions plugin wasn't found...
    But since it doesn't check for it. Seems like you need it :p
     
  10. Offline

    DerET

    Is there a documentation? I do not know how to buy anything. Or is it just not working?
    'iConomyChestShop.shop.use' is set for default users; 'iConomyChestShop.shop.create' i set for admins only; plugin said the chest is set up correctly; there are no errors on console
     
  11. Offline

    RenStrike

    i know this is specifically called "iConomyChestShop" but is there any way we could have the choice to, instead, use a different item for currency? Gold is almost completely useless and I'd love to, instead, use it as the currency. I like the idea of having a physical, in game, item as currency instead of random integer.
    --- merged: Feb 19, 2011 3:24 AM ---
    Hmmm...i'm getting the same issue. Says i created the shop, but right clicking the sign, for either owner or not, doesn't give any information at all, in client or server log.

    EDIT: Looks like ID was set to TRUE. Didn't expect that to be the default. Also, it's weird that it places a block when I right-click the sign to buy. Any way of fixing that. Awesome plugin though!
    --- merged: Feb 19, 2011 3:37 AM ---
    Weird, it looks like the numbers are backwards. If I have my sign set up like this:
    Line 1: NAME
    Line 2: 1
    Line 3: 2
    Line 4: Dirt

    It will sell 1 Dirt for 2 iConomy monies. That's backwards right?

    Also, could you allow us to put anything on line 2, or 3, and just check for the number in code? That way we can set up the sign more readable like so:

    Line 1: NAME
    Line 2: 1 Coin
    Line 3: For 2
    Line 4: Dirt

    Does that make sense?
     
  12. Offline

    JuanXo

    Seems that when using Lockette and iConomyShop, messages dont appear when someone uses a shop. The transaction occurs correctly but 0 messages show up, the config is set correctly. (Maybe it has nothing to do with Locketter)

    The following error appears:
    19-feb-2011 10:58:49 org.bukkit.plugin.SimplePluginManager callEvent
    GRAVE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getMaxStackSize(Craft
    ItemStack.java:124)
    at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInv
    entory.java:185)
    at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventor
    y.java:205)
    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:160)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.j
    ava:221)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:214)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:496)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  13. Offline

    Acrobot

    JuanXO:

    Try turning all unneeded plugins off and turn some on partially.

    It is not backwards, it is actually correct for me, usually you say <amount> and then <price>, don't you?

    Also, I talked to LWC's plugin, it is now compatible with the chestshop
    I've tested it with Lockette too, it works nicely!
     
  14. Offline

    RenStrike

    Yes, you would normally say that. But on the sign it fits better the other way around since they are just lone numbers. And i'd assume the number closest to the material type would be the amount, and the number closest to shop owners name would be the price.

    Any chance of making the sign more readable? Like I mentioned at the end of my last post?
     
  15. Offline

    Kr3m1in

    "You do not have permission to make a shop!"

    WTF?
     
  16. Offline

    Arisilde

    Are you still planning on making a version of this that doesn't need the item types on the sign, that will sell anything a player other than the shop creator takes out of the chest?

    Ideally the pluton would create a database file for each player that makes a chest, which will contain the item prices for any chest that player makes. That way each player can set their own prices, and they only ever have to do it once instead of once for every new chest they make.
     
  17. Offline

    Acrobot

    Yes, I am STILL planning, and it should be soon.
     
  18. Offline

    stkeroro

    acrobot, people doesn't have permissions for use shops, they have the node correctly on permissions config....
     
  19. Offline

    boail

    i get this when i start the server (build348):
    Code:
    19.02.2011 17:48:33 org.bukkit.plugin.SimplePluginManager loadPlugins
    SCHWERWIEGEND: Could not load plugins\iConomyChestShop.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:79)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:117)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:82)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:53)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:77)
            ... 8 more
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 1460
            at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.ja
    va:68)
            at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
            at org.yaml.snakeyaml.reader.StreamReader.forward(StreamReader.java:89)
            at org.yaml.snakeyaml.reader.StreamReader.forward(StreamReader.java:79)
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.ja
    va:974)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:237)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:564)
            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.composeMappingNode(Composer.java
    :228)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:46)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShop.<init>(iConomyCh
    estShop.java:34)
            ... 13 more
     
  20. Offline

    Acrobot

    @boail
    Seems like your config has unacceptable characters.

    @stkeroro
    I tested it by myself, you probably have corrupted Permissions config.
     
  21. Offline

    uncovery

    I am getting this here:

    Feb 20, 2011 1:00:25 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getMaxStackSize(CraftItemStack.java:124)
    at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInventory.java:185)
    at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:205)
    at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:160)
    at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:221)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:496)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  22. Offline

    selrahcrenyar

    I download the jar file and the folder and place them both in the plugins folder, but upon launching my server, I get a bizarre java error code. Help?
     
  23. Offline

    boail

    thx [​IMG]

    i used "ü" :S
    maybe you can make it support umlauts (äöü) ? :D
     
  24. Offline

    stkeroro

    fixed, i rebooted the server 2 times after install your plugin, thx for the great job!
     
  25. Offline

    AxelFyren

    Tried to find info about this, but wasn´t able to.

    Is it possible to make a shop that players can sell things to? And if it is, how?
     
  26. Offline

    Acrobot

  27. Offline

    xCode

    I keep getting this too when i try to buy..It doesnt even say shop created when i create shop :(
     
  28. Offline

    Acrobot

    @xCode, uncovery

    Try reinstalling the plugin, if that doesn't work, try the plugin without other plugins than iConomy and Permissions.
     
  29. Offline

    xCode

    Tried both.. not working when i put a sign I get this
    SEVERE: Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NullPointerException at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.has
    Permissions(iConomyChestShopBlockListener.java:53) at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onS
    ignChange(iConomyChestShopBlockListener.java:237)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.j
    ava:251)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:214)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:811)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  30. Offline

    GamezGalaxy

    I seem to be having problems with this plugin :(
    I get this error when ever I place the sign:

    Feb 19, 2011 8:58:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    Code:
    Feb 19, 2011 8:58:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NullPointerException
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
    Permissions(iConomyChestShopBlockListener.java:53)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener
    ignChange(iConomyChestShopBlockListener.java:237)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoad
    ava:251)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManag
    ava:214)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:799
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Any ideas?
     
  31. Offline

    RenStrike

    Any possibility of being able to substitute iConomy money with gold instead?
     

Share This Page