[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

    Mine4Tim

  3. Offline

    Sich

    yes yes, I understand. The user can create a shop for another iconomy account without any problem. At the moment that he have the good perm.
    But then, I need that the users with this perm, can access to the chest (like his own chest).

    Actually there is no interest to make a shop on another iconomy account, because the user can't take or add anything in the chest without destroying it..

    And nop, this is not above the restriction per group :)
     
  4. Offline

    Acrobot

    @Sich
    Oh right, forgot to add that:
    I forgot to add a section that lets the person stock the shop :p Forgive me :p

    @Mine4Tim
    It is for every CraftBukkit build, because they don't change that much - iConomy is command-only based.

    @ALEX22red
    Hey :)
    You are using an old CraftBukkit build, which probably doesn't have the things needed for ChestShop to run.
    You can find the newer version here:
    http://ci.bukkit.org/job/dev-CraftBukkit/1597/
     
  5. Offline

    tristonien

    i have a question.... so when i download the permissions do i copy the text and paste it into my pex? if not were do i put it so players can use the shops?
     
  6. Offline

    Acrobot

    @tristonien
    By default you don't need to do anything.
    Your players will be able to:
    - create shops
    - buy
    - sell

    If you don't want it, in PEX you should add a permission with a '-' before it, like:
    -ChestShop.shop.create
    so your line looks like:
    Code:
        - -ChestShop.shop.create
    
     
  7. Offline

    Sich

    ok ok, thanks, I will wait the next release :)
     
  8. Offline

    Zeigren

    I tried changing it and it still is doing the same thing. I can't create a normal shop or an admin shop. Maybe I'm just making the sign wrong? Yes I changed it to "Admin" instead of "Admin Shop"
    durp.png
     
  9. Offline

    JoneKone


    Has this happened or is it for ChestShop 4? Taxes goes to A person/account
     
  10. Offline

    Acrobot

    @JoneKone
    The tax option is already in game :p

    @Zeigren
    Oh, but you forgot the quantity :p
    It's
    Admin Shop
    1
    B 50:25 S
    Diamond
     
  11. Offline

    Zidkon

    I'm getting again the problem where EVERYBODY can create a shop, no matter if I negate the permission for them.

    I'm using bPermissions (Is same as PermBukkit, works with superperms), and I have negated the ^ChestShop.shop.create line, and players can Create shops normally ....... This is happening on ChestShop 3.31. iConomy 6 btw.
     
  12. Offline

    FritzHugo3

    Hi peoples I have a little problem and hope anybody can help me.
    installed Plugin's / Mod's
    Show Spoiler

    Buildcraft Version 2.2.8
    Redpower Version 2.0pr4 (Lighting, Wiring und World)
    Industrialcraft2 (noch nicht verfügbar)

    InvTweaks Version 1.34b
    ReiMinimap Version 2.9

    Iconomy Version 6.0.7
    Gold2Economy Version 1.4
    WurkItv Version 1.2.0
    CookieMonster Version 1.6.6

    WorldEdit Version 5.0
    WorldGuard Version 5.4 default
    AuthMe Version 2.5
    Safe Creeper Version 0.4

    ModloaderMP Version b1.0.1R1-r3
    minecraftforge-1.2.2-b1.0.1R1
    Register Version 1.5
    BoseEconomy Version 0.7.3
    my cheatsshop works fine, but the plugin goes with BoseEconomy-Plugin and not with Iconomy-Plugin. It means when i bye or sell something the items go to the inventory or out the inventory, but it change no money from the Iconomy-money.​
    sorry i know it's a little bit tricki to understand my bad english. I hope you can help nevertheless.​
    In iconomy i have "Euronen" (€)​
    BoseEconomy i have only becouse another plugin needs both (Iconomy and BoseEconomy). I have Coins​
    I bye something, he say you pay 1 coins and not "Euronen" (€)​
    [Wenn einer auf deutsch antwortet bin ich auch nicht böse ;-)]​
     
  13. Offline

    JoneKone

    Sorry about my lag of explaining, I can't find the "setting" where to insert the name of the account?
     
  14. Offline

    Acrobot

    @JoneKone
    The tax goes to the "SERVER_ECONOMY_ACCOUNT"

    @Zidkon
    Hmm, that's more of a bPermissions problem then. You should probably ask it in their topic.

    @FritzHugo3
    Pardon, Ich komme aus Polen , also Mein Deutsch ist nicht besonders gut.:p

    You need to edit the config in plugins/ChestShop/config.yml
    You have to put "iConomy" in the PREFERRED_ECONOMY_PLUGIN, so it looks like:
    PREFERRED_ECONOMY_PLUGIN: "iConomy"
     
  15. Offline

    FritzHugo3

    Thank you for answered, youre german was like as right ;-) very good.

    Mh i have saw that the BoseEconomy corrupt other plugins too :(. I have deleted and all is fine with the Chestshop.

    Thank you. maybe "WorkIt"-plugin problem
     
  16. Offline

    kotarakat4

    How to check my balance?
     
  17. Offline

    Kozzy68

    Hi,
    Iv noticed that Default users can create shops even without any chestshop create perm.
    Im using GM iconomy and R1 bukkit. and 3.31 chest shop. They have only - ChestShop.shop.buy
    - ChestShop.shop.sell
     
  18. Offline

    Acrobot

    @kotarakat4
    Well, you need an economy plugin. If you're using iConomy, you have to do /money
    @Kozzy68
    That's a feature of superperms.
    You need to add a "negative" node.
    Just add '-' before the permission:
    -ChestShop.shop.create
     
  19. Offline

    Zidkon

    I don't think is bPermissions since all other plugins works right for me :/ and I got this problem before with ChestShop, the only thing was I didn't negate the node, you told me to negate, I did and it worked, now you updated and it doesn't work again? I'm gonna test and ask anyway at every part to see where is the problem and I tell you back. You should add support for all Permissions plugins (Except Permissions 3x that is dead), not only for PermBukkit .... they are all good permissions plugins, Evenprime tested them and they are all working very well.
     
  20. Offline

    Acrobot

    @Zidkon
    Hmm... This is a problem then.
    I have to check it, however there is no reason why this would be broken.

    By the way - all permission plugins are supported, even Permissions 2/3.

    There is a standard named "SuperPermissions", which is integrated in bukkit and every permission plugin that uses it (every new one) is supported.
     
  21. Offline

    tristonien

    ok ummmm lol sorry I also have pexchat witch I didnt know had anything to do with permissions but apparently it is my permissions.... I took half of the permissions you had allready made and put them in pexchat under one of my ranks, and thats it.
     
  22. Offline

    Zidkon

    I understand that and actually I found the problem.

    I was negating only ChestShop.shop.create, and that doesn't works. I have to negate both:

    - ^ChestShop.shop.create
    - ^ChestShop.shop.create.*

    It doesn't work either if I only negate ChestShop.shop.create.*, I have to negate both.

    Please do a check on that :) because permissions plugin is not working wrong, it may be some miss check that you are making inside >.<

    Thanks for helping bro.
     
  23. Offline

    Acrobot

    @Zidkon
    Hmm... That's REALLY weird. It shouldn't do that at all o.0
    Thanks for the report though :)
     
  24. Offline

    Zidkon

    No problem, Hope anyway this help other peoples too.

    Men, 1 more question that I found new.

    Can explain a little more what does this Config do?:

    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
    #Do you want to allow other players to build a shop on a block where there's one already?

    What exactly you mean if you can further explain please :D
     
  25. Offline

    Acrobot

    @Zidkon
    If a player places a shop sign on a block, noone else can.
    If you turn ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK on, there can be more than 1 sign by different people on the same block.
     
  26. Offline

    Sich

    More than 1 shop on the same chest ?
    Only one chest but multiple sign for multiple user or multiple items ?
     
  27. Offline

    Zidkon

    I think he means like you put a chest, and behind the chest u put 2 dirt blocks on a row, for placing the sign over the chest. If you try to place a sign on the other faces of the same dirt block the first sign was placed, you can't unless you are the same player (of course this will need a chest below of the other face)
     
  28. Offline

    Acrobot

    Yep, exactly like @Zidkon said.
     
  29. Offline

    Kozzy68

    That is quite wierd. I assume that some perms are granted by default than. But how can I know wich ones are those. That makes me cry. Could be another perms from those 200 I have configured that works like that and I have no clue about it.
    O well Thanks for explanation. It was great help.
     
  30. Offline

    Acrobot

    @Kozzy68
    Well, you can also just go into ChestShop.jar with WinRAR, open plugin.yml and delete the whole "permissions" section.
     
  31. Offline

    Kozzy68

    Thanks for re, I think I will just hope and try to test all plugins commands instead. O and more more tiny thing. Im using shop creation price and refund also. Refund works nice but it should be great it it could give player some message upon sign removal like " you have been refunded xx money"
     

Share This Page