[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

    Hex

    766
     
  3. Offline

    arsjet

    Try at 803 or 815?
     
  4. Offline

    Hex

    Isnt 803 unavalible right now?
     
  5. Offline

    arsjet

  6. Offline

    Hex

  7. Offline

    Acrobot

    @Hex
    Move your server to file path without special characters, like C:/Server.
    Or change its name, so it matches your start script.

    Also, what should shop sign look like? Should I leave it like it is already, or change something?
     
  8. Offline

    arsjet

    craftbukkit.jar
    Try changing the name.
     
  9. Offline

    Hex

    I updated but player is still unable to shop. >;\
     
  10. Offline

    Acrobot

    @Hex
    Hmm...
    What error do you get?
     
  11. Offline

    Hex

    Not an error in the console, but permission errors. It just says
    [Permissions]You cant buy from this store!
     
  12. Offline

    Acrobot

    @Hex
    Could you paste the file to PasteBin and post its URL here?
     
  13. Offline

    Hex

  14. Offline

    Acrobot

    Try putting a space between
    --> -
    and
    --> '

    So it looks like
    Code:
                - 'iConomyChestShop.shop.buy'
    
    instead of

    Code:
                -'iConomyChestShop.shop.buy'
    
     
  15. Offline

    Hex

    Didnt work ><
    Could it be the Permission Plugin itself?
     
  16. Offline

    NoobiCake

    iConomy Balance will not update after selling items.

    [​IMG]

    Could it be something with my iConomy version?
    I'm running iConomy 5.0.1
     
  17. Offline

    Acrobot

    @NoobiCake
    Wow, that's weird o.0
    I mean, really. Try turning off the server, re-downloading the plugin and then running it again.
     
  18. Offline

    NoobiCake

    Same thing happens, balance not updated.
    Tried with both H2SQL and MySQL to see if that caused the problem.

    Edit:
    BTW, I'm on Bukkit Build 766, maybe it's the build that's causing the problem, since this plugin is for build 803-815.
     
  19. Offline

    Hex

    YAY I FIXED IT
    Thanks Acrobot, turns out I needed - ' for every permission instead of -'
     
  20. Offline

    HawtNips

    There is a bug on my server where if one of my friends (xzaca) someone besides an Admin is online and someone buys from the admin shops, he is getting money equal to the sell price of the item purchased by another user. If someone sells to the admin shops, money equal to the sell price is being deducted from his balance. This is rendering him unable to use admin shops with out depleting his balance.

    NOTE: when xzaca is offline, admin shops work as intended with no issues.

    -Bukkit Version: 28.05 11:15:15 [Server] INFO This server is also sporting some funky dev build of Bukkit!
    28.05 11:15:15 [Server] INFO This server is running Craftbukkit version git-Bukkit-0.0.0-753-g34e310c-b803jnks (MC: 1.5_02)
    -Permission plugin: Perissions, http://pastebin.com/aXMrwK3f
    -iConomy Chestshop config file: http://pastebin.com/eQRCybGC
    -No messages came up during the transaction
    -Ive been reinstalling plugins and resetting character data but nothing has fixed it

    EDIT: More testing done and if the one player is offline it takes from another player instead.
     
  21. Offline

    Acrobot

    @HawtNips
    Woah, that's REALLY weird.
    I'm going to test it.
     
  22. Offline

    Acrobot

    @HawtNips
    I was unable to reproduce it :/
     
  23. Offline

    HawtNips

    This is the exact same outcome for the person whose money is being tied to the adminshop account. If they sell they get no money and if they buy they lose money like normal.

    How were you able to fix it?
     
  24. Offline

    NoobiCake

    Hmm?, I haven't fixed it, still having problems with the update balance after selling an item.
    But you might have right with the adminshop part in your post.
     
  25. Offline

    Acrobot

    @HawtNips
    @NoobiCake
    I'd make a temporary solution -
    create an account for admin shop, bind it to admin shop in config, give it 9999999999 dollars.

    I'll look into the problem.

    BTW, I think I added a little neat feature - if shop owner is clicking his shop's sign, it shows the chest's inventory :)
     
  26. Offline

    HawtNips

    how do i create an account and bind it with the config?
     
  27. Offline

    Acrobot

    @HawtNips
    /money create ShopAccount
    /money set ShopAccount 99999999999999999

    In plugins/iConomyChestShop/config.yml

    change
    Code:
    serverAccountName: ""
    
    to

    Code:
    serverAccountName: "ShopAccount"
    
     
  28. Offline

    HawtNips

    The only way this works is if i set up a chest for user/account ShopAccount. Is this what you were suggesting?
     
  29. Offline

    HawtNips

    I honestly can't say what happened, but now Adminshops are working for my server as well as creating NPC's to be mayors of "admin" towns which I was posting on another forum page about. Hopefully everything continues to run smoothly and something doesn't spark theses issues back up.

    Thanks for the help though Acrobot, I appreciated it.
     
  30. Offline

    NoobiCake

    I must be blind -.-
    I have overseen the part in the config.yml where to define the server account (A)
     
  31. Offline

    HungryBagel

    Absolutely love this plugin! Can't wait until version 3. If I may make a suggestion —

    Other plugins like Showcase (http://forums.bukkit.org/threads/me...-show-off-and-sell-your-cool-items-803.17672/) allow you to type in the quantity to purchase. However, that's all it does. I'd love it if ChestShop's functionality was extended, so that if you type "Any Amount" or something like that on the second line, then when a user attempts to buy or sell, they can specify how much of that item.
     

Share This Page