[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

    FragMagnet

    I'm wondering if it's possible to have signs usable above and below the chest. In other words, for the setting "position:" can I say 'UP' and 'DOWN' specifically, instead of 'ANY'? I want to disallow using them to the sides, but allow placing signs below or above.
     
  3. Offline

    Tealk

    hi i become this message:
    2011-05-23 16:24:43 [INFO] ?9[PLAYER_COMMAND] Traumtanz: /sell
    2011-05-23 16:24:43 [WARNING] Traumtanz was denied access to command.

    but i have give the permissions:
    - iConomyChestShop.shop.create
    - iConomyChestShop.shop.buy
    - iConomyChestShop.shop.sell

    server.log
    http://pastebin.com/uY4sSvN3
     
  4. Offline

    Acrobot

    @Tealk
    That's probably other shop plugin that blocks it. My plugin doesn't give that warning, try /chSell instead.

    @Cirtapk
    "Multiple items" - how many?

    @FragMagnet
    Nope, not yet
     
  5. Offline

    Craigtut

    I'm having an issue with the html generation, I have the config file set to true to generate the file and the interval to 60... Is it currently broken? Or am I just missing a step. The bit at the top seems vague. Thanks!
    -Craig
     
  6. Offline

    Acrobot

    @Craigtut
    It was not broken last time I checked, but do you have useDB: true too?
     
  7. Offline

    Craigtut

    I do have the DB set to true... it doesn't use Mysql though right?
    The interval to store is just the default of 600, does that matter?
    Code:
    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: true
    intervalBetweenGeneratingTransactionList: 60
    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
    
     
  8. Offline

    Acrobot

    @Craigtut
    It does use anything that it is configured to use in bukkit.yml
     
  9. Offline

    Craigtut

    Ok, I'm very new to hosting a server... should it be hooked into a mysql database? I posted my settings above
     
  10. Offline

    Acrobot

    @Craigtut
    Nope, if you don't want to use MySQL, it uses default, built-in SQLite.
    And if it doesn't work - I'm sorry. Working on 3.0.
     
  11. Offline

    Cirtapk

    As in 5, 10, ie more than 1, but less than 64.
    For example:
    I set the sign for quantity 5, buying and selling diamonds.
    I can buy 5 diamonds from the adminshop sign, but I can't sell back to the shop regardless of how many diamonds I have.
     
  12. Offline

    Acrobot

    @Cirtapk
    That would be a bug, have you got any errors in console?
     
  13. Offline

    Torrental

    Hi, I have an issue with using this plugin on my server with permissions.

    My permissions are set as followed (only for the regular group as that is where the issue is )
    Code:
        Regular:
            default: false
            info:
                prefix: '&f[&fRegular]&f '
                suffix: ''
                build: true
                rank: 2
                inheritance:
                - Guest
                permissions:
                - 'iConomy.list'
                - 'iConomy.rank'
                - 'iConomy.bank.*'
                - 'iConomy.access'
                - 'iConomy.payment'
                - 'iConomyChestShop.*'
                - 'iConomyChestShop.command.iteminfo'
    
    But whenever I try to use a shop, I get an error message:
    [​IMG]
     
  14. Offline

    Acrobot

    @Torrental
    It seems like the permissions are correct, but something is wrong with your permissions file - it just refuses to use it.
    Also, don't do iConomyChestShop.*, because that contains admin node. Do iConomyChestShop.shop.* instead
     
  15. Offline

    Tealk

    i have only sign shop and this have no commands
     
  16. Offline

    Fin999888777

    hey guys, I have a problem: I don't have poermission or something like that. My problem is, I (I am no admin) can make a chst were it says that my friend wants to buy stone for example for 10000000 dollars. And if he has got this 10000000dollars I would be able to sell 1 stone and get 10000000dollars and he loses 10000000dollars. What can I do against this????????
     
  17. Offline

    Torrental

    I got it to work. Too many spaces in the permissions :|
     
    paste120 likes this.
  18. Offline

    Acrobot

    @Tealk
    That is actually other plugin blocking that command, not mine.

    @Fin999888777
    He can't "lose" his dollars. On default config file, left-click is your sell, right-click is your buy.
     
  19. Offline

    Fin999888777

    I don't understand, my friend lost his dollars, and after a few times it said: the seller hasn' t got enough money. If the price for selling is higher than the one for buying it says: "The shops owner doesn't want you to buy here!
    (do you speck german???)
     
  20. Offline

    Acrobot

    @Fin999888777
    Do you mean you both payed for it?
    And no, I don't speak german.
     
  21. Offline

    Fin999888777

    No I made a shop, with his name and I sold something there. He lost money and I earned money and lost the thing I have sold. But the thing is that I was able to make a shop with his name.
     
  22. Offline

    Acrobot

    @Fin999888777
    Nope, it's not possible.
    Make sure you don't give people iConomyChestShop.* permission, because it contains
    iConomyChestShop.admin

    EDIT: Or have you got any errors in console?
     
  23. Offline

    Fin999888777

    I have no errors in console, but I don't have permissions. Do I need this to stop people doing this??
     
  24. Offline

    Acrobot

  25. Offline

    Fin999888777

    I don'T have the permission plugin, so I don't have the permission config file
     
  26. Offline

    Acrobot

  27. Offline

    Fin999888777

    my friend has OP rights, but I haven't

    EDIT: Is it a bug in the plugin, so that you need permission and if you don't have permission people can do this?? OK it's too late I will go offline, but it would be very nice if you could find an answer for this
     
  28. Offline

    MontyLike

    whats wrong with this? it doesnt seems to me that i made a mistake :/

    Code:
    2011-05-24 01:22:48 [SEVERE] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 5677
        at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
        at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
        at org.yaml.snakeyaml.reader.StreamReader.forward(StreamReader.java:89)
        at org.yaml.snakeyaml.reader.StreamReader.forward(StreamReader.java:79)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanFlowScalar(ScannerImpl.java:1433)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchFlowScalar(ScannerImpl.java:846)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchSingle(ScannerImpl.java:831)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:339)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
        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.composeNode(Composer.java:132)
        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.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:73)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  29. Offline

    Acrobot

    @MontyLike

    in config file.
     
  30. Offline

    Cirtapk

    No errors whatsoever.
     
  31. Offline

    paste120

    I have the same issue, where was your space problem?

    A mini well worded and described tutorial on what AdminShop is and what it does would be nice. Im still not sure if im using it right. Does the money gained go into this account?
     

Share This Page