[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

    @Deadlystrike
    It doesn't require since some relase (2.2 I think)
     
  3. Offline

    Lesser

    Unfortunately I still get the error Sell's account dosen't exist
     
  4. Offline

    Acrobot

    @Lesser
    Not possible...
    Did you create the account? /money create <name>
     
  5. Offline

    Lesser

    I was able to fix it. Capitalization is key :p

    Thanks again Acrobot
     
  6. Offline

    ElementzYT

    Alright, I thought I read a comment saying such a thing. Any idea when that will be achievable?
     
  7. Offline

    LucidLethargy

    Is it currently impossible to sell Lapis Lazuli? I am getting no luck with any item names, id's or otherwise... Please bring back the autofill -.-
     
  8. Offline

    Acrobot

  9. Offline

    _Leito_

    You can help me Acrobot?
     
  10. Offline

    Acrobot

  11. Offline

    narte

    havent seen it affect anything, and belive me my server isn't that good yet :)
     
  12. Offline

    arsjet

    odditem.jar installed, item.txt be placed.

    If you try to sell such 35:14,351:1 [Your inventory full!] comes out.

    The inventory is empty.

    Why?
     
  13. Offline

    Lesser

    Hey Acrobot I have another question. Is there a way for us to change which click of the mouse is buy or sell on the sign?

    Because just something I noticed was the Buy price is on the left side of the sign and to buy an item its right click. and vise-versa for selling.

    Just a thought.

    Thanks
     
  14. Offline

    Vikerus

    Hey i can't set up the adminshop, i have permissions right, but it just doesnt recognize i've done anything to the chest.

    Anyone else have this issue?
    I'm on BC 677 and permissions 2.7 and BOSEconomy

    - 'iConomyChestShop.shop.admin' <--- thats how it is in my permissions under moderator, admin set to "*"
     
  15. Offline

    blackopsucks

    Is there a way to stop people from creating chest shops? Like in permissions? So when they get promoted... (Example)
    iConomyChestShop.create
    or something?
     
  16. Offline

    Acrobot

  17. Offline

    Nitoxdoan

    where/how do i get a permissions.jar?
     
  18. Offline

    Acrobot

  19. Offline

    arsjet

    [Admin shop] What is being implemented?
     
  20. Offline

    _Leito_

    Arf...

    Ok, thanks Acrobot.
     
  21. Offline

    Niklas4G

    German Language Pack is no more, (

    Code:
    2011-04-17 14:24:43 [SEVERE] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 1892
        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.scanToNextToken(ScannerImpl.java:974)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        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.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:138)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  22. Offline

    Acrobot

    @Niklas4G
    Seems like someone translated it badly, I'll try to fix it.

    EDIT: I think I fixed it.
     
  23. Offline

    Niklas4G

    Thank You

    My School Englisch is not the best :D
     
  24. Offline

    BioRage

    @Acrobot

    Any luck on the request yet dear robot? =]
     
  25. Offline

    Acrobot

    @BioRage
    It is already there :)
    Look in config, setting: allowUsedItemsToBeSold
     
  26. Offline

    Niklas4G

    @Acrobot
    Is the German Language Pack Fixed?
     
  27. Offline

    BioRage

    @Acrobot
    Great! You figured it out!

    Cheers.
     
  28. Offline

    Niklas4G

    German Launge Pack is no more ;( Agan

    Server Log
    Code:
    2011-04-17 18:26:52 [SEVERE] Could not load 'plugins/iConomyChestShop.jar' in folder 'plugins':
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 968
        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.peek(StreamReader.java:117)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
        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.getSingleNode(Composer.java:104)
        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:138)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    2011-04-17 18:26:52 [INFO] [CreativeStick 0.6.1] initialized
    2011-04-17 18:26:52 [SEVERE] Could not load 'plugins/LastSeen.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:53)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    And Config


    Code:
    sell: true
    distance: 1
    position: 'DOWN'
    protection: true
    logFilePath: "plugins/iConomyChestShop/iConomyChestShop.log"
    
    #protection - do you want to use anti-stealing protection?
    #sell - do you want to activate selling?
    #distance - distance between the chest and the sign
    #position - position of the chest, goo.gl/YItRO
    
    # prefix will be dispayed at the beggining of every message.
    # you can use terms like <buyer>, <amount> or <item> in messages, however
    #     only certain messagess offer this.
    #
    #
    # <buyer> - nick of the person who bought.
    # <owner> - nick of the person who own the shop.
    # <amount> - amount of item
    # <item> - name of item
    # <money> - amount of money with iConomy currency
    #
    # You can always use hMod colors, like
    # &1, &f etc...
    # For example: This is my&6 golden text.
    
    #MAXIMUM OF 55 CHARACTERS WITH PREFIX!
    lang:
        prefix: '&a[Shop] &f'
        Somebody_sold_items_to_your_shop: '<seller> verkaufte <amount> <item> für <cost> zu deinem Laden!'
        Somebody_bought_items_from_your_shop: '<buyer> kaufte <amount> <item> für <cost>!'
        Your_shop_is_out_of_stock: 'Dein <item> Laden ist ausverkauft'
        You_cannot_use_your_own_shop: "Du kannst nichts aus deinem Laden kaufen!"
    
        You_bought_items: 'Du hast <amount> <item> von <owner> gekauft.'
    
        Your_inventory_is_full: 'Dein Inventar ist voll!'
        You_have_got_not_enough_money: "Dein Geld reicht nicht aus!"
        Shop_is_out_of_stock: 'Dieser Laden ist ausverkauft!'
    
        You_have_not_enough_items: 'Du hast nicht genug Items um sie zu verkaufen!'
        You_sold_items: "Du hast <amount> <item> für <cost> an <owner>'s Laden verkauft."
        Chest_is_full: 'This chest is full!'
    
        Seller_has_not_enough_money: "Der Verkäufer hat nicht genug Geld!"
        Seller_has_no_account: "Der Account des Verkäufers existiert nicht!"
        No_selling_to_this_shop: "Der verkäufer möchte nicht, dass du hier verkaufst!"
        No_buying_from_this_shop: "Der Verkäufer möchte nicht, dass du hier kaufst!"
    
        Your_balance: 'Nach dem Handel hast du noch <money>.'
    
        Shop_is_created: 'Dein Laden wurde erfolgreich erstellt!'
        Shop_cannot_be_created: "Du hast keine Kiste ausgewählt!"
        Shop_was_LWC_protected: "Dein Laden wurde erfolgreich mit LWC geschützt."
    
        Mode_changed_to_sell: 'verkauf Modus aktiviert.'
        Mode_changed_to_buy: 'Kauf Modus aktiviert.'
    
        You_tried_to_steal: "Man klaut nicht!"
    
        iteminfo: "&aItem ID's und Namen:"
        incorrectID: "Falsche Item ID!"
        Couldnt_fit_on_sign: "Couldn't fit something on the Schild!"
    P.S. i have the News iConomyCS
     
  29. Offline

    BioRage

    Question, so what do you mean "Fresh"?
     
  30. Offline

    Nitoxdoan

    [My Server] HELP ME plzzz! I downloaded and installed the mod correct and it workt. But i dont know how to use the mod with permission any help plzzzz! p.s it says [Permissions] you cannot buy from the shop!.... or something else like that
    it only says that if you not are an op.
     
  31. Offline

    Nitoxdoan

    and it also f*ck my lockette mod and myhome Plugin up if i have the Permission plugin on my server HELP PLZZZz
     

Share This Page