[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

    JoneKone

    I think you make your signs wrong..

    Name
    Number of items
    B 100 <- Player buys from your shop. ||| Player sells to you. -> 100 S
    item name/or id
     
  3. Offline

    JoneKone

    Some kind of API =D YEES i know.. but still..

    For chestShop 4..

    And multiple Admin shop names..

    Admin Shops that have databased inventoryes..
     
  4. Offline

    Joey1014

    It says i cant create a shop here
     
  5. Offline

    OzzarTheBoy

    Thank You |You Are A [diamond]|
     
  6. Offline

    Kainzo

    @Acrobot
    Not sure why - but anyone can create ChestShops - despite having the explicit permission to create them - its also not charging for chestshops...

    Any thoughts?

    I checked the Perms - no one is granted chestshop.shop.create - thinking it may bet he plugin.yml work we did yesterday.

    Nevermind... I think it was default: true causing it -testing now
     
  7. Offline

    Acrobot

    @Kainzo
    Yeah - default: true would do it.

    @OzzarTheBoy
    Wow, thanks :D
    [diamond] to you too :D

    @Ereqqu
    Can't sell - go to bukkit.yml, change spawn-radius to 0.
    For your money issue that's probably your economy plugin's config.

    @JoneKone
    ChestShop 4 is based on event system.
    Look at that (it's pretty dirty ATM, will clean it later):
    https://github.com/Acrobot/ChestShop4
    (Breeze is a framework I'm making)
    @Joey1014
    Can't create a shop here is caused if you either have
    - Towny integration turned on and you are creating a shop not in the shop plot.
    - WorldGuard intergration turned on and you are creating a shop outside any WG region.
     
  8. Offline

    Joey1014

    sorry typed it wrong ment that it says you cant create this type of shop
     
  9. Offline

    Acrobot

    @Joey1014
    Can't create this type of shop means that you haven't got permissions to create a shop. Are you sure you configured your permissions correctly?
     
  10. Offline

    Joey1014

    I dont really understand permissions
     
  11. Offline

    Acrobot

    @Joey1014
    Well, you have them installed.
    If you don't need them - remove them.
    If you want them, just go to youtube and find a tutorial on your permissions plugin. I recommend bPermissions by @codename_B - it has built-in /permissions tutorial and is probably the most user-friendly perm plugin.
     
  12. Offline

    Tashafi

    how can i let people take only one item from the shop for free??
    so like if one person right clicks the sign he gets one item for free, and he cannot do that anymore, but if someone else clicks the same sign, he also gets on item and he cannot get an item from that sign anymore
    is there also something for that???
     
  13. Offline

    codename_B

    It doesn't currently :p new version is slowly getting features re-added.
     
  14. Offline

    xxDalekcaanxx

    I have the latest build already.
     
  15. Offline

    juodas

    Not all the players playing in my server have registered accounts in minecraft.net, they have MinecraftSP
     
  16. Offline

    Acrobot

    @Tashafi
    Not yet possible :/

    @xxDalekcaanxx
    Sorry - but are you sure?
    Can you send me the output of /version?

    @juodas
    Could you test if it happens with a different economy plugin too?
     
  17. Offline

    MaGGoT

    Hello @Acrobot ,
    All players can create shop, but don't have permissions to do it in my server.

    I use ChestShop.shop.buy and ChestShop.shop.sell permissions in default uses, but they can create shops.

    Sorry for my bad english.

    You can Help me ?
     
  18. Offline

    Acrobot

    @MaGGoT
    That's a feature of superperms.
    To disallow creating shops, you need to add a negative node:

    in bPerms:
    ^ChestShop.shop.create
    in PEX:
    -ChestShop.shop.create
     
  19. Offline

    juodas

    Hmg, I really didnt seen that happens, my players sayed about that bug, but when created account vith the space between two words in nick, i couldn't buy, but i didnt tested if i have money required for something to buy and what happens then, because i had only 100 money, and price was i think bigger.
     
  20. Offline

    MaGGoT

  21. Offline

    Buckethead

    whats the chest shop plugin that displays the actual items above the chests i want that but i cant find it. or is that something that could be done in this plugin
     
  22. Offline

    Buckethead

    u shoulnt need to right. if they dont have the .mod perm theyshould only be able to buy and sell
     
  23. Offline

    JoneKone

    DAM! somebody just //Set 0 the shop and now when I try to do NEW shop it says "Another players shop detected"
     
  24. Offline

    BBFPaco

    If I add a negative node though, for Guests, it denies all other groups because of inheritance even if I then add the permission back to another group.

    I think you need to fix this as I don't have to do this with any other plugins.

    Thanks!
     
  25. Offline

    Acrobot

    @BBFPaco
    How should I fix that - it's a bug in your permission plugin.
    If you want to "fix" that, you should open ChestShop.jar with 7Zip/WinRAR, open plugin.yml and delete the "permissions" section.

    @JoneKone
    Well, it means that another player's shop was detected.
    ChestShop uses no database, so unless bukkit bugged out, there's no way that this would bug out. Can you try restarting the server?
     
  26. Offline

    MaGGoT

    @Acrobot
    How to do it?
    Delete this?
    permissions:
    ChestShop.*:
    description: Gives access to all ChestShop permissions
    default: op
    children:
    ChestShop.shop.*: true
    ChestShop.admin: true
    ChestShop.shop.*:
    description: Gives access to all user ChestShop permissions
    children:
    ChestShop.shop.create: true
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
    default: true
    ChestShop.shop.create.(itemID):
    description: Allows user to create a shop that sells item with itemID like in the permission node (replace (itemID) with NUMERICAL item ID)
    ChestShop.shop.buy.(itemID):
    description: Allows user to buy certain (itemID) from a shop (replace (itemID) with NUMERICAL item ID)
    ChestShop.shop.sell.(itemID):
    description: Allows user to sell certain (itemID) from a shop (replace (itemID) with NUMERICAL item ID)
    ChestShop.shop.create:
    description: Allows user to create a shop that sells any item
    ChestShop.shop.buy:
    description: Allows user to buy from a shop
    ChestShop.shop.sell:
    description: Allows user to sell to a shop
    ChestShop.admin:
    description: Allows user to modify/destroy other stores and create an Admin Shops
    default: op
    ChestShop.mod:
    description: Allows user only to view other store chests, he can't destroy them or create an Admin Shop
     
  27. Offline

    Buckethead

    plz make an opion where people can sell used tools to the shop
     
  28. Offline

    Nathan C

    I have no options in permissions to allow people to create shops.

    Although people still can create shop? How would i disallow this?

    PEX
    Latest Chestshop
     
  29. Offline

    datwerd

    unable to sell pistons to shops everything else seems to be working fine other than pistons and sticky pistons cs version 3.31 and CB version 1.0.1-R1-b1597
     
  30. Offline

    JoneKone

    2012-01-09_07.58.02.png 2012-01-09_07.58.15.png 2012-01-09_07.58.18.png
    @Acrobot

    Just tried lwc admin cleanup <- nothing..
    Restart does nothing this has happened like 2 times since the problem.. As the server restarts every 3 hours..
     
  31. Offline

    JoneKone

    Solved.. There was a Falcebook lift sign in the otherside of the block..
     

Share This Page