[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

    Cordicuss

    Cordicuss
    Hmm... If you do /iteminfo on a stone shovel, you get a "Stone Spade", which works just fine to me :p[/quote]

    Ugh, I'm a derp. Thanks so much for being a developer that actually ansers its community.
     
  3. Offline

    Acrobot

    Cordicuss
    Haha, no problem - I always try to help :)
     
  4. Offline

    GreenBeing

    Hi. I noticed that items with four enchantment on them seem to have incorrect item codes. I was looking through the encodeEnchantment routine, and you have the decimal encoding being stored in an Integer, which should not be able to hold many of the encodings for a four-enchant item. The base 32 result code is therefore truncated... Not sure if this is a real problem, but couldn't this cause some differently enchanted items to use the same item code?

    An example:
    Item code: btqp7d Infinity I, Flame I, Punch III, Power V
    Shouldn't this be? : esbtqp7d
     
  5. Offline

    Acrobot

    GreenBeing
    Hmm, is it even possible to have 4 enchantments on an item (in vanilla game)?

    Nevertheless - really thank you for spotting that - I'm fixing it now.
     
  6. Offline

    GreenBeing

    Yep, weapons and tools can have four enchantments in vanilla. Thanks for work on this great mod!
     
  7. Offline

    Buckethead

    Really when what? like since we havent needed lockette. As long as ive used it i know. If someone whos not a mod or admin on my server tries to open a players chetshop who doesnt own it they cant. i dont remember exactly what the error was because now i have a sort of communist server where only the server sells things and no one can make shops at all :p
     
  8. Offline

    Acrobot

    Buckethead
    No no, about the "free" price :p

    Don't worry about it though, I was just wondering :p

    GreenBeing
    Sure, I'll release a fix soon.
     
    Buckethead likes this.
  9. Offline

    Nickshelton80

    Test build 3.45 has been working perfectly for me =)
     
  10. Offline

    Buckethead

    oh ok
     
  11. Offline

    Acrobot

    Nickshelton80
    Thanks for the feedback! I actually think of releasing 3.46 TEST VERSION, and then the official one :)
     
  12. Offline

    Nickshelton80

    I'll be sure to test that one as well :)
     
  13. Offline

    daboross

    Can I use essentials economy with this plugin? I 'm not sure what vault is.
     
  14. Offline

    Acrobot

    daboross
    Yes, but you need "Vault" - it's a plugin that allows other plugins to hook into economy plugins.
     
  15. At my server, everyone can take all the stuff out of the chests, without buying it.
    How do I solve this problem?

    CraftBukkit version git-Bukkit-1.2.5-R4.0-b2222jnks (MC: 1.2.5) (Implementing API version 1.2.5-R4.0)
    ChestShop's version is: 3.42
    I use economy
     
  16. Offline

    Acrobot

    ricardo42
    I don't know, unless you gave them ChestShop.admin permission/OP, then I have no idea. Do you get any errors in the console?
     
  17. Offline

    Emiloow

    Hello Acrobot i really like the concept of chestshop, but im having trouble making it work on my server,

    we can buy and sell just fine. Thing is, our balance's arent getting update, when i buy from one, my own balance gets updated but his doesnt so i spend the money but instead of him getting them, they dissapear into nothing.

    so.
    A has 20$ B has 20$.
    A buys for 4$ from B
    A now has 16$ B still has 20$


    versions are
    git-Bukkit-1.2.5-R4.0-b2222jnks
    chestshop 3.42
    Using Essentials
    Essentials Group (permissions)
     
  18. Acrobot Ow, I see, everyone is OP because it's a server with friends. Thank!
     
  19. Offline

    Acrobot

    Emiloow
    Hmm... This sounds like an Essentials problem. Are you using Vault? If not, install it please.

    ricardo42
    Well, I'd use some kind of Permissions system even on a friends-only server :)
     
  20. Offline

    Emiloow

    i figured it out, i had somehow been told that it didnt matter what i wrote in the first line on the sign, but now that i write the exact playername, the money goes the right place and not just into nothing and everything works as should :)
     
  21. Offline

    Acrobot

    Emiloow
    Well, yeah :p
    It doesn't matter what you write in the first line UNLESS you're admin/OP :p

    If you ARE an admin/OP, you can type whatever name on the first line and the money will go to that account.

    Otherwise (if you are not an admin or you didn't write anything in the first line), ChestShop will auto-complete the first line with your name.
     
  22. Offline

    Emiloow

    allright, thank you :b now i understand.
     
  23. Offline

    leon01288

    Every time i try doing an admin shop for 98:0 ~ 98:3 it always sells the 98:3 brick
     
  24. Offline

    Acrobot

    leon01288
    Known issue, please search...
    This is fixed in the test version, and I'll be soon rolling out the official one.
     
  25. Offline

    leon01288

    Ah i did look via page but since you don't have a known bugs on the start area its hard to find stuff about bugs since you have over 200+ pages
     
  26. Offline

    Acrobot

  27. Offline

    ~Alex

    What is the texturepack in the picture
     
  28. Offline

    [AFA]Archer

    Hello,

    We've been using your plugin for quite a while now, and all of us really love it!

    However, I had a few request, if you would be willing to take any :p


    First one: Could you maybe make it possible for the shops to have co-owners? So for example 2 people can own a single chestshop and edit the contents of it. People will recieve split profit if somebody buys their goods then (50/50 for 2 people for example).

    Second one: We have a marketsystem on our server, with a big amount of space with preset sized plots dedicated for player-owned shops, but all those shops together seem to cause a lot of fps reduction, I went from 80 to something like 30 when walking around for example.

    Now for me it's not much of an issue, but for players with already low fps it can make going to the market a really annoying trip. Do you think there are any ways to fix this issue?


    I hope you'll look into these requests.

    -Archer6621
     
  29. Offline

    Andreas Brisner

    Ok, I just removed chesthop.shop.buy and .sell from my users, but they still can buy?ยจ
    What gives? If I dont give them that permission it should be denied?!?
     
  30. Offline

    mcpixx

    Every time I get this for my server, it never works, I've got it like 4 times already, do you know why?
     
  31. Offline

    mcpixx

    You
    Don't need to protect, if it's a shop, you don't need to, although you could protect it using shD LINEop, like this:
    FIRST LINE: NAME
    SECOND LINE: AMOUNT
    THIRD LINE: B 99999999999999 (As much that fit)
    FOURTH LINE: Dirt (Or any object really, doesn't have to be what you keep in there, 'cause no one will be able to pay)
    And there!! Easy!
     

Share This Page