[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

    Acrobot

    @Nerrion
    Spawn radius is the spawn protection.
    If you have the shops near spawn and left button is configured to buy, the spawn protection won't even let the shops know that they are clicked.
    Are you getting any errors?
     
  3. Offline

    Joannou1

    @Acrobot I know this is kinda stupid, but Leave shops do not work!
    No matter what version!
    It just says "You don't have enough items to sell!" I have a stack, the shop is buying 1 at a time.
    I tried "LEAVES" "18" "18:0" all of those, never works.

    Here's the info!

    All Other shops work.

    - CraftBukkit version b1532jnks (MC:1.0.0)
    - ChestShop version 3.29
    - Your economy plugin: iConomy
    - Have you got any Permission plugin? PermissionsEX
    SUGGESTION FOR FUTURE:
    Possible have a tool to select a remote chest, eg. ChestShop sign is 5 blocks away from the storage chest.
    Thanks!
     
  4. Offline

    Acrobot

    @Joannou1
    In 1.8, the leaf data value changed. Do /iteminfo to find out the item ID and damage value of the item you're holding.
     
  5. Offline

    Joannou1

    Woah :confused:
    I never knew that...

    Thanks! Keep up the good work!
     
  6. Offline

    rouge_killer97

    How can i allow a non Admin rank to use Admin shops ? also at what point does this plugin call someone a admin
     
  7. Offline

    Acrobot

    @rouge_killer97
    Admin shops means "Shops made BY admins".
    They have limitless resources, but everyone can use them. (Unless you use a "restricted" sign)
     
  8. Offline

    Royalgamer06

    With the OP-system only OPs can make shops. (Permissions are too hard to understand for me)
    Can I set it that Players also can create shops?
    If not, can you please make this?
    Thank you
    Greetz Roy
     
  9. Offline

    Royalgamer06

    It doesn't seem to work with OP-system. Could you plz fix this? (Permissions are too hard to understand for me)
    And set it, players can also create shops.
    Thank you
     
  10. Offline

    Acrobot

    @Royalgamer06
    It works with the OP system.

    OPs can do anything, non-OPs can:
    - create shops
    - buy
    - sell

    This system is active if the Permission 3 plugin ISN'T found in your plugin directory.
    Also, you might want to check out spawn-radius in bukkit.yml.
    If it isn't 0 already, set it.
    Else, you won't be able to create shops near spawn.
     
  11. Offline

    Royalgamer06

    This plugin doesn't work correctly. When I create a shop, whenever I am OP or not, I or others cant sell/buy something! I place a chest, above a sign with the right data. Than it says; correctly created a shop. But I or others can't sell/but. Please help.
    Thank you.
    Greetz Roy
     
  12. Offline

    Royalgamer06

    I have change the spawn-radius, but still the same error. (no error log btw)
    PLZ help
     
  13. @Royalgamer06
    Check your permission nodes:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
     
  14. Offline

    Acrobot

    @Royalgamer06
    Well...
    Your 3rd sign line is probably wrong.
    It goes like this (B and S can be on either side of the price and the colon)
    B 5
    S 5
    B 5:5 S
     
  15. Offline

    Royalgamer06

    I don't use permissions. But never mind, I've found another plugin. Thanks anyway.
     
  16. Offline

    Royalgamer06

    I did that. But still doesn't work. Never mind, I've found an other plugin. Thanks anyway. Maybe you could fix this for others. You may choose :p.
    Greetz Roy
     
  17. Offline

    rouge_killer97

    but what i want to know what does this plugin consider a admin what do they have to have what nodes what abilities
     
  18. Offline

    sean_skroht

    I can confirm that this is an issue for our server as well. Version 3.28 and 3.29 definitely have a problem with LWC that wasn't there in 3.24, hence we've rolled back to that version. Let us know how you go with that Acrobot.
     
  19. Offline

    number1_Master

    i read that the groups are permissions 2/3 only, and i have bPerms. Yet, bPerms states that almost all plugins that require permissions 2/3 are compatible with bPerms. Is that true with this plugin, or should I test that out?
     
  20. Disable auto-protect in LWC because this is the problem ;) or before you make the shop type in /cremove to remove the protection and then create your shop

    @Acrobot
    Thx that you fixed it that a player can't create a shop for a other player ;) Because this was the reason we are not using this shop anymore. now we can use it again^^
     
  21. Offline

    Acrobot

    @Taverne
    Well - player couldn't create a shop for other player for a long time :p
    I think that in 1.something version this was fixed.

    @rouge_killer97
    The player is admin when he has ChestShop.admin node.
    By default, if you aren't using Permissions 2/3, OPs will have the admin node.

    @sean_skroht
    K, I'll look into that. It only seems like the name recognition is wrong, or something.

    @nunber1_Master
    bPerms works with ChestShop flawlessly :)
    You can use either the compatibility mode (the Perm 2/3 mode), or the normal, BukkitPermissions mode :)
     
    nunber1_Master likes this.
  22. Offline

    rouge_killer97

     
  23. Offline

    rodier

    I got weird error.. Chestshop now ignore permissions :( I have Ess GroupManager (2.7.17)
    I have Cb1447, I have ChestShop ver 3.24
    and now, all players can build chestshops, Player = default group, they have only Chestshop buy and sell but they can still create shops.. why ? I didnt change anything.

    console:
    18:34:49 [INFO] [ChestShop] Permissions version 3.1.6 loaded.
    18:34:49 [INFO] [ChestShop] LWC version 3.53 loaded.
    18:34:49 [INFO] [ChestShop] WorldGuard version 5.3 loaded.
    18:34:49 [INFO] [ChestShop] version 3.24 initialized!
    18:34:49 [INFO] [ChestShop] iConomy 6 loaded.

    this is my perm:
    Code:
      Player:
        default: true
        permissions:
        - residence.create
        - ChestShop.shop.buy
        - ChestShop.shop.sell
        - banreport.warnings.own
        - essentials.home
        - essentials.home.others
        - essentials.delhome
        - essentials.sethome
        - essentials.sethome.multiple
        - essentials.kit
        - essentials.kit.player
        - essentials.list
        - essentials.msg
        - essentials.rules
        - essentials.spawn
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - essentials.signs.use.*
        - iConomy.help
        - iConomy.holdings
        - iConomy.payment
        - lwc.protect
        - mobarena.arenas.*
        - mobarena.classes.*
        - mobarena.use.*
        - authme.register
        - authme.changepassword
        - essentials.balance
        - essentials.balancetop
        inheritance: []
        info:
          prefix: '&2'
          build: true
          suffix: ''
    
     
  24. Offline

    rouge_killer97

     
  25. Offline

    Acrobot

    @rodier
    Essential's Group Manager uses Bukkit Permissions. To disallow players create shops do either:
    - go into ChestShop.jar with WinRAR/7Zip, open plugin.yml and delete the whole "permissions:" part.
    - give a negative node (-ChestShop.shop.create), so your permission you need to add looks like this:
    Code:
        - -ChestShop.shop.create
    
    @rouge_killer97
    Why would you like to do that?
     
  26. Offline

    rodier

    ok thanks a lot ;-D
     
  27. Offline

    RugRats

    You should add the buying and selling of XP :D
     
  28. Hi
    The only group able to create shops is administrator, noone else is able to do so. Any ideas why? Permissions are set. Thanks

    2011-12-06 20:12:52 [INFO] [ChestShop] Permissions version 3.1.6 loaded.
    2011-12-06 20:12:52 [INFO] [ChestShop] LWC version 3.53 loaded.
    2011-12-06 20:12:52 [INFO] [ChestShop] version 3.29 initialized!
    2011-12-06 20:12:52 [INFO] [ChestShop] Essentials 2.2 loaded.

     
  29. Offline

    crokeykid

    yeah i put -ChestShop.shop.create next to every user i didnt want to be able to do chest shop. but now no one is able to use it but admins and me the owner.
     
  30. Offline

    Acrobot

    @vejbuch
    Hmm... Your permissions are fine.
    Check them at http://yaml-online-parser.appspot.com/
    It may be just an error in formatting.
    By the way, you might be interested in switching Permission plugin some time, because Permissions 3 isn't supported for a bit of time now.

    @crokeykid
    Can you post your permissions file on pastebin.com and link me to it?

    @RugRats
    Yeah, this would be interesting :p
    Meanwhile you can configure your iConomy to use experience as a currency :)
     
  31. Offline

    rizemon

    There is a problem when I try to sell leaves and pistons through chestshop.
    When I try to sell them ,It will say that I do not have enough items even though I have the right amount of items.
    Pls fix this :D
     

Share This Page