[ECON] ChestShop 3.7.5 (iConomyChestShop) - Chest&sign shop for economy plugins [1.7.2]

Discussion in 'Plugin Releases' started by Acrobot, Feb 12, 2011.

     
  1. Online

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!

    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.

    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
    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 can be found on BukkitDev - http://dev.bukkit.org/server-mods/chestshop/files/

    This post has been edited 223 times. It was last edited by Acrobot Jan 10, 2014.
  2.  
  3. Offline

    Spathizilla

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If the useID is enabled in the config, does that prevent string names being used?

    Also, would it be possible to have some way to either configure or have it autodetect extra information on the sign which makes more sense. For example:

    Wont make much sense to new players who don't know how the sign system works.

    That would make it better and easier to understand what will happen.

    As a feature suggestion, a way to auto update a (different) sign text with the stock quantity left might be useful. Like have another sign next to the chest with "Stock remaining: 20"
  4. Offline

    MinehubGaming

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Can't get this to work for the life of me. I'm using craftbukkit 326, and chestshop v2 with iconomy, and it gives me no message after I layout the sign to buy stuff from. Am I doin something wrong?
  5. Offline

    Spathizilla

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You cannot buy from yourself of course but I found if I dont use the item ID when it is turned on in the config, it wont do anything. Try using the item id in the chest. Also make sure the name is case sensitive (unsure if this actually matters tbh)
  6. Offline

    MinehubGaming

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Okay after a while I realized I was using the alias for the Id instead of the actual Id. Made the simple switch. I assume that if you turn off the "use-id: true' option off in the config you can use aliases like "glass" instead of "20"?

    Thanks for the help!
  7. Offline

    acegiak

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    does it REQUIRE LWC? cause at the moment I'm seeing players able to just take stuff from the chests?
  8. Offline

    skadabedop

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So I tried to get ChestShop running, no dice. I tried changing the config from
    Code:
    useid:<boolean>
    Where <boolean> is true or false to
    Code:
    use-id:<boolean>
    Sign format for selling dirt:
    Code:
    skadabedop
    5
    1
    Dirt
    and
    Code:
    skadabedop
    5
    1
    3
    and
    [skadabedop]
    5
    1
    dirt[/code]
    All of which failed to work. Not throwing any errors in the console, nothing popping up on the screen when the sign is placed, it just isn't seeming to work at all.

    I tried every permutation of placing the sign, placing the chest, and stocking the chest I could think of, all of which failed. Is there something I'm missing here? CB323
  9. Online

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @skadabedop - you need a space between "useID:" and the boolean value
    Also be sure to install Permissions and iConomy plugins :)

    Name is case INsensitive :)

    @acegiak - it doesn't require LWC, but if you want to lock your chests, you need it.

    Also, UPDATED!
  10. Offline

    Dodecha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Seems to work but for some reason a player using this:
    nick
    1
    20
    Diamond

    get the message "out of stock" even though he has 10 separate diamonds in the chest, any ideas?
  11. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have the error too, think this is a bug...
    --- merged: Feb 15, 2011 5:53 PM ---
    Whould it be possible to have option for sell and buy?

    Like this:
    Nick
    Buy/Sell
    Item: stone 64 (Item and amout)
  12. Offline

    Arisilde

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any idea when you might implement this? With this feature and the ability to restrict cheat creation to my trader class it'll be perfect for my server :D
  13. Offline

    Dodecha

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I also seem to get "out of stock" on certain items.. i tried making a shop that sells glowstone.
    Its got 4 stacks of glowstone and keeps giving me out of stock message, the sign is:
    Dodecha
    5
    100
    Glowstone
  14. Offline

    skadabedop

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would it be possible to get an update that included confirmation that the chest was successfully created or some sort of chat message to let you know that you're opening up an item store chest?
  15. Offline

    Retricide

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  16. Offline

    Codisimus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    how are you suppose to know if this is working or not. i dont see anything when i create the sign and i cant buy items from myself... on the server i notice "SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
  17. Offline

    pagangeek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Using ID,s how do you specify damage values?
    Typing 351:15 (Bone Meal) doesn't seem to work.
  18. Offline

    stargateanubis14

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    right now, slight bug/exploit... Users can chose to sell a tool/weapon, and set it to really cheap, have a friend buy it, and it will be fully repaired... a cheating repair shop XD So sadly, i had to disable the plugin and go with somethin else that isn't going to result in abuse :(
  19. Offline

    Daveyo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    cant get any signs to work. v.3 cb 323. v.2 seems to work however
  20. Offline

    Nate204

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Diamond is the same way
  21. Offline

    Meteo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So... i installed, and got the newest craftbukket as well.
    Code:
    Feb 15, 2011 10:25:08 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.has
    Permissions(iConomyChestShopBlockListener.java:51)
            at com.bukkit.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onB
    lockRightClick(iConomyChestShopBlockListener.java:94)
            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)
    
    And BOOM. Errors apear the moment i right click the chest. Can anyone help me? >.<
  22. Offline

    PandaVidya

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    is a buy/sell feature planned for the future? this is great for users to sell stuff.... too bad none of my users have any money to buy...
  23. Offline

    McSpuds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @ Acrobot

    I too would like to see a "Buy" added as well. That would round this out very well.

    It is working great for my server

    @ all

    I do something on NationCraft that helps out a lot! We created a market area, and used WorldEdit/Guard to protect the market. Then used the child/parent option in WorldGuard to set up different areas inside the market for players to set up shop. I restrict shops to this area only that way is created a server market. Kinda like a flea market!

    Works great.

    We even took this farther by actually building all the shop buildings and are leasing the buildings to players for shops. Economy is great if you use SimpleShop to buy things like gold or diamonds to put money back into the server players
  24. Offline

    Pixonyx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nice plugin! However i can't seem to sell anything in chests that have an ID number. The ID option in the config is "true" but still no-one can buy anything. It works if I write ex "iron_sword" but the reason why I want the ID option to work is that when I write "diamond_leggings" it won't fit into the sign. Any help would be appreciated!
  25. Offline

    Phanku

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I don't seem to have a config file. Could you please direct me to where that config file would be located and or provide me a copy of the config file and tell me where it should be located.

    Also, with the known bug (used tools coming back as new), could you add a banned items list? The items in the banned list would not be allowed to be sold.

    Thanks for all your work!
  26. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Would it be possible to get update soon, and source code release, so we can help you, and try hack on it ourself?
  27. Online

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @everyone

    You probably downloaded bad version, I changed it so only the newest stays.
    You can write shortened item names, for "diamond_leggins" - "diamond_leg" etc.
    ID Works, if you have lastest version.
    IDK why if doesn't cause damage to tools, I'll test it and see if it's Bukkit's bug.

    If you have
    Code:
    org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    bug, be sure to use the lastest version and set up config file with a space between "useId:" and "true"/"false" and be sure you are using all the important plugins and newest craftbukkit.

    Glowstone, diamond etc. don't work, because item names are similar. I can't really fix it, sorry :(

    @pangageek
    You don't, you just stock it with the right type :)

    Also, I think I'll relase the code, but don't say anything, it is ugly at the moment, I think it won't be any better :D
  28. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Cool, when will you release code? I can help you with coding, i was thining to develop a simular plugin, but when i saw this :D I don't think so :)

    So maybe have Gitbub or SVN repository? See you're signed up at Github.
  29. Offline

    Retricide

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  30. Offline

    bdot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I second this motion. I've been merging ideas and methods from a few of the new chest/sign trading plugins and this one is by far the best as far as simplicity and functionality for player shops. Would love to be able to enhance this with some of my player's wishes, and to help you implement the features you have already planned or squash the bugs we currently have. If you release source on github I will gladly help with the project.
  31. Online

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    OK, source is out there.

    Sadly, github doesn't work for me, source files are in .zip at the moment, if someone helps me with my problem (Doesn't accept my public key, I have it all configured) I may set it up there.

    Also, feel free to update it :)
  32. Offline

    skadabedop

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Acrobot

    Would it be possible to get an update that included confirmation that the chest was successfully created or some sort of chat message to let you know that you're opening up an item store chest?

Share This Page