[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

    mcpixx

    You
    Don't need to protect, if it's a shop, you don't need to, although you could protect it using shD LINEop, like this:
    FIRST LINE: NAME
    SECOND LINE: AMOUNT
    THIRD LINE: B 99999999999999 (As much that fit)
    FOURTH LINE: Dirt (Or any object really, doesn't have to be what you keep in there, 'cause no one will be able to pay)
    And there!! Easy!
     
  3. Offline

    mcpixx

    I meant: Don't need to protect, if it's a shop, you don't need to, although you could protect it using a shop, like this:
    FIRST LINE: NAME
    SECOND LINE: AMOUNT
    THIRD LINE: B 99999999999999 (As much that fit)
    FOURTH LINE: Dirt (Or any object really, doesn't have to be what you keep in there, 'cause no one will be able to pay)
    And there!! Easy!
    Lol ;)
     
  4. Offline

    Acrobot

    ~Alex
    That was probably Default HD, but I don't remember - it's a screenshot of probably Beta 1.5 or something.

    @[AFA]Archer
    1 - something like that was planned, but I will start working on it when I get home, which will be probably around 30.07

    2- well, you can use OptiFine for that - here you can blame Notch for making sign rendering really, really cpu-heavy

    Andreas Brisner
    Read the FAQ!

    mcpixx
    Sorry, but I can't read minds. I don't know what you mean by "doesn't work".
     
  5. Offline

    mcpixx

    Well, when I make a sign, it doesn't say "Shop successfully made!" and I don't know why, I put it on top of a chest and everything! :'(
     
  6. Offline

    Blatform

    Hello guys ... Sorry for my English, is google translator. I have a couple of problems with my new blocks. Basically I set bukkit with new blocks, chestshop wanted to try with these. I downloaded oddItem and I set the new blocks. When I write the sign (example):
    Blatform
    1
    B 1:1 S
    Copper

    I confirm it, and instead of seeing the name of the item, I see:
    Blatform
    1
    B 1:1 S
    X154

    But how is it possible? How can I fix it?

    P. S. = Even if I write in place of Copper, the id is the same thing.
     
  7. Offline

    Nerrion

    Hello.

    I don't want my regular members to be able to create a chestshop, but somehow they still can. How do I disable it for them? I gave the member group the negative (- -ChestShop.shop.create) node, but they're still able to create shops.
     
  8. Offline

    Andreas Brisner

    This is whats really wrong with you devs, why cannot it be up to US to decide who gets this?
    Default should be false!

    Permission not given == Shouldnt work, entire purpose of having a permissions system..
     
  9. Offline

    Acrobot

    Andreas Brisner
    This is what's really wrong with you users. You don't fully understand why this decision was made, yet you still blame us for that.

    Blame Bukkit's SuperPerms system - I am only utilizing it.
    Imagine server without any permission plugin - there are some like these - if I hadn't set the "default: true", they wouldn't be able to use ChestShop at all.

    I agree, it's not the perfect solution - in Nijikokun's Permissions 1/2/3 times, you could simply check if the permission plugin was present and if not, you could enable default nodes. Now, you can't simply check for a permission plugin.

    mcpixx
    Do you get any errors in the console?

    Blatform
    I understand you. Well, honestly, I haven't used any item mods for a long time, so I couldn't tell that it was happening, however I will check that, thanks.

    Nerrion
    I guess you're using PEX. PEX doesn't like standards, so to disable ChestShop creation, you should do -ChestShop.shop.create.* (with a ".*" at the end)
     
  10. Offline

    Blatform


    Oh, fantastic! I will wait anxiously the release of bug fixes :)
     
  11. Offline

    Andreas Brisner

    I have no understanding whatsoever that a server would not use a permissions system. I thought bukkit had one called "permissions.yml" in the server folder?

    I agree with you that its not a perfect solution. Its not even an acceptable solution (for me). I dont know if its a possible "solution" for you or not, but have two downloads? one for people that do have permission system, and one for those that doesnt?

    I spent alot of time trying to figure out why %ยค# my users still could buy/sell when I removed the permission. In no universe would I ever think this was the reason why :)

    And last: I didnt mean to come off as an asshole towards you. It was more of a generic thing, against superperms fracking my stuff up.
     
  12. Offline

    mcpixx

    Acrobot
    Uh ... Let me check.....
    I don't, but it I re-downloaded it and now it seems to be working. [chest]
     
  13. Offline

    Kaffir

    For Admin Shops, does there need to be a chest around the sign? Whenever I make a sign with Admin Shop as the first line it says Couldn't find a chest. When I place a chest then create the sign it acts like a normal player chest. Is this a permissions thing, or did I overlook something. I am the only user on my server atm, and am using v3.46.
     
  14. Offline

    Ruan

    Code:
    2012-07-13 12:21:05 [SEVERE] Could not pass event SignChangeEvent to ChestShop
    java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Long.parseLong(Unknown Source)
        at com.Acrobot.Breeze.Utils.MaterialUtil$Enchantment.getEnchantments(MaterialUtil.java:246)
        at com.Acrobot.Breeze.Utils.MaterialUtil.getEnchantments(MaterialUtil.java:229)
        at com.Acrobot.Breeze.Utils.MaterialUtil.getItem(MaterialUtil.java:182)
        at com.Acrobot.ChestShop.Listeners.Block.SignChange.onSignChange(SignChange.java:43)
        at sun.reflect.GeneratedMethodAccessor276.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)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1266)
        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 net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:622)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    
     
  15. Offline

    Nerrion

    Thanks, works good now.
     
  16. Offline

    Acrobot

    Andreas Brisner
    Sorry, I probably sounded rude too - no worries :p

    Unfortunately, that's not a solution - two files means more trouble with BukkitDev etc, and I think that a simple change from "default: true" to "default: op" in the plugin.yml (which can be found by opening ChestShop.jar with WinRAR/7Zip) would suffice.

    There are servers without permission plugins, believe me. (And by the way, permissions.yml isn't a permission system, you can read more about it on the wiki)

    I understand that SuperPerms is not perfect, but well - I didn't design it.

    mcpixx
    Oh well :)

    Kaffir
    To create an admin shop, you need to be an OP/have ChestShop.admin permission.

    Ruan
    Well, you need to tell me WHEN did this happen and WHAT was written on the sign (and which ChestShop version are you using)

    Nerrion
    OK :)
     
  17. Offline

    Dominic

    I'm getting a weird bug...maybe you can help me? Whenever I type /chestshop, I just get "/chestshop" returned to me in chat...What could that be?

    Here's the error:
    Code:
    2012-07-04 20:54:37 [SEVERE] Error occurred while enabling ChestShop v3.36 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/herocraftonline/dev/heroes/Heroes
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugin(pluginEnable.java:86)
        at com.Acrobot.ChestShop.Listeners.pluginEnable.initializePlugins(pluginEnable.java:37)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:54)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:381)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:197)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.ClassNotFoundException: com.herocraftonline.dev.heroes.Heroes
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
    It says that I am using 3.36 when I see I have 3.46 installed :\

    Anyway! Thanks for all your hard work. This is amazing man!!!!!

    EDIT: Nevermind! It has been resolved!!!!
     
  18. Offline

    Byakuya_Kuchiki

    You should add a /cs message ignore so if people spam buys my shop my chat wont be spammed by the items sold
     
  19. Offline

    Acrobot

    Dominic
    About the command - I don't know, ChestShop doesn't have any /chestshop command.

    Oh. I see it has been resolved :)

    Byakuya_Kuchiki
    You see, there is a "tickets" section on bukkitdev where you can post bugs/enhancements etc. This is on the list.
     
  20. Offline

    avp247

    Acrobot
    Hey need help with ChestShop for some reason when the server is on no-one can buy or sell even OP's and Owners. Absolutely no-one and if you can help please do because this is the best shop plugin for me and the server really needs it! [diamond]
     
  21. Offline

    Acrobot

    avp247
    Please don't use a weird font, it's not easy to read.

    Firstly, you need to tell me what do you mean by "can't buy and sell". Do you get any message in the chat? Do you get any errors in the console? How are you trying to buy/sell? How does the sign look like?
     
  22. Offline

    Chaos0808

    I have iconomychestshop and im having problems. It use to work fine until something happen and i cant buy or sell to other players. Also other players can open my chest.
     
  23. Offline

    Sketaful

    I believe I can give you a short answer without really knowing anything about this plugin:

    Please give more info.
    What other plugins do you use?
    Have you changed anything before this happened? (updated bukkit, added a plugin, etc)

    If you haven't added anything to the server, have you used something that a plugin added that you haven't used before? (If you have a portal plugin for example and you made the first portal now)
     
    Acrobot likes this.
  24. Offline

    Chaos0808

    thanks for responding i fix the problem already, but im still have trouble about not allowing a certain group to make chestshops btw im using PEX
     
  25. Offline

    Sketaful

    Do you need to make a group not able to make chestshops?

    Had to check the permissions need first. :p

    Anyway. To give the permission you just add the permission to the group/player:
    - ChestShop.shop.create

    To remove the permission using PEX you need an extra -
    - -ChestShop.shop.create

    You see the difference? Hope that helps.
     
    Acrobot likes this.
  26. Offline

    Chaos0808

    It doesnt work :( but thanks anyway! :) Any suggestions are welcome
     
  27. Offline

    Sketaful

    Make sure you spell it exactly the same with small and large letters etc.

    Also, you could post your permissions file here so we could have a look? :)
     
    Acrobot likes this.
  28. Offline

    Nickshelton80

  29. Offline

    RobeS

    I have plugin in my server called Residence when i create residence shop don't works in residences. What to do????

    [​IMG]
     
  30. Offline

    Acrobot

    RobeS
    Sorry, but I've got no clue. Also, you need to give me more information, like which CS version are you running, what error do you get, etc.

    Nickshelton80
    Yes, I know about it and I've fixed it, but I don't know if the fix really works, and I'm also on my laptop (which is old) because I'm on holidays, so I can't code here :/
     
  31. Offline

    conman

    The only promblem im having is that my admin shops run out of money??
    I changed the admin shops admin name to "Admin"
    The shop works but it just runs out of money saying owner does not have enough money.
    Im using:
    Chestshop=3.46
    iconomy=7.0(6.0 aprilfools?)
    permisionsex=A default Permissions Plugin generated by Permissionsex program
     

Share This Page