[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

    SpiralCityOwner

    Do you need a permissions plugin for this to work?
     
  3. Offline

    Acrobot

    @SpiralCityOwner
    Nope.
    It works with OP/non-op system as well.
    OPs will be able to create Admin Shops/Open everyone's chests/Break everyone's shops,
    and normal people will be able to create shops/buy/sell
    @cnaude
    EDIT: Okay, it's a nice suggestion.

    @plataneroo
    You need to add ChestShop.shop.* (that contains 3 permissions) to your permission file.
     
  4. Offline

    plataneroo

    It still says: "you're not allowed to create this type of shop."
     
  5. Offline

    Acrobot

    @plataneroo
    Can you post your Permissions config?
     
  6. Offline

    plataneroo

    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: false
    inheritance:
    Member:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'warpplugin.warp'
    - 'econplugin.basic.*'
    - 'localshops.buy'
    - 'localshops.sell'
    - 'ChestShop.shop.*'
    - 'general.items'
    - 'general.spawn'
    - 'general.spawn.set'

    Moderator:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Member
    permissions:
    - 'modplugin.ban'
    - 'modplugin.kick'
    - 'modplugin.unban'
    - 'localshops.*'
    - 'ChestShop.mod'
    - 'general.teleport.here'
    - 'general.teleport'
    - 'general.time'
    - 'general.player-info'

    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Moderator
    permissions:
    - '*'
    - 'ChestShop.admin'
    - 'ChestShop.shop.*'

    users:
    platanero:
    groups:
    - Admins
    permissions:
    - '*'
    - 'ChestShops.shop.*'
    - 'ChestShops.Admin'
    remyafca:
    groups:
    - Admins
    permissions:
    - '*'
     
  7. Offline

    plataneroo

    The spaces are correct in the file, they're just gone now because of the posting ;o
     
  8. Offline

    Acrobot

    @plataneroo
    You could paste it on pastebin.com :p
    It seems like your permissions config is fine.
    - What are you putting on the sign?
    - Are you sure you haven't got old iConomyChestShop.jar?
     
  9. Offline

    plataneroo

    The sign (trying to sell stone for instance):

    -------------------------------

    1
    5
    STONE
    -------------------------------

    I downloaded it yesterday from this forum thread. The jar is called ChestShop.jar

    I've been figuring out for ages but I can't find the problem..
     
  10. Offline

    Acrobot

    :/
    Have you got a teamViewer?
    If so, PM me your details (ID/PW).
    If not, download it and /\
     
  11. Offline

    plataneroo

    Before I download it I must tell you that I bought this server I'm using.
    I can manage all the files from a control panel called Multicraft.

    I don't know if TeamViewer is about sharing maps and folders? Because these aren't on my computer but on the control panel ;o
     
  12. Offline

    Acrobot

  13. Offline

    cnaude

    I ran into this same problem on my server. I ended up using the individual nodes instead of wildcard. Now it works great.
    - ChestShop.shop.create
    - ChestShop.shop.buy
    - ChestShop.shop.sell
     
  14. Offline

    HockeyMike24

    People on my server cannot destroy the signs over the chest it just re-appears.

    I have Spout and when a shop owner click there sign the chest opens.
     
  15. Offline

    crash965

    Thank you good sir. It was the grilled pork thing :p
     
  16. Offline

    Acrobot

    @cnaude
    Nope, the problem was that he was using both GroupManager and Permissions. I deleted the GroupManagerBridge, and it worked.

    @HockeyMike24
    Spout has nothing to do with it.
    You need to SNEAK to destroy the sign.
     
  17. Offline

    Dziobaczek

    Hey. I have problem with Chest Shop on my server... When i make a board with "Admin Shop" and prices i see "shop succesfully created!" on chat, but when i want to buy or sell something i click on board i can't buy or sell anything and nothing happend on chat... I use iconomy and have good permissions... Help me...
    PS. Sorry for my english :)
     
  18. Offline

    Acrobot

    @Dziobaczek
    Siema :)
    Wyskakuje ci może coś w konsoli?
    Jeśli nie, sprawdź spawn-radius w bukkit.yml - powinien być ustawiony na 0, jeśli nie - zmień.

    ENG:
    Hey :)
    Do you get any errors in the console?
    If not, check spawn-radius in bukkit.yml - it should be set to 0, if not - change it.
     
  19. Offline

    Dziobaczek

    W konsoli nic się nie pokazuje nawet o utworzeniu sklepu. Zmiana radius'a nie pomogła..
     
  20. Offline

    Acrobot

    @Dziobaczek
    Hmm...
    Jakiej wersji ChestShopa używasz? (/csversion)
    Oraz.
    Jakiej wersji CraftBukkita używasz? (/version)
     
  21. Offline

    Dziobaczek

    W panelu mam do wyboru kilka wersji bukkita to wybrałem Craftbukkit 1.7 build #1060
    ChestShop wersja 3.02
     
  22. Offline

    Acrobot

    @Dziobaczek
    Wszystko poprawne :/

    Nie mam pojęcia, w czym jest błąd. Masz może TeamViewer? Wyślij mi na PM id/pw.
     
  23. Offline

    Phlegm

  24. Offline

    erdrickk

    Goddammit Can I please get an English translation to Dziobaczek ' s problem a few replies up.... I have this same issue and I can't read that.
     
  25. Offline

    Acrobot

    @erdrickk
    He had 3rd line like:
    20 B 20 S

    So I helped him - he needed to put a colon between.
    Like:
    20 B: 20 S
     
  26. Offline

    erdrickk

    lol thanks and I guess that wasn't quite my problem

    I had a ton of admin shops set up with iChestShop (before 3.*) and when I upgraded to 3.02 users weren't able to Sell to the Admin Chest Shops..... I noticed in the config an area to specify an account name and I entered my Admin name and made sure I had Tons of money.

    It still didn't work. Someone on my server suggested remaking the signs - I will give that a go tonight.
     
  27. Offline

    Acrobot

    @erdrickk
    2 possible problems
    - you didn't change permissions from iConomyChestShop.blah to ChestShop.blah
    - server.radius in bukkit.yml isn't set to 0 (it should be set to 0)
     
  28. Offline

    erdrickk

    I've already had the new permissions changed but I've never used or edited the bukkit.yml file before - do I still need to do this?
     
  29. Offline

    Acrobot

    @erdrickk
    Yeah, especially with your issue - they weren't able to SELL to shops :)
     
  30. Offline

    HollyGemers21

    this is not working is say me
    java.lang.NullPointerException
    at com.Acrobot.ChestShop.Economy.hasAccount(Economy.java:14)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:116)
    at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:35)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:77)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:63)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    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)
    2011-08-26 23:11:16 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
     
  31. Offline

    Acrobot

    @HollyGemers21
    Have you got one of those?
    - iConomy
    - BOSEconomy
    - Essentials Eco
    - MultiCurrency?
     

Share This Page