[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

    hollow36rus

    Good day to all!
    The problem when create the shop.
    ChestShop 3.55
    CraftBukkit 1597
    IConomy

    When a player puts a chest, chest is automatically protect with LWC.
    If a player puts a sign near the chest (for a shop) to him the message, "CANNOT ACCESS THE CHEST".
    You have to write every time "/cremove" and then the store is created successfully.
    Prior to this all works fine. What's the problem?

    Help with this problem. Thanks in advance.
     
  3. Offline

    Epics

    Cost 1000$ ingame to protect a chest then?
    My idea was simply to be able to deposit items and withdraw items with right clicks/left clicks or even /deposit <id> <amt> /withdraw <id> <amt> within a 2 block radius of the chest or something similar.
    This way player markets could be implemented without being abused outside of the area.
     
  4. Offline

    babybell

    Hey i want to use the plugin but the plugin say to our user (i write the permission for the user in) no permission... so i think it is not compatibl with PermissionsEx ? Is this right? Or what i do wrong...
     
  5. Offline

    Acrobot

    @hollow36rus
    Good day :p

    This will be fixed in ChestShop 3.30, released in ~30 mins. :)
    @babybell
    Well - I didn't test it with PEX, but if it doesn't work - it means the PEX is not compatible with Bukkit, if anything.
    Could you post your config on pastebin.com?
     
  6. @babybell
    Post also your permissions. I have running PEX since September - no problems.
     
  7. Offline

    HSAR

    Is there any documentation on what the HTML files are for?
     
  8. Offline

    Acrobot

    @HSAR
    Not exactly.
    If you want to generate the web page, you need the HTML folder INSIDE ChestShop folder.
    (like plugins/ChestShop/HTML)

    Then, it generates the page based on:
    header.html (used once)
    - no variables to include

    row.html (repeated for every item used in shops)
    %material - Item name
    %total - total items bought/sold
    %bought - total items bought
    %sold - total items sold
    %maxStackSize - maximum stack size of that item
    %pricePerStack - average price per stack
    %pricePerItem - average price per item

    footer.html (used once)
    %time - generation time
     
  9. @Acrobot
    Do you have an example/screenshot of web page?
     
  10. Offline

    babybell

  11. Offline

    Acrobot

  12. Offline

    RugRats

    Buying and selling of XP?
     
  13. Offline

    Acrobot

    @RugRats
    Possible with iConomy, if you set the currency to xp.
     
  14. @Acrobot
    He asked whether server shop can sell XP to players. Or?
     
  15. Offline

    RugRats

    No no, I mean like on a sign, you can pay 500 dollars for a set amount of xp. Not using XP as a currency.
     
  16. Offline

    Acrobot

    @RugRats
    Oh, like that. Not ATM, maybe in CS4. :p
     
  17. Offline

    RugRats

    *sadface*
     
  18. Offline

    hollow36rus

    Hmm...Where is the download link (3.30)? [skeleton]
     
  19. Offline

    shanko

    Can I make it so people can sell any item to a Admin Shop for 0 dollars, to act as sort of a trash can?
     
  20. Offline

    supayoshi1

    DOwnload link pls 3.30 :3333 *excited8
     
  21. Hi
    I have chestshop since a long time, its great,
    but today the server crashed with this error:

    2011-12-16 14:11:47 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to ChestShop
    java.lang.ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.PistonBaseMaterial
    at org.bukkit.event.block.BlockPistonEvent.getDirection(BlockPistonEvent.java:41)
    at org.bukkit.event.block.BlockPistonExtendEvent.getBlocks(BlockPistonExtendEvent.java:37)
    at com.Acrobot.ChestShop.Listeners.blockBreak.onBlockPistonExtend(blockBreak.java:49)
    at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:554)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
    at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:463)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:468)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:468)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:465)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:465)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:467)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:465)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:464)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:464)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:468)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:468)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
    at net.minecraft.server.World.k(World.java:488)
    at net.minecraft.server.World.applyPhysics(World.java:467)
    at net.minecraft.server.World.update(World.java:431)
    at net.minecraft.server.World.setTypeIdAndData(World.java:415)
    at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
    at net.minecraft.server.World.i(World.java:1891)
    at net.minecraft.server.World.doTick(World.java:1638)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    I could start the server only, if I removed chestsshop
    from the plugins. Do you know the problem?
     
  22. Offline

    MSTrus

    there is no link to 3.30 D:
     
  23. Offline

    MSTrus

    i t
    hink problem with pistons ?
     
  24. Offline

    HSAR

  25. Offline

    Acrobot

  26. Offline

    monir

    I uppdated today to latest chestshop and i get this is it becouse of lwc?
    [​IMG]
     
  27. but what can i do against it?
    i think somebody has pushed away something from chestshop with a piston, and everytime, if i start my server with chestshop, it cant start
     
  28. Offline

    Acrobot

    @black_ixx
    Update it then!
    3.30 is for 1.0.0, 3.29 is for 1.8

    @monir
    Which /csversion is that?
    If 3.29, download 3.30 - newer one.
     
  29. Offline

    monir

    Yes it was 3.29 i where do i download 3.30 i dont see it in bukkitdev
     
  30. Offline

    Acrobot

    monir likes this.

Share This Page