[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

    Ethrock

    something that I would be interested in seeing is the ability to have 'mixed stock' chests. Mainly for example, I run a potions shop on my server, and when somebody places an order sometimes it takes a little while to get it. If they have three different kinds of potions, what I would like to be able to do is make a chest, put their order into it (all of the three types together) and put a single price, so when they buy it they receive the entire chests inventory. Another variant would allow them to receive one random item from the chest (which would be good for a giving tree style chest shop).

    Any possibilities or workarounds.
     
  3. Offline

    Adrenaline

    Bukkit 1.2.5 # 2155
    ChestShop 3.40
    PHP:
    2012-04-20 15:50:30 [SEVERECould 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.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:216)
        
    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.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
        
    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 byjava.lang.ClassCastExceptionorg.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
        at com
    .Acrobot.ChestShop.Listeners.signChange.onSignChange(signChange.java:83)
        
    at sun.reflect.GeneratedMethodAccessor315.invoke(Unknown Source)
        
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        
    at java.lang.reflect.Method.invoke(Method.java:616)
        
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
        ... 
    12 more
     
  4. Offline

    iforgot290

    just put up to 6 chestshop's on each chest, that'll work the same as what you are saying
     
  5. Offline

    papand13

    - CraftBukkit #2149
    - ChestShop 3.4
    - EssentialsEco with Vault
    - PermissionsEX

    On my server suddenly everyone can make signshops, even those without any chestshop permissions at all. And every time they make one, even though they shouldn't be able to, i get this error: "[SEVERE] Could not pass event SignChangeEvent to ChestShop"
     
  6. Offline

    Acrobot

    Adrenaline
    The error you posted means that the block from SignChangeEvent isn't a sign -.-

    papand13
    You need to post the whole error.
     
  7. Offline

    papand13

  8. Offline

    Crankmast3r

    Hey my members have permissions to build chest shops but when they try and build in my region flagged zones they get "No Permission" worldguard_integration is set to true x.x not sure what im doing wrong
     
  9. Offline

    Acrobot

  10. Offline

    MichaelVelsion

    - CraftBukkit version git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    - ChestShop version 3.39
    - Your economy plugin (iConomy? BOSEconomy? other one?) Iconomy
    - Have you got any Permission plugin? Which one? PermissionsEx
    Everyone can make chest shops even though I've added the chest shop create permission to a higher rank then the default.
     
  11. Offline

    Acrobot

  12. Offline

    MichaelVelsion

    Yes I saw that. But based off that answer I still have no clue on how to go about fixing the problem :(

    Edit: Would it help if I showed you how I have my permissions set up?
     
  13. Offline

    Acrobot

    MichaelVelsion
    Ehh... The easiest would be to open ChestShop.jar with WinRAR/7Zip, open "plugin.yml" and change ALL "default: true" to "default: ops"
     
  14. Offline

    MichaelVelsion

    Alright, I did that. However now my members can't buy or sell and my Supporter group can't create shops. Could you take a look at my permissions and tell me if they are set up wrong?

    Edit: I get the error in-game saying I don't have permission.

    http://pastebin.com/HRJiWHYK
     
  15. Offline

    Acrobot

  16. Offline

    Switch0r

    Can someone help me with chestshop and towny integration.
    People can make shops in every plot in a town, they should only make shops in the shopplots.
    I have set this:
    TOWNY_INTEGRATION: true
    #Do you want to only let people build inside shop plots?
    TOWNY_SHOPS_FOR_OWNERS_ONLY: true
    #If true, only plot owners are able to build inside a shop plot. If false, every town's resident is able to build there.

    Still it does not work, anyone have a solution here ?
     
  17. Offline

    MichaelVelsion

    Like click and drag? Or copy and paste the file contents?

    Edit: I went ahead and copied the info into the win/rar while it was open into the plugin.yml thing and then i put it back in the plugins folder - i'm still getting the no permission to do it.

    Edit: I'm leaving for work. I'll be back in approximately seven hours.
     
  18. Offline

    Acrobot

    Switch0r
    Hmm, I have no idea why :/
    Are you using the latest Towny version, at least 0.80.0.6?

    It can be found here:
    http://palmergames.com/downloads/townydev/Towny.jar

    MichaelVelsion
    Well, click and drag inside WinRAR's window, so plugin.yml gets changed, or just copy and paste its contents, if you like to :) Just make sure that the new plugin.yml inside ChestShop.jar is the plugin.yml I gave you.
     
  19. Offline

    MichaelVelsion

    Acrobot
    Still not working :( Gotta run to work now.
     
  20. Offline

    Switch0r

    Acrobot do i need to set something in towny settings to get it working ?
    I have Towny version 0.80.0.0
    I made a ticket with some errors
     
  21. Offline

    Acrobot

    Switch0r
    No, I told you - you need to update your Towny.
    I gave the link to it in the previous post.

    Version 0.80.0.6 of Towny changed how plugins hook to it, so I couldn't make it compatible with both versions.

    MichaelVelsion
    Hmm, ok - give me your IP when you get back, and I'll help you as soon as I can.
     
  22. Offline

    PhoenixStar117

    Does this work with Essentials? Like the Essentials Iconnomy
     
  23. Offline

    Switch0r

    Acrobot wich version of chestshop works on Towny 0.80.0.0 ?
    Towny dev builds dont work with vault yet
     
  24. Offline

    yaitsbilly

    Having a problem trying to sell a bow with Power, Punch, Flame and Infinity, I do /Iteminfo on it and its 261-btqo85 but when I make the chestshop its only give me a regular bow. What am I doing wrong?
     
  25. Offline

    Acrobot

  26. Offline

    yaitsbilly

    Yes it does thats what I'm using.
     
  27. Offline

    DonutPlugins

    In CraftBukkit 1.2.5, im not getting this plugin loading at all..i mean, it doesnt work, and /plugins does NOT show ChestShop. Any ideas? (and yes ive restarted :p)
     
  28. Offline

    Acrobot

    DonutPlugins
    Do you get any errors in the console?
    Did you try regenerating the config?
     
  29. Offline

    PhoenixStar117

    Okay Thanks!!! I love this Plugin, but didn't wanted to get Iconnomy
     
  30. Offline

    yaitsbilly

    No I dont get any console error with creating the Shop or buying, its just saying I bought one bow in console.

    Is there a list with these special codes?

    And if I made a tutorial vidoe could you put it under videos?
     
  31. Offline

    Acrobot

    yaitsbilly
    Yes, I can put it under videos.

    But, it kinda isn't the reply to you :p

    And there isn't a list of special codes.

    The reply to you was:
    "Is that a "natural" enchantment combination though?"
     

Share This Page