[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

    arough

    permissions updated to the max.
    bukkit 1060
    chestshop 3.02
    iConomy updated to the max

    no one can build shop (only admins can), they get: you cant create this type of shop.
    when they want to buy/sell: you dont have permissions to do that.
    i gave them chestshop.shop.* and chestshop.shop.buy/sell/create.
    no idea whats wrong :D
     
  3. Offline

    kaserblade99

    What are good prices for nether items? (Netherrack, Glowstone, Soul Sand)
     
  4. Offline

    Acrobot

    @kaserblade99
    It really depends on your server.
    If you have nether worlds, then IMHO Netherrack should be worth little more than smooth stone, Glowstone is rare - it should be +- price of Gold, Sould Sand is less rare - iron price.

    @arough
    It is case-sensitive
    You need to give them
    ChestShop.shop.*
     
  5. Offline

    kaserblade99

    There is no Nether in my server cause of lag
    And lots of peole want glowstone and Netherrack and normally you can't get it
     
  6. Offline

    Tobyb

    I have a problem that my users can buy but cant sell. I have given them the permissions :
    - ChestShop.shop.create
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    I cant see a problem myself but if anyone knows a fix that would be great :D There is no error coming up just simply blank when they left click.
     
  7. Offline

    Acrobot

    @kaserblade99
    Oh, so they are very rare - I would price it higher than mossy cobble.
    Soul sand worth the least
    Netherrack in the middle
    Glowstone worth the most

    @Tobyb
    Go to bukkit.yml, change spawn-radius to 0.
     
  8. Offline

    Tobyb

    @Acrobot Thank you so much for your quick response and your solution. It may have took me a while to get around to posting on here but i know to do it in future. :p
     
  9. Offline

    Acrobot

  10. Offline

    arough

    @Acrobot
    I was to lazy to type that :D
    i thought i wrote ChestShop in my permissions but i didnt so your comment helped me alot :D thx
     
  11. Offline

    sweetznezz

    Every time i put this into my plugins it tells me BLOCK_PISTON_EXTENT

    Please advise!
     
  12. Offline

    DrFusion

    kk thx
     
  13. Offline

    DrFusion

    fyi r u just answer comments here all the time :p? quite boring ehh?
     
  14. Offline

    winter4w

    can you make it so it shows the stock in the chest
     
  15. Offline

    Acrobot

    @DrFusion
    Yeah, I try to answer most of them.

    @winter4w
    How? Where should I put this info?

    @sweetznezz
    Probably a bug in CraftBukkit, but which version are you using?
     
  16. Offline

    GladiTek

    please add support for iconomy 6 because players can't buy or sell after typing /money chestshop just stop working (no error msg) and you need to reconnect to fix that.

    weird thing is they can buy stuff BEFORE typing /money but they don't get charged at all.

    will stick to iconomy 5 now but the bad thing is its not really compatible with some plugins and cause errors after 10 hours of server uptime.
     
  17. Offline

    Acrobot

    @GladiTek
    It IS a problem with iConomy 6. I use Register - the iConomy 6 part was made by Nijikokun - iCo6 dev.
     
  18. Offline

    InspectorGamer

    If somebody from my server will buy something, it says: You don't have money !!


    What is the Problem ?!?!

    Help please

    _____________________________________________________________________________

    Visit: www.youtube.com/InspectorGamer
     
  19. Offline

    Jokaru

    When my players try to buy or sell diamonds from other players they tell that in shop no items for sell or player does not have items, but admin shop work fine with diamonds. Other items in player shops work fine. Pls help me! CB1060. In cmd no errors.

    My plugins:
    AutoMessage, Backup, BananaChunk, BananaPortal, BigBrother, BorderGuard, ChestShop, CommandBook, DailyBonus, FalseBookBlock, FalseBookCart, FalseBookChat, FalseBookCore, FalseBookExtra, FalseBookIC, GravelClay, HeroicDeath, iConomy, LyTreeHelper, milkAdmin, MinecraftViewer, MultiHome, MyWarp, nSpleef, obuShutTheHellUp, Permissions, PermissionsSql, PvPReward, RawcriticsOreObfuscationPlugin, Reservations, SimpleRestart, VanishNoPickup, VoxelSniper, WorldEdit, WorldGuard, xAuth, dynmap, iChat, Factions, LWC, MobArena, NoCheat, properTime

    My config:
    Code:
    PREFERRED_ECONOMY_PLUGIN: "iConomy"
    #Preferred economy plugin (iConomy, BOSEconomy, Essentials). If you do not want to specify this, leave it blank.
    REVERSE_BUTTONS: false
    #If true, people will buy with left-click and sell with right-click.
    SERVER_ECONOMY_ACCOUNT: ""
    #Economy account's name you want Admin Shops to be assigned to
    ADMIN_SHOP_NAME: "Admin Shop"
    #First line of your admin shop should look like this
    SHOP_CREATION_PRICE: 0
    #Amount of money player must pay to create a shop
    LOG_TO_FILE: false
    #If true, plugin will log transactions in its own file
    LOG_TO_CONSOLE: false
    #Do you want ChestShop's messages to show up in console?
    LOG_TO_DATABASE: false
    #If true, plugin will log transactions in EBean database
    GENERATE_STATISTICS_PAGE: false
    #If true, plugin will generate shop statistics webpage.
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    #Where should your generated website be saved?
    RECORD_TIME_TO_LIVE: 600
    #How long should transaction information be stored?
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    #How often should the website be generated?
    USE_BUILT_IN_PROTECTION: true
    #Do you want to use built-in protection against chest destruction?
    PROTECT_CHEST_WITH_LWC: true
    #Do you want to protect shop chests with LWC?
    PROTECT_SIGN_WITH_LWC: true
    #Do you want to protect shop signs with LWC?
    MASK_CHESTS_AS_OTHER_BLOCKS: false
    #Do you want to mask shop chests as other blocks? HIGHLY EXPERIMENTAL, CAN LAG!
    SHOW_MESSAGE_OUT_OF_STOCK: true
    #Do you want to show "Out of stock" messages?
    SHOW_TRANSACTION_INFORMATION_CLIENT: true
    #Do you want to show "You bought/sold... " messages?
    SHOW_TRANSACTION_INFORMATION_OWNER: true
    #Do you want to show "Somebody bought/sold... " messages?
    
     
  20. Offline

    Acrobot

    @Jokaru
    What is on the sign?
     
  21. Offline

    winter4w

    ok there will be a sign on top of the store and it says the stock like u can do [stock] or you can do /stock and click he sign but i will lokeit if it was ontop of the shop
     
  22. Offline

    Acrobot

    @winter4w
    /stock would be easy to implement :)
     
  23. Offline

    Jokaru

    Nick
    1
    B 150:70 S
    264

    I try type Diamonds in the 4 line but it does not help. And try to remove protection.
     
  24. Offline

    Acrobot

    @Jokaru
    Please download TeamViewer (if you don't have it), and PM me your ID/PW :)
     
    Jokaru likes this.
  25. Offline

    Jokaru

    well ok but all be in russian i join the game and open all server folders
     
  26. Offline

    Jokaru

    Thats be awesome, when you join shop dont buy or sell diamond, but i type /i 264 64 and try to sell and its work. May be som lag with territory in Factions like with spawn? Thank you friend!!!!
     
  27. Offline

    Acrobot

    Jokaru likes this.
  28. Offline

    winter4w

    ok so yea that will be asome when will it come
     
  29. Offline

    Jokaru

  30. Offline

    Jokaru

    And again THX you VERY MUCH FRIEND!
     
  31. Offline

    Raycrash

    Code:
    2011-09-03 20:23:34 [SEVERE] Could not pass event BLOCK_PISTON_RETRACT 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.BlockPistonRetractEvent.getRetractLocation(BlockPistonRetractEvent.java:18)
        at com.Acrobot.ChestShop.Listeners.blockBreak.onBlockPistonRetract(blockBreak.java:45)
        at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:533)
        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:85)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.BlockPistonExtension.doPhysics(BlockPistonExtension.java:148)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:435)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeId(World.java:379)
        at net.minecraft.server.BlockPistonExtension.doPhysics(BlockPistonExtension.java:146)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:438)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeId(World.java:379)
        at net.minecraft.server.BlockPiston.a(BlockPiston.java:143)
        at net.minecraft.server.World.playNote(World.java:2303)
        at net.minecraft.server.WorldServer.playNote(WorldServer.java:162)
        at net.minecraft.server.BlockPiston.g(BlockPiston.java:93)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:436)
        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:459)
        at net.minecraft.server.World.applyPhysics(World.java:438)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setTypeIdAndData(World.java:391)
        at net.minecraft.server.BlockDiode.a(SourceFile:65)
        at net.minecraft.server.World.a(World.java:1997)
        at net.minecraft.server.World.doTick(World.java:1736)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Tell me if you need plugins running
     

Share This Page