[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

    Serial1990

    If my players something at the store buying or selling, the server starts lagging too extreme to. :(

    - CraftBukkit - #1185
    - ChestShop - 3.22
    - Your economy plugin - Iconomy6
    - Have you got any Permission plugin? Which one? - PermissionsEX
     
  3. Offline

    Sayshal

    MySQL support? :D
     
  4. Offline

    kahlilnc

    Does this require towny?
     
  5. No. But if you use Towny you could turn on support for it. There're only some features.
     
  6. Offline

    Acrobot

    @Serial1990
    Do you use an external database (for example, MySQL)?
    It probably causes that lag.

    @Sayshal
    It already works with MySQL, just change setting on bukkit.yml.
    @kahlilnc
    As @VADemon said :)
    (BTW, thank you really, really much @VADemon)
     
  7. Offline

    desy_troyder

    CraftBukkit - #1185
    - ChestShop - 3.22
    - Your economy plugin - Iconomy 6
    - Have you got any Permission plugin? Which one? - Permissions 3
    Any player can't use left button on the signs. They can sell/buy with reverse turned off/on but they can't use the left button. (If right button is buy - they can buy; if right button is sell - they can sell)
     
  8. Offline

    Acrobot

    @desy_troyder
    Go to bukkit.yml, change spawn-radius to 0 :)
     
  9. Offline

    desy_troyder

    O_________O
    I am so stupid D: Thank you.
     
  10. Offline

    Lehl

    so lemme guess not 3co support on register yet? just asking cus i just came home from work
     
  11. Offline

    Acrobot

  12. Offline

    Lehl

    so the 3co support comes out with the next official update of register or how to understand? and thx for the temporary version of chestshop! even if id didnt tried it yet
     
  13. Offline

    Acrobot

    @Lehl
    Yep - when Register updates, 3co support will be in. I included a pre-compiled version of Register in my plugin, which I gave to you :)
     
  14. Offline

    Spathizilla

    Seems something has changed in Odditem 0.8 which no longer gives all the aliases to ChestShop 3.22 on CB1240. So things like lapis have to be defined as 351:4 or ink_sack:4

    However, this might be because of something in the default Odditem.yml as I see you have the right call to Odditem.getItemStack(String name) in the source.
     
  15. Offline

    Lehl

    awesome @Acrobot the version u gave me is working fine thnkas for that

    all my [diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond] are belong to you
     
  16. Offline

    Acrobot

    @Spathizilla
    Hmm, weird one. You should probably ask in the OddItem thread - I believe they'll give you more detailed answer. My guess is that it just works differently - I don't know how exactly.

    @Lehl
    No problem :)
     
  17. Offline

    Lehl

    @Acrobot uhmm its not workingxD ppl can buy and sell stuff but my money always stays the same^^
     
  18. Offline

    Lehl

    uhm its not the same.. u getting charged for what ur buying but the shop owner dont get any cash
     
  19. Offline

    Spathizilla

    @Acrobot

    Seems the /iteminfo command doesnt get the aliases from Odditem (now I have it working). Item names on signs seem to have to be lowercase to match via Odditem. I guess this might be the Odditem comparator setting coming into play though.

    In reference to @Lehl's issue, I've tested with my setup and I get paid/charged for buying/selling on cb1240, CS 3.22 and iCo5.
     
  20. Offline

    Lehl

    i dont use ico i use 3co wich got just supported on my version from acrobot.. but got the problem i said ;P
     
  21. Offline

    Acrobot

    @Spathizilla
    Thanks for the information, I'll do what I can.

    @Lehl
    Checking that now, I'll probably fix it tomorrow.
    BTW, are you sure that the owner HAS an account? That seems to be an issue with 3co - the account is not created. You need to MANUALLY do /eco set nickname 0, to create someone's account with 0 money in it.
     
  22. Offline

    Lehl

    na he got a account for sure cus he can use my other shop plugin.. also 3co got a plugin that creates accounts full automatic on login to the server if its a new player... also he couldnt use the /eco show to show his balance if he wouldnt have a account;P and also for me i SURE got a account of crouse but nothing.. like i said u pay for the item but the money goes to nowhere:confused: anyways thanks for the patience ;P
     
  23. Offline

    Acrobot

    @Lehl
    I'll look into that, but it's 23:16 here, and I still need to do my homework - I'll fix it tomorrow.
     
  24. Offline

    Lehl

    same time like my place:confused: where r u from dude?
     
  25. Offline

    Sayshal

    Please make signs placed infront of chests attach to shop-chests? Mine just stay infront :S
     
  26. Offline

    MabaSploom

    Is there a way to add multiple names for an Admin Shop to the config file? So that if you create an Admin shop it can pull from any of them? Say like "Miners/Woodsmen/Artisans" etc..
     
  27. Offline

    Serial1990

    I
    have fix the problem. I use now Iconomy5 :)
     
  28. Offline

    ewplayer3

    I seem to be having a bug with the economy and I'm not sure whether it's this plugin or iConomy causing the issue. The server info is as follows:
    Bukkit: git-bukkit-0.0.0-1067-g6301507-b1185jnks (MC-1.8.1)
    iConomy: Version 6.0
    Chest Shop: Version 3.22
    Permissions: 3x
    Essentials: 2.6.2
    Stargate Mod
    The problem I'm having is that any account that has over $1000 in it prevents Chest Shop sale transactions from occuring properly. Users can buy/sell the item from/to the shop but if the shop owner or the player in question has more than $1000 in their account, no money is transfered between the buyer and seller. This has been tested at all user levels from New Player up to Admin and it all malfunctions in the same fashion. Any help with this is greatly appreciated. I'd like to have this server ready for public usage by next week.
     
  29. Offline

    Ziden

    Hello there.

    Im having a whole server lag when people buys/sells items (1 guy only for example) in a speedy rate. Im using iconomy 6 and no other plugins that would effect this. Anything i could do ?

    Thanx the pattience :)
     
  30. Offline

    Speedster159

    How do i sell colored wool?
     
  31. Offline

    Jikarosa

    Wool color is determined by the damage value of the item. So for example red wool is ID 35 and damage value 14. To spawn, sell or buy items with damagevalues use this kind of format: "ID:damage".
    Red wool is 35:14.

    As you propably know by now the shop is created like this:

    (leave first line empty)
    1
    50:30
    35:14

    This shop sells 1 piece of red wool for 50 iConomy money and buys it for 30 iConomy money!
     

Share This Page