[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

    bluehasia
    I don't exactly understand your question.

    Admins can make chest shops for normal players, and the player for whom the shop is made CAN use the shop, as in
    RustyDagger
    I can't do that, I only use Java's number parsing, so anything that is correct to Java is correct do me.

    By the way, don't you think that a player that thinks he can abuse a shop deserves it a bit?

    JTAKER
    I need to fix that, for now use 3.39
     
  3. Offline

    RustyDagger

    yes i

    Yes i do think they deserve it a little but the amount they are getting ripped is a lot with our prices and with 30,000 players logged in in a week the crying is getting a bit old ;/ btw grate plugin has held its own with the load :D
     
  4. Offline

    Acrobot

    RustyDagger

    Hmm, you can just tempban players abusing that, put it in rules, I don't know - I can't just make prices with dot invalid, because many others use it for good things.
     
  5. Offline

    Crankmast3r

    I have updated everything(WorldGuard and ChestShop) both reloaded config's and all new folders and still dosnt work for me.

    thanks
    Crankmaster
     
  6. Offline

    Acrobot

    Crankmast3r
    Ok, I'm kind of re-writing some parts of the code, so I hope it will get fixed :D
     
  7. Offline

    Switch0r

    Yeah atm it does not work with Worldguard or Towny but i am sure he will fix it soon.
     
  8. Acrobot
    using ur plugin
    Code:
     
    2012-04-24 21:24:42 [SEVERE] Could not pass event SignChangeEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1265)
    at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at com.Acrobot.ChestShop.Config.Config.getDouble(Config.java:41)
    at com.Acrobot.ChestShop.Config.Config.getDouble(Config.java:37)
    at com.Acrobot.ChestShop.Utils.uHeroes.addHeroExp(uHeroes.java:22)
    at com.Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 11 more
    When creating shop for SERVER, i get this :D
     
  9. Offline

    Acrobot

  10. Offline

    westcrowspopper

    hi ive set up my shop but i can only sell to the chest and cant buy for some reason
     
  11. Offline

    westcrowspopper

    hi for some reason i can buy and sell but my money is staying stationary yet for everyone else its changing.
    CB version is: git-bukkit-1.2.5-R1.0-b2149jnks
    ChestShop version is: 3.4
    using Iconomy
    and using essentials permissions
     
  12. Offline

    generilisk

    Off the top of my head, I don't remember it, but there's a permissions node to use shopchests free. That would be my guess of what you're seeing.
     
  13. Offline

    vax35

    Hi !

    Very nice plugin but I have a problem with permissions, all players can create their shop without permissions !
    I have PEX, towny and iConomy (and others plugins). Do you know why they can do it ?

    Thx :)
     
  14. Offline

    Mudkipz

    - CraftBukkit version- Craftbukkit 1.2.5 R1.0-B2149JNKS
    - ChestShop version- 3.4
    - Your economy plugin- iConomy
    - Have you got any Permission plugin? Groupmanager
    When I try to place 2 chests next to each other it says you don't have permission to do that. And i have the Chestshop.* perm.
     
  15. Offline

    Legokid184

    - CraftBukkit bukkit-1.1-R4-B1938

    -
    ChestShop 3.35

    - Your economy plugin iConomy
    - Have you got any Permission plugin? Yes Group Manger
    I run a Tekkit server and my players can buy but they cant sell. I dont know if its a protection glitch but i dont think so. Please help!
     
  16. Offline

    Tanite

    Trying to configure this plugin for multi-world under PEX is going to drive me to drink.

    I tried giving these both to the member rank:

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

    I gave it to them under the permission section for one world only. There are no negating or inheriting permissions. It just doesn't allow me to make a sign at all ("you can't create this type of shop").
     
  17. Offline

    Acrobot

    Tanite
    I'm sorry, if that's the exact error, I don't know what's wrong - it's the permission plugin that causes that.

    Legokid184
    It seems like you just ignored the text above the stuff you copied o.0

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

    Also, I know Tekkit is Tekkit, but it's a very outdated Bukkit build, so you should probably use older ChestShop with it.

    Mudkipz
    Yes, I know, it's an error with WG protection, use 3.39 at the moment.

    vax35
    Just add a negative node for your default group, "-ChestShop.shop.create.*"
     
    Legokid184 likes this.
  18. Offline

    Acrobot

    Mudkipz
    Also, could you PM me the IP to your server? I want to reproduce the error, but I can't :/
     
  19. Offline

    vax35

    Hi !

    Thx for the reply but I have still the problem.

    I have the lastest version of PEX and chestshop 3.4.

    People without permissions are allowed to build shop... And people with the negative node "-ChestShop.shop.create.*" are allowed too...
     
  20. Offline

    Will Battel

    I am also having a slight issue :p
    The buying/selling in my shops don't affect the buyer's balance, so i.e.:

    Player starts with $100
    Buys something for $50
    Still has $100 after

    I am using iConomy and I watched videos and it just won't... how to say it... Link to the plugin's money. And yes I changed it in the Config.yml to iConomy as the preferred plugin.

    If anyone has advice/has encountered it before... Please help me! :)
     
  21. Offline

    Legokid184

    Thanks and no it uses the new chests thanks alot!
     
  22. Offline

    generilisk

    check that user's permissions to see if they have ChestShop.nofee
     
  23. Offline

    Will Battel

    Ok so originally they didn't have that permission, then I added it to test, but still no success, any other thoughts? lol I feel like an idiot that everyone else can do it fine... :p
     
  24. Offline

    generilisk

    That permission node allows people to shop with no fees, I was worried they were getting it somehow on accident.
     
  25. Offline

    isoccerplayer

    Does ChestShop allow aliases for Item Names? Like, instead of putting an ID, is there a way to make an alias name for that ID?
     
  26. Offline

    Will Battel

    oh ok, hmmm well I'm stumped, I've tried re-installing and stuff... IDK, any help from anyone is appreciated ;)
     
  27. Offline

    Will Battel

    I followed all of the videos exactly and I tried with essentials with no luck, so I think it is a ChestShop problem but you never know... :p
     
  28. Offline

    Lahvicka

    Hi !

    Thx for the reply but I have still the problem.

    I have the lastest version of PEX and chestshop 3.4.

    People without permissions are allowed to build shop... And people with the negative node "-ChestShop.shop.create.*" are allowed too...
     
  29. Offline

    where

    The server I play on has a problem where armour with a protection enchantment cannot be sold, it always says that the shop is out of stock. All other enchanted items work fine, as do regular items. I was wondering if anyone knew a way to fix this. :)

    Craftbukkit version is git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    ChestShop version is 3.39
    BOSEconomy
    Not sure which permissions plugin.
     
  30. Offline

    Acrobot

Share This Page