[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

    @imaxorz
    I think it's more of EBean issues, however, I MIGHT know why it's happening: either BukkitScheduler is inaccurate, or Transaction list is somehow overwritten.
     
  3. Offline

    forceserver

    how to make shop no buy or no sell??
    example
    sign
    admin shop
    1
    B no:1 S
    stone

    how make ??
     
  4. Use in B : S line "0" (zero) instead of a normal price:
    admin shop
    1
    B 0:1 S
    stone
    -- Player wont be able to buy things.
     
  5. Acrobot, tell users about "free" and "0" functions on the signs (add to the thread).
    For example:
    If you write free on your sign instead a price, player will buy/sell the item for free.
    If you write "0" (zero) on your sign instead a price, player won't be able to buy/sell the item.
     
  6. Offline

    Raycrash

    Haha Thanks ;D Awesome plugin btw ;)
     
  7. Offline

    Acrobot

    @VADemon
    Yeah, BTW, you can just write
    B 20
    for users just to buy, same with sell.
    Also, sell can be on the left side, like:
    S 20:20 B

    @Raycrash
    Thanks :)
     
  8. Offline

    wildsteelerfan

    awesome!!!! but i dont really use iconomy so i use tradecraft sorry
     
  9. Offline

    Acrobot

    @wildsteelerfan
    That's no problem, I understand that this plugin might not suit everyone, but I am still trying to make it easy, fast and lightweight, and of course usable :)
     
  10. Offline

    psycowithespn

    I am having a problem with your plugin. I gave the default group of my permissions file the ChestShop.shop.* and they are only able to buy from chests instead of buying and selling. What is wrong?
     
  11. Offline

    Acrobot

    @psycowithespn
    Wow, that question is repeated so often that I should probably add it into topic :)
    That's spawn protection.
    You need to go to bukkit.yml, change spawn-radius to 0 :)
     
  12. Offline

    psycowithespn

    Oh wow. That is kind of stupid of me. Thanks a lot. :D
     
  13. Offline

    Acrobot

    @psycowithespn
    Naah, no problem :)
    In fact, I like helping people.
     
  14. Offline

    connorda

    OMGMOGMOGMOGMG i have essentials and i can make people builder default admin semiadmin or moderator using /manpromote but if theyre any lower than semiadmin they cant buy stuff and i dont want everyone one my server having to be promoted to a semiadmin or admin D: i have tried writing [restricted] builder moderator default
     
  15. Offline

    Acrobot

    @connorda
    Hmm?
    ChestShop.shop.buy is the permission you are looking for. The restricted sign's behavior will change soon - it'll check for permissions like ChestShop.group.asd
    If you just want people to buy things, just add ChestShop.shop.buy to builder/whatever permissions.
    Same with sell - ChestShop.shop.sell
     
  16. Offline

    connorda

    i could never get permission working for me its just sitting their in my plugins folder
     
  17. Offline

    connorda

    do i need bpermissions or permissionsex?
     
  18. Offline

    connorda

    with bpermissions i open it up theres plugin.yml and then where do i write chestshop.shop.buy?
     
  19. Offline

    Acrobot

    @connorda
    You need whatever permissions system you use, for example, if you use EssentialsGroupManager and EssentialsGroupBridge, just throw away other ones, like PermissionsEx and BPermissions, and use the one which you have configured.
    Then, add the ChestShop.shop.buy permission to EssentialsGroupManager config.
    http://www.youtube.com/results?search_query=groupManager+tutorial
     
  20. Offline

    connorda

    THX WORKING PERFECTO
     
  21. Offline

    Acrobot

  22. Offline

    connorda

    fqailed again ok get this since i wrote in groups.yml i now cant do /manpromote so everyone except me is a default
     
  23. Offline

    Acrobot

    @connorda
    Edit users.yml, add yourself to admins :)
    BTW, why did you demote everyone?
     
  24. Offline

    Stephen304

    I get this error, just upgraded after craftbukkituptodate gave me a bad update I just downloaded the latest from here (3.03)
    Code:
    18:34:30 [SEVERE] Could not pass event SIGN_CHANGE to ChestShop
    java.lang.IncompatibleClassChangeError: Expecting non-static method info.somethi
    ngodd.bukkit.OddItem.OddItem.getItemStack(Ljava/lang/String;)Lorg/bukkit/invento
    ry/ItemStack;
            at com.Acrobot.ChestShop.Items.Odd.returnItemStack(Odd.java:18)
            at com.Acrobot.ChestShop.Items.Items.getFromOddItem(Items.java:42)
            at com.Acrobot.ChestShop.Items.Items.getItemStack(Items.java:32)
            at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.ja
    va:38)
            at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.j
    ava:469)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:994)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :478)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    RTPONG++
    P.S. This is when I remove any sign.
     
  25. Offline

    Dustin545

    can you have a shop that you can just sell stuff to it dosent have to be a sertain stack
     
  26. Offline

    Epics

    Sell permission node doesn't appear to be working. Users can buy but not sell with the​
    - 'ChestShop.shop.sell'​
    - CraftBukkit 1060 1.7.3
    - ChestShop 3.02
    - Your economy plugin (iConomy? BOSEconomy? other one?) iConomy
    - Have you got any Permission plugin? Which one? Permissions 3.1.6 (Yeti)
     
  27. Offline

    Hamad

    I have permissionsEx, so i added ChestShop.shop.create and ChestShop.shop.buy and ChestShop.shop.sell to Members but they get you dont have permission to access this chest, so i tested my self by making me a Member, and i added my own chest on my own wall, my owwn sign and i get this error, I use LWC and i tried placing in config which is use LWC as protection, i set true and also for signs, i reload the server and tried again, same error but i get sign duplication :/, I am using ChestShop 3.0, thanks
     
  28. Offline

    Acrobot

    @Dustin545
    Not really. I'll be working on that.

    @Hamad
    Try the newest ChestShop, it fixed a bug with LWC.

    @Epics
    If you can both buy and sell, and your users can only buy, go to bukkit.yml and change spawn-radius to 0.

    @Stephen304
    Oh well, it seems like either OddItem updated, or you use an old version. I'll check that, thanks.
     
  29. Offline

    Acrobot

  30. Offline

    grand92

    Okay guys i installed the plugin and its ok but when i try to make a shop its says "You can't create this type of shop"
    Please help me :)
     
  31. Offline

    Acrobot

    @grand92
    What Permissions system have you got?
    You should add ChestShop.shop.create to your permissions config.
     

Share This Page