[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

  3. Offline

    Chrisbeee

    I'm a HUUGE Noob where do I put the groups.yml
     
  4. Offline

    Emolk

    @Acrobot
    Thank you so much! sorry im new with servers and got confused with the source :)
     
  5. Offline

    Acrobot

    @Chrisbeee
    If you use EssentialsPermissions,
    It's in
    EssentialsGroupManager\worlds\<your_map_name_here>

    @Emolk
    You're welcome :)
     
  6. Offline

    Chrisbeee

    It says there is no group bluefaction for player aminer or something like that and a long line of errors.
     
  7. Offline

    itorrent

    @Acrobot
    Btw which CraftBukkit build are u using?
    im using #527
     
  8. Offline

    Emolk

    ok, now when a player right clicks the sign it says they cant buy from shops. ??
     
  9. Offline

    Acrobot

  10. Offline

    itorrent

    U need to configure the "nodes" in the permission plugins's config. located at /plugin/permissions/config.yml

    NODES
    Code:
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.use'
    - 'iConomyChestShop.shop.sell'
    And u should rename the "config.yml" file to whatever ur world is called.
    For example. my worlds name is "world" and therefor the "config.yml" should be renamed to "world.yml" :)
     
  11. Offline

    Emolk

    where do i place the nodes?
     
  12. Offline

    Acrobot

  13. Offline

    Chrisbeee

    Do you have teamviewer to help me with, I can make shops but no one can buy anything from them or do anything with the sign.
     
  14. Offline

    Acrobot

    Sure
    Mind posting your id in conversation?
     
  15. Offline

    Chrisbeee

    And the Pass? And its updating so please wait a sec :D
     
  16. Offline

    Acrobot

    Yeah, and the pass :>

    Not here!
    Delete it!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 8, 2016
  17. Offline

    itorrent

    !!!PRINT SCREEN!!!

    nah i wont use it, just messing with ya xD
     
  18. Offline

    Paic

    Hey, my iConomyChest shop was loaded, but when I use à sign : [Shop] No config file, but, there is a config file !
    What's wrong ?
     
  19. Offline

    itorrent

    Most likly u forgot to cop the "iConomyChestShop" folder into the /plugin directory.

    I don't know if the plugin writes its own config.yml file if theres isn't one.
     
  20. Offline

    Paic

    I'm using Verygames Minecraft VQS and, config.yml was in /minecraft/craftbukkit/plugins/iConomyChestShop
    So, no, my iConomyChestShop folder is in /plugins
     
  21. Offline

    sexygob

    Code:
    Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NullPointerException
            at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.hasPermissions(iConomyChestShopBlockListener.java:56)
            at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onSignChange(iConomyChestShopBlockListener.java:567)
            at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:252)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:812)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    
    i have this probleme when i whant finish my sign
     
  22. Offline

    itorrent

    @sexygob
    Download the latest iConomyChestShop plugin. and replace it with the old one :)

    Thats the only solution i have for now.
     
  23. Offline

    Emolk

    @Acrobot

    Thanks for your help it all works now! ill make a video on how to use your mod soon :p
     
  24. Offline

    Paic

    EDIT :

    Ok so now, The error is : [Shop] Incorrect 'position' in config !
    but in config, position is set to DOWN, and the chets is under the sign.

    Code:
    00:27:44 [SEVERE] Could not pass event BLOCK_BREAK to iConomyChestShop
    java.lang.IllegalArgumentException: No enum const class org.bukkit.block.BlockFa
    ce.
    at java.lang.Enum.valueOf(Enum.java:196)
    at org.bukkit.block.BlockFace.valueOf(BlockFace.java:6)
    at com.Acrobot.iConomyChestShop.iConomyChestShopBlockListener.onBlockBre
    ak(iConomyChestShopBlockListener.java:47)
    at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.j
    ava:309)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:112
    )
    at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:77)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:370)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  25. Offline

    itorrent

    @Paic
    @Emolk
    Is going to do a Video Tutorial on how to use it :) So be sure to look out for that!!!
     
  26. Offline

    Paic

    Oh yeah! Really thanks! I wait ! [​IMG]
     
  27. Offline

    Acrobot

    @Paic
    I have it in the first post, you have incorrect position on config :)
    position: 'DOWN'

    Or you haven't got the config file pasted.

    @itorrent
    Really, really thanks :)
     
  28. Offline

    itorrent

    @Acrobot
    Thank you! I really like to help people with theses kinda things :S dunno why, i just do :D
     
  29. Offline

    Acrobot

  30. Offline

    Emolk

    its going to be in-game use not setting the actual mod up, just how to buy, sell and set up shops
     
  31. Offline

    itorrent

    @Emolk
    I think that should be enough ;D The biggest issue that i've noticed is that people doesn't know how to format the signs correctly.
     

Share This Page