[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

    Dragendave

    Question/Sugestion:
    May it be possible tu intigrate this Plugin to ChestShop: http://dev.bukkit.org/server-mods/signupdater/

    In Order to realize to show live a balance/holding of a Player/Account on a Sign.

    Like having a Server Account or some Bank-Accounts to show the acctual balance on a Sign.

    1st Line - Acc.Name
    2nd Line - Balance Dollar
    3rd Line - Balance Cent
    4th Line - Active/Inactiv indication

    or something like that. (Ammount's may be oversized.. so maybe you could shortn them by 100k and 100m cut-offs)

    That would be totaly awesome!

    Greetings,
    Dave
     
  3. Offline

    Acrobot

    Dragendave likes this.
  4. Offline

    Meskela

    Hello, I am using this chestshop for my server, it was everything good with it till I changed permissions plugin from EssentialsGroupManager to Permissionsex. Now when I'm trying to buy or sell something to the shop it says that I don't have a permissions.. But all of the chestshop permissions is in my permissions.yml.. I can show you my default permissions.yml P.s

    - CraftBukkit version: 1.1 R3
    - ChestShop: 3.34
    - Your economy plugin: iConomy
    - Have you got any Permission plugin? PermissionsEx-1.18

    Please help me with that problem..
     
  5. Offline

    Acrobot

    Meskela
    Hmm, well, everything's fine, but PEX doesn't really work. I'd downgrade to 1.17, as this PEX version works.
     
    Meskela likes this.
  6. Offline

    Meskela

    Thank you very much! ITS WORKING!!!
     
  7. Offline

    Calvin

    not working for me. I have Essentials, and Vault installed, along with the permissions - ChestShop.shop.* in my PEX permissions .yml file. Anyone can create a chest, but not even the admins can buy/sell from them. Tried in creative mode, and survival, holding shift, had blocks in the chest, was the right ID checked with /iteminfo, and I am very confused! Thanks for any help you can throw

    EDIT: bukkit version 1.1 -R3 chestshop version 3.34
     
  8. Offline

    Stigern

    Whats the name for Stone Bricks? You make from 2x2 smoothstone.

    "Stone Brick" Gives me the red brickstone.
     
  9. Offline

    Acrobot

    Calvin
    Have you tried downgrading to PEX 1.17?

    Stigern
    You can find out in /iteminfo :)
     
  10. Offline

    TheForgeCannon

    Could you help when i try buying from an admin shop i made it keeps saying i dont have enought when i have like 100 coins so could you help..Thanks!
     
  11. Offline

    Snowlynx

    So i have:
    Craftbukkit version: 1.1 R-3
    The latest chestshop version at the moment : 3.34
    Iconomy 6.0.8.b
    Permissions: version 3
    Everytime i put the chestshop plugin on the server, lwc crashes along with chestshop, and everytime i try to place anything related to lwc it says: [LWC] Internal error. Notify An Admin Immediately. PLAYER_INTERACT
    Help please?
     
  12. Offline

    Calvin

    Still don't work, same exact problems :S
     
  13. Offline

    Epics

    Great.

    Calvin
    If you send me the server information I'll try my best to help you out. I myself use PEX 1.17 and it's working fine. (After I changed bukkit.yml spawn-radius to 0 & I also had to remove the permissions from my Bukkit directory (permissions.yml) because PEX can't read that.
     
  14. Offline

    Acrobot

    Snowlynx
    Well, I think it's a LWC problem, isn't it?
     
  15. Offline

    xenilis

    RAAAAAAA!!!!! the thing will set up a shop but wont protect itself with eather lwc or its built in or both!! i have the latest version and no errors people just walk right up open the chest and grab the stuff and leave itle protect the chest and signs from being destroyed but thats it
     
  16. Offline

    Epics

    Do you have
    Code:
    USE_BUILT_IN_PROTECTION: true
    set to true?
    Are your shops being made correctly? (It will say "Shop has been created!" on the successful making of a shop.)
     
  17. Offline

    xenilis

    yes all are set to true and yes it says that shop was created sucsessfuly
     
  18. Offline

    Epics

    Wait, you have use built in set to true & LWC set to true?
     
  19. Offline

    Buckethead

    k filled ticket thing
     
  20. Offline

    xenilis

    yea.....
    but before i got lwc the built in wasint working
     
  21. Offline

    Epics

    Have you tried disabling LWC protection (BOTH settings) and testing it? They may be conflicting with eachother. Confusing the plugin!
     
  22. Offline

    bonani

    Hate to be an idiot but; is there a TODO-list anywhere? Wondering about MySQL-support.
     
  23. Offline

    Acrobot

    bonani
    Already possible, just configure it in bukkit.yml

    xenilis
    Hmm, are you sure that they haven't got ChestShop.admin permission?
     
  24. Offline

    bonani

    Acrobot I don't have bukkit.yml on my plugin; using old version maybe (3.34)? Where can I find dev-versions and latests build?
     
  25. Offline

    Acrobot

    bonani
    Bukkit.yml is in your main server folder.
     
  26. Offline

    Kuboken

    huuummmm the Chest.Shop.nofee is not working on my server you would not know why that is would you? the players who donate on my server do not have to pay to make one.
     
  27. Offline

    xenilis

    xenilis
    Hmm, are you sure that they haven't got ChestShop.admin permission?[/quote]
    yup
     
  28. Offline

    9berend9

    I like the plugin. But isn't it possible to rob people with this, even when LWC is used? Like when I suspect someone of having diamonds in his chest, I just place a shop sign next to it, buy the diamonds for free, and in that way robbing the player. Is there some kind of protection to prevent this, or is this actually possible to do?
     
  29. Offline

    Epics

    This would work if the default rank had permissions to their land that the shop was placed on & had access to ChestShop.shop.create I believe.

    I just tested it, you can have like... 6 shops per 2 chests. So yeah, this should probably have a config value or something :p
     
  30. Offline

    Acrobot

    Kuboken
    Hmm...
    Code:
    boolean paid = shopCreationPrice != 0 && !isAdminShop && !Permission.has(player, Permission.NOFEE);
    
    paid means that you have to pay for the shop, so nope, I don't know - maybe another permission plugin is conflicting?
    You don't get any errors, do you?

    9berend9
    Yep, this isn't possible to do, because there is protection to do that.

    xenilis
    Hmm....
    Can you shed a bit of light on the situation, like:
    - was the player who went to the chest the shop's owner
    - was the player OP
    - what plugins are you running
    - what's your config (paste it on pastebin.com, please)
     
  31. Offline

    ViZiT

     

Share This Page