[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. Thanks, you were right, i had to disable the sign from LWC...it was pissing me off so badly :D
     
  3. Offline

    McSushi

    i watched that video and then tried /iteminfo and i got an internal error occurred while attempting to perform this command
    this was my sever
    org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    08.07 16:16:32 [Server] INFO at com.Acrobot.iConomyChestShop.iConomyChestShop.onCommand(iConomyChestShop.java:161)
    08.07 16:16:32 [Server] INFO at com.Acrobot.iConomyChestShop.PermissionManager.hasPermissions(PermissionManager.java:16)
    08.07 16:16:32 [Server] INFO at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.has(NijikoPermissionsProxy.java:225)
    08.07 16:16:32 [Server] INFO at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.permission(NijikoPermissionsProxy.java:242)
     
  4. Offline

    Acrobot

    @McSushi
    Your GroupManger is bugged, please post it in groupManager's forum :)
     
  5. Offline

    Phanku

    So in chestshops 3.0 did you solve the issue of players with really long names?
    We have a user who has 13 letters in his name and because of that he cannot use chest shops.
     
  6. Offline

    McSushi

    ohh lol, will do thanks for the help
     
  7. Offline

    Acrobot

    @Phanku
    13 letters are allowed in name. Only 16-letters-long names won't work.
     
  8. Offline

    Lighty

    Is there anything I can do to enabled a user with a 16-letter name to be able to use shops?
     
  9. Offline

    Acrobot

  10. Offline

    Lighty

    I've set BankAccount up and created his account and named it what appears on the sign. However, it still says "Seller's account doesn't exist" when using his chest shop. Any ideas?
     
  11. Offline

    Acrobot

    Hmm...
    That would be weird.
    Type /money Name_of_his_account to check if that acc exists, if not, please PM me your TeamViewer details.
     
  12. Offline

    Jigsaw

    I am using the Newest Version of iConomyChestShop and I am having problems with Admin Shops. All other shops work fine for buying and selling. When I create an AdminShop you can buy items for the selling price and when you sell items you get $0.00 but it takes the item. I also created just an AdminShop that bought only and it gives me a "Seller has not enough money". I have had the ChestShop working before without a problem but for some reason admin shops are giving me these weird problems lately. I have tried to re install several times with no change.

    This is how I am setting up the admin sho
    L1: AdminShop
    L2: 1
    L3: B 10 : S 5
    L4: StonePick

    I have tried with many items and have even tried to buy only and sell only, still the same problem. You can't get money for selling an item and you can buy the items at the incorrect price.
     
  13. Offline

    Acrobot

    @Jigsaw
    Did you try ChestShop 3 BETA?
     
  14. Offline

    Jigsaw

    Just installed ChestShop 3 Beta, everything seems to be working great!

    By the way, thanks for the awesome plugin!
     
  15. Offline

    Acrobot

  16. @Acrobot thank you for responding quickly! Some dev's dont even acknowledge you!
     
  17. Offline

    Massimo1993

    hi excuse me but he cant't have acess to bukkit database, i set the yml but bukkit whon't create the database file... please help me
     
  18. Offline

    Acrobot

    @Massimo1993
    I believe I don't understand exactly what you're talking about :p
     
  19. Offline

    Massimo1993

    i understand exactly what im talking... you know the bukkit.yml ? i set the right propreties but bukkit whon't create the database

    settings:
    spawn-radius: 16
    update-folder: update
    aliases:
    icanhasbukkit:
    - version
    database:
    username: bukkit
    isolation: SERIALIZABLE
    driver: org.sqlite.JDBC
    password: walrus
    url: jdbc:sqlite:/root/server/bin/bukkit.db
     
  20. Offline

    comatoseDreamer

    I have a weird problem... I am pretty new to administrating my own server. I currently rent from servercraft.co. All my other plugins seem to have no issues except Sign shops...

    I do what the instructions say. I set down my chest, put an iron sword into the first slot and I build my sign:
    line1:
    line2: 1
    line3: 84:41
    line4: 267

    Whent he sign is placed, it looks OK. It places my name, has the quantity and prices right and the item name.
    I get my girlfriend to, empty handed, left click on the sign... nothing happens.
    Right click on the sign "Shop is out of stock"
    I get a message that my STONE store is out of stock...
    I was not aware I was selling STONE...

    It may help to know that I tried another plugin SignShops 1.2 and the signs would reset to price of 1 and would always sell and buy STONE only...so I don't think it's an issue with your plugin. I was just wondering if anyone else has come across this issue.

    CONSOLE: This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    CONSOLE: This server is also sporting some funky dev build of Bukkit!

    current plugins
    AntiBuild 1.5.0
    Essentials 2.1.38
    EssentialsChat 2.1.38
    Permissions 2.5.1
    GroupManager 1.0(alpha5)
    EssentialsProtect 2.1.38
    EssentialsSpawn 2.1.38
    HeroChat 4.10.3
    LWC 3.21
    Questioner 0.4
    ScheduledAnnouncer 1.6.3
    SuperPowers 0.8
    Towny 0.71
    WeatherSync 1.2
    bLift 1.1
    GravelClay 1.3.1
    iConomy 5.01
    iConomyChestShop 2.75

    I am looking for help on this in many places. I have an open ticket with servercraft and have posts on multiple forums. Any help/advice would be appreciated.
     
  21. Offline

    Acrobot

    @Massimo1993
    Oh, are you sure you are checking in /root/server/bin/ directory?
    Maybe try changing it back to "url: jdbc:sqlite:{DIR}{NAME}.db" and check if bukkit makes database file in plugins/plugin_name/ folder?

    @comatoseDreamer
    Hmm...
    Actually, that's VERY weird.
    If you can upload your plugins, please try it with ChestShop beta.
    If not... Hmm...
    What have I got (and you can exclude from your list)
    - iConomyChestShop (obviously :p)
    - iConomy
    - Permissions (altough I have got the 3.x ones, and I had 2.7.4 before)
    - Towny (I know a server that uses this and ChestShop)
    - HeroChat

    You can try... hmm... looking through console/server.log and see if there are any errors with iConomyChestShop or other plugins.
    Also, you can try changing spawn-radius to 0 in bukkit.yml
     
  22. Offline

    Massimo1993

    @Acrobot

    Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
    while parsing a block mapping
    in "<reader>", line 94, column 5:
    prefix: '&a[Shop] &f'
    ^
    expected <block end>, but found Scalar
    in "<reader>", line 97, column 46:
    ... _is_out_of_stock: 'Non hai piu' <item> nel tuo shop !'
    ^

    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:576)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:82)
    at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  23. Offline

    Acrobot

    @Massimo1993
    Can you post your config file on pastebin.com and post it here?
     
  24. Offline

    Massimo1993

  25. Offline

    comatoseDreamer

    Okay. I did a test. Leaving iConomyShops installed, I reduced the the spawn-radius to 0 and voila, the shop is mostly acting properly. Now the only issue I have, it still wants to say it's a STONE store. So, I installed the beta as you suggested and I get the same behavior. What version of Permissions is iConomyChestShop and ChestShop built against?
     
  26. Offline

    Acrobot

    @Massimo1993
    You can't use
    --> '
    inside non-" quotes.
    Either remove the inside
    --> '
    Or just change the quotes around from
    -->'
    to
    -->"

    Okay, I got to go to sleep. Night (or morning, or noon, or anything :)) everyone

    @comatoseDreamer
    ChestShop was built against - Permissions version: 2.5.5 (WOW. I must update it, by the way), but it works for 3.x too.
     
  27. Offline

    comatoseDreamer

    I'm going to try and update Permissions... I remember it breaking things last time (the weird 'funky' build my hoster has me use when I choose to install craftbukkit).

    EDIT Well..nevermind. Not only can I not update Permissions, it breaks too much I have already, but I also managed to fix the issue. I have no idea what I did. Somewhere between updating then downgrading Permissions, it all works. I think it's the essentials package I am required to use. Anyway. Thanks for the help anyway!
     
  28. Offline

    Silicon

    Is anyone having the issue with CHESTSHOP 3.0 BETA 8 where people can buy certain items from an adminshop but not sell them, but I can. Everyone (all users) has permissions for ChestShop.shop.* it happened on coal if that makes a difference, no errors in the transaction log or console, i tried deleting and recreating it.
     
  29. Offline

    LogSpoon

    I'm not sure if there's a post in here or not asking this, but is there a way that items sold to a shop can be deleted directly from their inventory, and not placed in to the chest? I'm having a problem with people mass selling items like cobblestone, filling up the chests in a matter of minutes.

    If not, I could just disable selling of certain mass-obtained items in order to prevent this
     
  30. Offline

    yadea

    I have an issue. Shops i make allow me to only sell things to people not buy things from them.
    For permissions, i have added
    Code:
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.shop.create.<id>'
                - 'iConomyChestShop.shop.exclude.<id>'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
                - 'iConomyChestShop.command.iteminfo'
    iConomy Chest Shop settings:
    Code:
    maxPrice: -1
    minPrice: -1
    #maxPrice - maximum buy/sell price
    #minPrice - minimum buy/sell price
    
    reverseButtons: false
    sell: true
    distance: 1
    position: 'ANY'
    protection: true
    
    #reverseButtons - If true, people buy with left click and sell with right click.
    #sell - Do you want to let people create/use shops, that buy things from players?
    #distance - Distance between the chest and the sign. (Warning, chests that aren't exactly that far WON'T work as shops)
    #position - Position of the chest, relative to the sign. ANY for anything in radius of 1 block, other: goo.gl/YItRO
    #protection - Do you want to use built-in shop protection?
    
    LWCprotection: true
    signLWCprotection: false
    
    #LWCprotection - Do you want to protect the chests with LWC?
    #signLWCprotection - Do you want to protection signs with LWC? (Warning, gives LWC message when using shop!)
    
    log: true
    logToFile: false
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    
    #log - Do you want to log transactions and shop creating?
    #logToFile - Do you want to save the log to file? (Warning, this lags a bit - I reccomend turning this off, as server.log will have these informations too.)
    #logFilePath - Path to log file.
    
    sneakMode: true
    allowUsedItemsToBeSold: false
    stackUnstackableItems: false
    
    #sneakMode - Do you want to let people to shop using left mouse button, and destroy the shop signs when sneaking?
    #allowUsedItemsToBeSold - Do you want to let people sell used tools to the shop? (Warning, the tools will be "fresh" if player sells them. NOT RECCOMENDED)
    #stackUnstackableItems - Do you want to stack all items in chest?
    
    useDB: true
    howLongToStoreInformationInDB: 600
    intervalBetweenTransactions: 100
    
    #useDB - Do you want to use bukkit's built-in database to log the transactions? (Must be turned on, if you want to generate price list)
    #howLongToStoreInformationInDB - How old the transation must be before being deleted? (In seconds)
    #intervalBetweenTransaction - How often can one person buy or sell to the shop? (In miliseconds: 1000ms = 1 sec)
    
    generateTransactionList: false
    intervalBetweenGeneratingTransactionList: 5
    showUnusedItemsInGeneratedList: false
    
    #generateTransactionList - Do you want to generate average price, amount of bought, sold items page? (Currently in ALPHA state)
    #intervalBetweenGeneratingTransactionList - Interval between generating the list. (In seconds)
    #showUnusedItemsInGeneratedList - Do you want to show items, that were not bought/sold on the list?
    
    separatingLineAfterTransaction: false
    doNotRemoveSignIfNotCorrect: false
    serverAccountName: ""
    #separatingLineAfterTransaction - Do you want to show a line in the chat after transaction?
    #doNotRemoveSignIfNotCorrect - Do you want to keep the sign, if it's not correct?
    #serverAccountName - Account of the server to use with AdminShops, blank if you don't want to use one
    
    #Messages:
    showOutOfStock: true
    showMoneyAfterTransaction: true
    The text that i place on the sign
    Code:
    myname
    1
    B 2 : S 1
    dirt
    Please notify me if other information is required. Thanks in advance.
    BTW there is nothing mentioned about errors in console.

    EDIT: This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
     
  31. Offline

    Acrobot

    @Silicon
    Spawn protection :)
    Disable it in bukkit.yml, change spawn-radius to 0 :)

    @LogSpoon
    Just make an admin shop. It doesn't require chests. Just put a combination of "admin" and "shop", fe. "Admin shop" on the first line.

    @yadea
    If you want just not buy items from other people, just put "B price" on the 3rd line.
    If you want noone to buy items from people, change your permissions to:
    Code:
    - 'iConomyChestShop.shop.create'
    - 'iConomyChestShop.shop.sell'
    - 'iConomyChestShop.command.iteminfo'
    
     

Share This Page