[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

    killerbeez

    Trying to understand your question.

    Yes you can set which groups can sell/buy/create to and from shops.
     
  3. Offline

    Kainzo

    Thanks Acrobat - as a temp fix - I removed the ability to sell - I'm unsure why but this danda fellow can still create shops to steal coin (though he isnt) I find it very bizarre that it is happening - Danda is offering to help test/resolve this issue if you want.
     
  4. Offline

    Incendia

    What do you mean? I was under the impression that enabling selling enabled it for everyone on the server with that permission node (and if they don't have it then they can't even sell to admin shops), and what does setting a buy price of 0 have to do with selling?
     
  5. Offline

    mudzereli

    Sorry, I had the buy and sell parts backwards. *shame*
     
  6. Offline

    Boon Pek

    same issue here, hope you'll look into it ;D
     
  7. Offline

    Acrobot

  8. Offline

    PandaVidya

    hey can someone help me out? i want people to be able to sell to my admin shop, but I don't want them to be able to buy from it. how would I configure the sign to do that?

    I tried:

    server admin
    1
    10:0
    dirt


    and it says the shop is out of stock. If i try:

    server admin
    1
    0:10
    dirt

    it says they cannot buy from the shop.

    nvm. just didn't know about the /sell thing

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  9. Offline

    Kainzo

    I'll give it a go now - what DL link should I use?
     
  10. Offline

    Karinth

    So I installed our plugin, along with Iconomy, set up permissions and created an "admin shop" It always says out of stock. Why?
     
  11. Offline

    Acrobot

    @Kainzo
    The newest one, Alpha 5

    @Karinth
    Because you need to stock it with at least as much items as you sell to people.
    Like - you sell 5 wood - you stock it with at least 5 wood.
    It will be changed in 2.0
     
  12. Offline

    Karinth

    Oh ok thank you
     
  13. Offline

    Kainzo

    Just tested with danda - this seemingly resolved it - very bizarre occurrences.
     
  14. Offline

    LordCrazyKing

    I have a suggestion, could you please make it so that you can use decimal values for buy/sell costs, this would make it perfect :)
    Currently the min you can sell/buy for is 1(.00) and i don't think that cobble is worth that much :p
     
  15. Offline

    timboland

    but you can sell a stack of (for example 64) cobblestone for 1
     
  16. Offline

    Chris Lewis

    I am trying to get the store to auto fill in the last line using CB 556 and the latest version of this plugin. I have a single 64 stack of diamond in the chest and fill in the sign using:
    blank
    32
    120:0
    blank

    It says shop created succesfully but the bottom line is blank and you cannot buy from it. However if i input diamond on the last line it works correctly....

    useID: false
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true

    Also i tried adding noID: true to the config.yml but it didn't make any difference....
     
  17. Offline

    Acrobot

    It doesn't auto-fill anymore, because it was complicating the code, it may be implemented in the future.
     
  18. Offline

    ballacraft

    whats the deal with coloured wool on this plugin. i cant seem to make a shop sell anything other than normal white. does your plugin take those types of item values? thankyou.
     
  19. Offline

    Acrobot

    Hmmm, it does...
    Just tell me, what's inside the chest and what's on the sign :)
     
  20. Offline

    ballacraft

    sign above chest with 5 stacks of orange wool inside. on the sign im using...

    admin shop
    16
    10:5
    35.1

    i have also tryed replacing the bottom line with 35:1, orangewool, orange wool, orange_wool..... etc.

    what could i be doing wrong here :confused:

    ive also noticed if i use a shop for white wool, having 'wool' on the bottom line works, but having '35' does not.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  21. Offline

    Kevin Forte

    I know you can limit the amount of items someone can protect with LWC, but if you could limit the amount of shops someone can make from within this app, it'd be perfect.
     
  22. Offline

    LordCrazyKing

    But what if even a stack of 64 isn't worth 1? Or you want it to be worth something else like 1.5, decimals would still be useful.
     
  23. Offline

    ballacraft

    i still havent worked this out, its driving me crazy. can anyone help?
     
  24. Offline

    Acrobot

    @Kevin Forte​
    That would be kinda hard, because LWC uses SQL to save protections, but I could try writing to a flatfile.​
    @ballacraft​
    That's my fault, I'm gonna fix it.​
    But I still want to re-write the plugin, and constant fixing this kinda slows this down :/​
    But thanks for bug report!​
     
  25. Offline

    froehlich4

    Bug-report:

    Server Plugins:
    CB build 561
    Group Maneger 1.06


    Our Problem is you can built as normal User a sign above the chest with the Username of grimnod.
    At this shops you can't sell things, but if you Place the sign so:

    grimnod
    1
    B -100:1 S
    dirt

    Now, if you placed in the chest dirt you can buy dirt and get money for this.
    (if you try to build this sign you must write the B and the S)

    2011-03-25_16.37.55.png
     
  26. Offline

    Acrobot

    Okay, thanks for report :)
    I am re-writing this plugin at the moment (really, I am trying to write it so it is readable and fast)
     
  27. Offline

    Liger_XT5

    I see you have alpha 6 now, so I assume the following would already be fixed, so I thought I'd still mention it just in case.

    I'm on alpha 5 at this moment and I noticed an issue with the signs.
    One of the players bought a few stacks. 18, of arrows from me, about 578 per stack. My money didn't change, his did.
    If someone sold something to my store, I lost money. Not sure if they gained any though, since I just found out this bug.
    I just got told that his money went from low to what it was before.

    Could this have been with iConomy or the store?
    I'm using CB 556, Chestshop alpha 5, and I just installed iconomy a few days ago (I can't recall it's version off hand).

    The only error I saw was:
    Code:
    2011-03-25 08:33:47 [SEVERE] Could not pass event BLOCK_RIGHTCLICKED to iConomyChestShop
    java.lang.NullPointerException
        at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockRightClick(iConomyChestShopBlockListener.java:743)
        at org.bukkit.plugin.java.JavaPluginLoader$20.execute(JavaPluginLoader.java:259)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:493)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    I will install alpha 6 after posting this and see if that fixed it.
     
  28. Offline

    Acrobot

    Huh, that's strange.
    That line on alpha 5 is
    "if (item2.getAmount() > 0) {"

    Version 2.0 is coming soon :)
     
  29. Offline

    Kevin Forte

    Just out of curiosity, what sort of stuff is coming in 2.0? :p
     
  30. Offline

    Acrobot

    - Fast plugin
    - Readable code
    - Less bugs
    - Working with LWC and Lockette's dev's - chest protection
    - I don't know, maybe something else...
     
  31. Offline

    Kevin Forte

    Sounds good. If you do integrate automatic LWC, can you have it apply to the signs as well?
     

Share This Page