[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

    Ugh, google translate translated it badly, please write in your original language(I guess french) maybe? :p

    Google translated to french:
    Google translate traduire c'est mal, s'il vous plaît écrivez dans votre langue d'origine peut-être?

    Also, if you have your shop set up, if everything's right it should take the item out of the chest.
    Mind sending your server log when you buy a thing?
     
  3. Offline

    Nytemare3701

    Acrobot, is this usable with 493?
     
  4. Offline

    Acrobot

    17:35:35 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-493-g8b5496e-b493jnks (MC: 1.3)

    :)

    This is the server I'm testing the plugin on, so yes, it works :)

    EDIT: I'm going to have my English lessons, I'll be back in 2 hours or so.
     
  5. Offline

    otakey

    Merci désolé pour le post plus haut !!!

    tout fonctionne trés Bien GG a toi Acrobot :)
     
  6. Offline

    Catox

    I kinda feel like I'm very transparent...



    Unless you really want chests to be multiple-products selling tools (one chest that will sell stones, then sand, then diamons, then whatever) you have your solution here : stop udating the sign after each sale and just verify that the sale of the article indicated on the sign is possible.

    This way when you have :
    Sign : Catox 1 1 Cobblestone
    Chest : Sand
    A right click on the the sign wouldn't give you a sand : it would tell you "Out of Stock"
     
  7. Offline

    Acrobot

    Ugh, no, that's not what I want to do.
    I want it to show, what will be sold, even if the chest's updated.

    And I need an event, like inventory_changed for chest - but it's not in the API yet (I think, correct me if I'm wrong).

    I really thank you that you try to suggest the changes to me, but I really want to do it my way.
     
  8. Offline

    Delodien

    Hey, I got a permissions problem :-(

    When I go to make a sign/shop, it just says:

    [Permissions] You can't make shops!

    Not sure why it's happening, I'm set as an admin in the permissions config with no restrictions on commands...

    P.S Sorry if it's been asked before!
     
  9. Offline

    Acrobot

    Old permissions or corrupted file.

    Please paste it on some nopaste site.
     
  10. Offline

    Delodien

    Not too sure what you mean?

    I have the latest Permissions (2.5.3)

    EDIT: Fixed it, was a corrupted config file [​IMG] Awesome plugin
     
  11. Offline

    Catox

    Thank you for your answer ^_^

    You know, you can actualy do both : Checking if the sale is possible AND updating the sign with new content.
    A first clic on a "wrong" sign would prevent the sale but update the text, and a second clic would autorize a transaction where you know what you're buying.

    That would be a fix to the problem occuring right now, you could take it away as soon as you find a way to update the sign dynamicaly with the chest.

    I think we've got a dev working on inventory movements at the moment on our server, I'll ask him if he would have info for you.
     
  12. Offline

    Acrobot

    OK, here it is, version 0.85.
    If item on sign isn't the item you'll receive, it won't buy anything and it will update the sign.
     
  13. Offline

    Nurgo

    I think that your plugin has a great potential because it's the most user-friendly, but you could do it even simpler to use with the following syntax:

    Code:
    What the user writes       What is displayed
    
    [             ]            [ <user name> ]
    [      64     ]     =>     [    Qty:64   ]
    [    95/105   ]            [  B:95/S:105 ]    <= buy price / sell price
    [             ]            [ COBBLESTONE ]
    
    Another example, for a sell (or buy) only shop:
    
    [             ]            [ <user name> ]
    [      64     ]     =>     [    Qty:64   ]
    [    0/105    ]            [   Sell:105  ]    <= sell price only
    [             ]            [ COBBLESTONE ]
    Also, you should find a way to fix the issue with the alias not working for some items (like cobblestone), because users shouldn't have to know the numerical values of each item. In the worst case, you just have to use a mapping "num value / item name".

    I think that with those improvements your plugin could be by far the best local shop system for Minecraft :)

    Keep up the good work!
     
  14. Offline

    Acrobot

    Nurgo - use noID and it will automatically get the items from the chest, and workaround for item aliases in selling - use noID, and let it show that there's for example cobblestone inside :)

    And I like your idea very much, I think I will implement it when I can.
     
  15. Offline

    Nurgo

    Thanks for your reply Acrobot, I will try this.
    And what do you think about the syntax that I proposed?
     
  16. Offline

    Acrobot

    Yeah, my browser crashed when I was posting this :)
    I like it, it's almost like I wanted to do this, I'm 90% sure it'll be implemented if I have some time :)
     
  17. Offline

    PHOQUED

    Hello, i'm French please use google traduction to read me..

    J'ai correctement installer le plugin, celui ci et celui de l'hébergeur Verygames qui est mis en avant par le site.
    Mes quand j'achète, l'argent ne se déduit pas et ne se crédite pas.

    Et après l'on me dit que je n'est plus d'argent alors que je suis toujours à 30 coin.

    Aidez moi s'il vous plaie..
     
  18. Offline

    Adellus

    I dont think i understand how selling/buying works. if you have a shop set up like
    adellus
    64
    8
    Dirt
    that is set up to by dirt from players and another one like

    adellus
    64
    20
    Dirt

    that is set up to sell dirt to players, what keeps a player from selling dirt to the second shop instead of the first one?
     
  19. Offline

    Twisted

    New version seems to be working great, the sign update fix works perfectly.
     
  20. Offline

    Thyme676

    Is there a way to make an item buy-able but not sell-able? Like say I would like to have a chest that people can buy cobblestone from, but not sell back to it? I can't seem to find a way to do that w/o disabling sell for the user all together.
     
  21. Offline

    Incendia

    Can you please post a dropbox link or upload your builds to github aswell? Attachment links are not wget friendly.
     
  22. Offline

    yottabyte

    I wish this had built in protection for sign and chest. I don't want to clutter a RP server with chest protection stuff.
     
  23. Offline

    Kainzo

    This updated for 493?
     
  24. Offline

    Xylogeist

    Idea: Allow for chests with multiple items. When you drag the item to your inventory, the item re-appears in the store, but text shows up in your chat that says "Purchase ITEM_NAME? Y / N" and then you type Y or N to confirm. That or just let them drag it in if they have the money.
     
  25. Offline

    Acrobot

    @PHOQUED - do you use newest iConomy with SQLite or MySQL?
    I think it doesn't work with Flatfiles.

    @Kainzo - Yes

    @Thyme -
    you can use permissions to sell ATM, I will change it like "S 10:5 B", so it sells for 10 and buys for 5.
     
  26. Offline

    Niels

    Love the plugin!
    But I cant fully get it to work.
    Whenever I create a shop it says I succesfully created 1.
    But then whenever someone tries to buy something, they right click and get an error saying that they cant use the shop.
    What am I doing wrong, please help me !:)
    Thanks in advance
     
  27. Offline

    Acrobot

    Do you have permissions (newest one) and did you set them up properly? Do other permission plugins work?
     
  28. Offline

    PHOQUED

    @Acrobot Je ne sais pas car c'est verygames qui installe tout .. Dans le dossier Iconomy j'ai bien un fichier qui se nomme minecraft.sqlite donc je ne suis pas sur.

    => Je viens de demander à Verygames.
     
  29. Offline

    Acrobot

    I think it's the SQLite, so it SHOULD be working correctly :/

    I guess it's the iConomy bug or something, I'm not sure tho...
     
  30. Offline

    Seven50six6

    It's working perfectly for me with SqLite.

    Also, is there a way to make it so that people can only buy from your shops and not sell and buy? People keep selling items to me that I want to sell.

    And is there a way to make it so Op's can't go running in peoples doors, chests, and other stuff? We got this Op that likes to visit you while you aren't looking and the doors are locked.
     
  31. Offline

    Acrobot

    @Seven50six6

    The 1st one - working on it, I'll add it soon.

    2nd one - you could add some "-" line in Permissions config, or just give him other rank.
     

Share This Page