[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

  3. Offline

    jenks1999

    @Acrobot so shouldnt the coloured plugin be posted as a conflicting plugin? as it isnt mentioned anywhere right now?
     
  4. Offline

    Acrobot

    @jenks1999
    Yeah - it isn't. In fact, it doesn't really conflict with it - you just can't re-color shop signs - the rest works fine.
    (BTW, (almost) any plugin that uses signs doesn't work with sign colors)
     
  5. Offline

    jenks1999

    very true, just saves people wondering why, just a helpful FYI to people when they install chestshop and get that error. Saves them looking noob like me...lol
     
  6. Offline

    Acrobot

    @jenks1999
    It's not a problem, I'll probably just add it to bug-finding section :)
     
  7. Offline

    jenks1999

    thanks and appreciated... :) ty for your speedy response. Best of luck with the progress of this, as i have many people addicted to this plugin...lol
     
  8. Offline

    Dustin545

    my player can buy from the shops but cant sell to them
     
  9. Offline

    jenks1999

    make sure you have it set right...
    Admin Shop
    1
    B 10:5 S
    wood


    caps sensative PLEASE NOTE !!!
    and there is a space after the B and before the S
     
  10. Offline

    Dustin545

    wait it only for sertain items they cant sell
     
  11. Offline

    Dustin545

    and i no how to set up the shop i have used this plugin for days its just wont let player sell for sertain items
     
  12. Offline

    Acrobot

    @Dustin545
    Ehh :p
    You should probably read the main post, the section about bug reporting.
    The issue is - bukkit blocks all left-clicks inside spawn. To fix this, change spawn-radius to 0 in bukkit.yml

    @jenks1999
    Thanks :)
     
  13. Offline

    Dustin545

    thanks man
    lol hey is there a way to let pople only buy once from a shop like i want a shop for a holaday item that one person get 1 free of that item
     
  14. Offline

    Acrobot

    @Dustin545
    Hmm, I don't think so. This could be a feature in some module with ChestShop 4, but not now :)
     
  15. Offline

    Dustin545

    ok do u no any that will work for that
     
  16. Offline

    rskelhorn

    @Acrobot I installed your latest version, kept the old yml files but saw no option for Lockette?

    Kindly

    Rskel
     
  17. Offline

    Acrobot

    @rskelhorn
    If Lockette is found - it just uses Lockette :)
     
  18. Offline

    jenks1999

    @Dustin545 use item code where the wood is, it works for all items
     
  19. Offline

    rskelhorn

    Hmm.. I am using lockette and it isn't using it... so would I disable all protection (LWC and Default), reload and then it would pick up lockette?
     
  20. Offline

    rskelhorn

    I can confirm that using lockette while saying:

    http://pastebin.com/Uyu56Ghd

    That lockette isn't used. Would be an awesome feature, I assume I'm doing something wrong?
     
  21. Offline

    Frvwfr3

    This plugin is not working for me...

    Im using the latest version, CB 1085 and iConomy 6.0.6

    Whenever a player clicks the sign, they always get a 'Not enough money' message.. No matter how much money they have..

    Any help?
     
  22. Offline

    schatty

    Hey ,

    is this a ChestShop or Spouth Error?!


    Code:
    2011-10-01 01:32:11 [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 org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
        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 org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
        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 org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
        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 org.getspout.spout.block.mcblock.CustomBlock.a(CustomBlock.java:175)
        at net.minecraft.server.World.a(World.java:2143)
        at net.minecraft.server.World.doTick(World.java:1637)
        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)
     
  23. Offline

    Acrobot

    @schatty
    Actually, it's CraftBukkit's error, but I fixed it in the most recent ChestShop version, could you download it?

    @Frvwfr3
    It's iConomy 6 bug. Either switch to iCo5, or (unconfirmed) type /money in chat and try to buy again.

    @rskelhorn
    Hmm... Do you get a confirmation that ChestShop loaded Lockette at startup?
     
  24. Offline

    SyLoR

    Does it work with essencials money?
     
  25. Offline

    schatty

    Hey ,

    i have ChestShop Version 3.22 and CB #1185.
    Or is there a newer version chest shop?

    PS: google translated ;/
     
  26. Offline

    Acrobot

    @SyLoR
    Yes, it does.

    @schatty
    Oh right, another bukkit's error :/
    I'll fix that.
     
  27. Offline

    schatty

    Thank You :)

    PS: Great Plugin! My users love it ;)
     
  28. Offline

    benj50

    hi,

    I have probleme with chestchop, its impossible to create a chop and old chop from IconomyChestchop do not fonctionning (sorry for my english) my log:

    please help ! :D

    THX
     
  29. Offline

    Deewon

    I'm getting 'Can't find chest'

    I placed a chest on a stone block then tried putting the sign on the stone block beneath it. Also tried putting a stone block to the left of the chest and sign on there, same problem :S
     
  30. Did you anything with these peermissions? :
    ChestShop.shop.create.itemID - lets you create shop which buys/sells itemID.
    ChestShop.shop.buy.itemID - lets you buy itemID from shops
    ChestShop.shop.sell.itemID - lets you sell itemID to shops
     
  31. Offline

    Jahmaican

    Is there a way to limit number of shops for players to create?
     

Share This Page