[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

    Eo2day

    @ Acrobot
    Not working: My users and I get the You aren't allowed to buy/sell. I have made sure that everyone has the correct permissions and I am OP. What confuses me is that I can't even buy/sell.
     
  3. Offline

    Acrobot

    Eo2day
    Read the FAQ please.

     
  4. Offline

    Eo2day

    Ah, thanks, a small error one of my mods thought it would look nicer if the side the B or S was on corresponded with the left or right click.
     
  5. Offline

    Acrobot

    Eo2day
    Well, you can do
    S 5:5 B
    too :p

    (I think, if not - tell me)
     
  6. Offline

    si7vder

    Argh I posted something apperently it didn't work.

    Alright second time for me:
    I got a problem with the Admin Shops, they don't seem to work.
    When I try and make on it just says: "Couldn't find a chest!"
    I tried to change the name to Shops, didn't work.
    I made it only possible to make Shops in a certain Region flagged with "chestshop", still got the same message.
    I tried to put it above a chest and it just made a Shop for me.
    I changed the server iConomy account to my friends name but this didn´t change anything.

    I got the permissions and I am OP.
    The only problem I can think of would be a mistake in the Config file or just a bug in the recent version.

    Maybe anyone knows the answer ? It would really make me happy because now I have to use one of my friends accounts to make shops and they need chests.

    Thanks for reading and trying to help.
     
  7. Offline

    Bryek

    First off, this is a wonderful plugin and it has been working great for my server.

    I was wondering though if there was a way to limit the amount of times a player can sell to an admin shop?

    I am trying to make the economy balanced on the server and it was working great until our server got a particular person who loves to be the richest person on the server and will farm a singular item excessively (he sold over 7000 sugarcane per day).

    Thanks for any help or advice you can give!

    Bryek
     
  8. Offline

    rtcabooservb

    Acrobot Are there any plans in a future chestshop build to be able to sell enchantments directly from a sign?
     
  9. Offline

    Acrobot

    rtcabooservb
    If this is posted as a ticket on BukkitDev - yes. Otherwise, please post it there.

    si7vder
    If you get "couldn't find a chest", then something is wrong with your permissions (assuming you are putting "Admin Shop" or whatever you've set in the config correctly on the first line). Check them again, please.

    Bryek
    Thanks :p

    Nope, at the moment it's not possible to limit it. You can, however, make a limited store chest - just put some name (for example, "Sugar Shop")
     
  10. Offline

    si7vder

    I was hoping for some possible solutions, I checked my Config around 20 times now, I gave it to 3 friends and none of us found out why it wouldn't work.

    The only line in the Config saying something about an Admin Shop is this:
    ADMIN_SHOP_NAME: "Shop"
    #First line of your Admin Shop's sign should look like this

    After that theres this, wich has nothing to do with the actual creation of the shop:
    SERVER_ECONOMY_ACCOUNT: "Shop"
    #The economy account which Admin Shops should use and to which all taxes will go
    TAX_AMOUNT: 0
    #Percent of the price that should go to the server's account. (100 = 100 percent)
    SERVER_TAX_AMOUNT: 0
    #Percent of the price that should go to the server's account when buying from an Admin Shop

    Theres nothing about enabling or disabling the Admin Shop.
    I tried it around 200 times now, the name was right too.
    If anyone ever had some kind of problem that looks like this, please tell me your solutions one of them might help me.

    For now I am using another plugin but it is 1000 times worse. I could send my whole Config if that would change anything but all I can think of would be a bug with another plugin and knowing that my other plugins are essential to the server I can't do much about that.
    I just hope you know an answer.
     
  11. Offline

    Acrobot

    si7vder
    Well, you've set the ADMIN_SHOP_NAME to "Shop", so try putting "Shop" on the first line. If you still get the error, let another admin try it.
     
  12. Offline

    si7vder

    It still didn't work I let my brother and a friend do it but always the same message.

    I appreciate your help and I will keep trying to figure out the problem but it is fine for now. I got some custom Buy and Sell plugin wich isn't perfect but it works for now.
    I will wait untill the new update and see.
    Thanks anyway I really appreciate your help !
     
  13. Offline

    Acrobot

    si7vder
    Hmm... Have you tried the test version of ChestShop? It's very similar to what I'm planning on releasing. (You can download it from the original post, red letters)
     
  14. You spelled it exactly the same way? Small letters and big letters the same?

    You don't have lockette installed? It messes with this plugin.
     
  15. Offline

    si7vder

    I would like to know the bug so here I go this is my plugin list:
    AntiCheat
    ChatManager
    ChestShop
    CoreData
    CraftBook
    DynMap
    Essentials
    iConomy
    mcMMO
    Modifyworld
    MoneyDrop
    PEX
    WorldEdit
    WorldGuard

    Any of these could create the problem because I am sure that I write it correctly.
    Any ideas ? I would prefer to have this fixed.
    I tried reinstalling ChestShop but it still didn't work all it said was: "Couldn't find a chest."
    Thanks for responding, I appreciate the help !
     
  16. Offline

    Acrobot

    si7vder
    Can you PM me the ip to your server?
     
  17. Offline

    Buckethead

    Anyone else have the problem selling piston? I put piston or 33 on sign and it only counts it as ase. how can i buy and se whole piston
     
  18. Offline

    Acrobot

    Buckethead
    Well, /iteminfo shows you information about the item in hand. Pistons use :6 data value for when they're held in hand. Also, it's "Piston Base".
     
  19. Offline

    Niggerbob

    Having trouble with two things.

    Number one, I can't seem to get people not to be able to create shops. I just switched over to PEx and I don't think I'm using the right nodes.

    I'm trying to do it from the console removing - ChestShop.shop.* and - ChestShop.shop.create and it doesn't seem to be working.

    I've tried manually adding those to the permissions file as they are enabled by default but it has no effect.

    Number two shops are able to buy for more than they sell for even though the setting is set to false in the config.

    Any help is appreciated!
     
  20. Offline

    Acrobot

    Niggerbob
    You must remove ChestShop.shop.create.* - unfortunately, that's how PEX works. (That's why many devs don't like PEX).

    You can do that by adding "-ChestShop.shop.create.*" permission.

    And the second one - I think I fixed it in the TEST BUILD.
     
  21. Offline

    Niggerbob

    SOLVED.

    Thank you
     
  22. Offline

    Acrobot

    Niggerbob
    See that little "-"? That makes a difference. You need to add
    "-ChestShop.shop.create.*",
    NOT "ChestShop.shop.create.*"
     
  23. Offline

    chaseoes

    Is there a changelog available anywhere for the test build?
     
  24. Offline

    Acrobot

    chaseoes
    Well, on GitHub.
    Nothing really was added besides a simple API - it's mostly code re-structuring.

    By API, I mean a few events - check under com.Acrobot.ChestShop.Events
     
  25. Offline

    Kaosvf

  26. Offline

    Acrobot

    Kaosvf
    Have you tried the test version?
     
  27. Offline

    Kaosvf

    Sorry, I made a mistake, I was using the version 3.45 and happened that error. Now with the 3.42 doesn't happen nothing.
     
  28. Offline

    Acrobot

    Kaosvf
    Hmm, ok, I'll check that.
     
  29. Offline

    Buckethead

    OK so how do i sell pistons in a shop?
     
  30. Offline

    lukewalsh21

    Just downloaded the plugin and was wondering how do you sell Expierience can you post a pic on how to sell and buy Expierience
     
  31. Offline

    Acrobot

    Buckethead
    I've just told you... "Pistons use :6 data value for when they're held in hand. Also, it's "Piston Base"."

    So to sell, you need to use :6 data value.
    For example:

    AcrobotPL
    1
    1:1
    Piston Base:6

    lukewalsh21
    You can't.
     

Share This Page