[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

    @gangetsu
    Yes, he can sell/buy anything. Just be sure that he doesn't enter his name on the first line.
    Also, are you running ChestShop 3?

    @sammmetal
    How exactly would that conflict?
     
  3. Offline

    sammmetal

    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).
    Told him (don't write your name) this appear automatically.​
     
  4. Offline

    sammmetal

    How exactly would that conflict?

    It try to find an related additions
    but i think is not related with chestshop
     
  5. Offline

    arminecay

    I was wondering if there were any way to share a shop with a player so that when someone buys something half goes to one player and half goes to another player? If not could you please in the future add something to work like that?
     
  6. Offline

    Acrobot

  7. Offline

    arminecay

    Ah OK well hope you can work on that.
     
  8. Offline

    Frogging101

    @Acrobot

    I'm having a problem with this plugin. It works great, but when I want to stop or reload my server, the plugin fails to shut down. It just says "[ChestShop] Version 3.0 Shutting Down!", or something like that. And it doesn't continue after that.

    I have to forcefully kill the server to restart it.
     
  9. Offline

    dakzerox

    it fail with lockette
    can create shop at other player lock chest
     
  10. Offline

    bigbass1997

    can someone explain to me what the HTML folder is for?
     
  11. Offline

    Acrobot

    @bigbass1997
    If you want to generate a shop stats website, you should put template there.

    @Frogging101
    Are you sure it's ChestShop? I have found that often iConomy causes a while to start-up, maybe the same with shutdown?

    @dakzerox
    I'll examine that.
     
  12. Got this error tonight (full log of this):
    Show Spoiler

    Code:
    2011-08-17 02:10:50 [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.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:437)
        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:439)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setData(World.java:349)
        at net.minecraft.server.BlockLever.interact(BlockLever.java:154)
        at net.minecraft.server.BlockLever.b(BlockLever.java:130)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:76)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-17 02:10:50 [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:437)
        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:435)
        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:437)
        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:439)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setData(World.java:349)
        at net.minecraft.server.BlockLever.interact(BlockLever.java:154)
        at net.minecraft.server.BlockLever.b(BlockLever.java:130)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:76)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-17 02:10:50 [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:437)
        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:435)
        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.BlockPistonExtension.doPhysics(BlockPistonExtension.java:148)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:437)
        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:435)
        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:437)
        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:439)
        at net.minecraft.server.World.update(World.java:407)
        at net.minecraft.server.World.setData(World.java:349)
        at net.minecraft.server.BlockLever.interact(BlockLever.java:154)
        at net.minecraft.server.BlockLever.b(BlockLever.java:130)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:76)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-17 02:10:51 [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.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:435)
        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:434)
        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)
    2011-08-17 02:10:51 [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:436)
        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:434)
        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:435)
        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:434)
        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)
    2011-08-17 02:10:51 [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:436)
        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:434)
        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.BlockPistonExtension.doPhysics(BlockPistonExtension.java:148)
        at net.minecraft.server.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:436)
        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:434)
        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:435)
        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:434)
        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)
    2011-08-17 02:10:51 [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:437)
        at net.minecraft.server.BlockDiode.c(SourceFile:211)
        at net.minecraft.server.Chunk.a(Chunk.java:265)
        at net.minecraft.server.World.setRawTypeIdAndData(World.java:297)
        at net.minecraft.server.World.setTypeIdAndData(World.java:390)
        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)
    2011-08-17 02:10:51 [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.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:434)
        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:434)
        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)
    2011-08-17 02:10:51 [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.World.k(World.java:459)
        at net.minecraft.server.World.applyPhysics(World.java:439)
        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:437)
        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:434)
        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:434)
        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)
    2011-08-17 02:10:51 [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:439)
        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:437)
        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:439)
        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:437)
        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:434)
        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:434)
        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)


    EDIT: Tried to reproduce this error and i succeed. Try to move chest with piston or sticky piston. Chest will not move, piston will stay stuck and you will get this error.
     
  13. Offline

    Acrobot

    @Boos
    Honestly, I believe that's a bug in CraftBukkit.

    EDIT: @Boos
    Hmm... Weird, but I'll fix that, thanks
    EDIT2: I'll submit that on leaky.bukkit.org
     
  14. Offline

    ZombieRampage

    - CraftBukkit 1066
    - ChestShop 3.01
    - Your economy plugin BOSEconomy
    - Permission plugin PermissionsBukkit 1.1
    I'm getting a [Shop] you can't buy here! message for every type of user. Lowest level user is Builder, which has the following permissions:
    Code:
                ChestShop.shop.create: true
                ChestShop.shop.buy: true
                ChestShop.shop.sell: true
    Not sure what to do. This was working before moving to PermissionsBukkit
    Any idea what I should do? Thanks.
     
  15. Offline

    Acrobot

    @ZombieRampage
    You can't buy here - your 3rd line is wrong.
    It should be either:
    B 5:5 S
    S 5:5 B
    B 5
    S 5

    (B and S can be on either side of the price)
     
  16. Offline

    ZombieRampage

    LOL. Stupid is as stupid does. Thanks man! That was a dumb thing. I owe you a coffee on payday!
     
  17. Offline

    Acrobot

    @ZombieRampage
    Haha, thanks :)
    I'll probably make it check if both of the prices are 0 :)
     
  18. Offline

    Poeschl

    could you add a feature in the next version to destroy shops with left-click with a specific item on the shops chest?
     
  19. Offline

    Acrobot

    @Poeschl
    But why?
    It's easy to sneak and just destroy the sign and chest, also, it could make the plugin less intuitive.
     
  20. Offline

    Poeschl

    atm on my server i can't destroy my own shop with this method. To destroy the shop i have to use the superpickaxe from worldedit.
    When the chest is destroyed and i try to destroy the sign it says: [Shop] no chest
     
  21. Offline

    Acrobot

    @Poeschl
    Are you SNEAKING? (Shift)
     
  22. Offline

    Poeschl

    oh...., i knew i have forgotten something :)
    thanks a lot
     
  23. Offline

    Kristure

    Having some problems using the shop. What i do is to build the shop, and when i try to use it the content of the chest just shows up. My friends cant use it even. When they try to use it they get this error "You don't have permission to do that".

    My versions are
    Code:
    Bukkit: git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    Chest Version: 3.01
    Economy: iConomy (latest)
    Permissions: PermissionsEx (latest)
    I also tried with essentials economy but it aint working either.

    Thanks in advance for any help.
     
  24. Offline

    Acrobot

    @Kristure
    Did you add ChestShop.shop.* permission? (case-sensitive)
     
  25. Offline

    Kristure

    This is my permissions.yml file.
    Code:
    groups:
        default:
            default: true
            permissions:
            - essentials.signs.use.*
            - essentials.spawn
            - essentials.rules
            - essentials.motd
            - essentials.list
            - essentials.helpop
            - essentials.help
            - modifyworld.*
        moderator:
            permissions:
            - essentials.time
        admins:
            permissions:
            - chestshop.shop.*
            - lwc.admin
            - essentials.*
            prefix: '&2Admin&6 '
    users:
        Omegaoalfa:
            group:
            - moderator
            - default
            - admins
        Kristure:
            group:
            - admins
    Correct me if the chestshop.shop there is incorrect.

    Sure the plugin is compatible with PermissionsEx (PeX)?

    EDIT: I noticed you're case sensitivity notice, and i have to add that i've tried all these combinations:
    Code:
    ChestShop.*
    ChestShop.shop.*
    ChestShop.shop.buy
    ChestShop.shop.sell
    ChestShop.admin
     
  26. Offline

    Joggal

    can you make a own log onley for chest, shop`?
    it will be so nice.
     
  27. Offline

    Kristure

    Code:
    21:03:04 [INFO] [ChestShop] version 3.01 initialized!
    21:03:04 [INFO] [ChestShop] iConomy 5 loaded.
    21:03:04 [INFO] [ChestShop] Permissions version 2.7.7 loaded.
    21:03:04 [INFO] [ChestShop] LWC version 3.31 loaded.
    Seems it has loaded the wrong Permissions?
     
  28. Offline

    Acrobot

    @Kristure
    Yeah, it needs to be case-sensitive.
    BTW, just add * permission for admins, and ChestShop.shop.* for default group.

    @Joggal
    It's there already.
    Look for LOG_TO_FILE

    @Kristure
    It didn't load the wrong permissions, it is only a compatility "layer" between PermissionsEx and other plugins - it tricks them ino thinking it's permissions 2.7
     
  29. Offline

    Kristure

    I activated LOG_TO_FILE and got a completely empty file.

    Could this have anything to do with it?
    Code:
    [INFO] Fake Permissions version 2.7.2 is disabled!
    I believe it is something with Permissions since my LWC aint working for others than me neither. Even thou i've given them the rights that is needed.

    EDIT:
    I don't know if this will help, but ill add the entire command screen from starting the server, until it has been successfully started.
    Code:
    151 recipes
    16 achievements
    22:43:11 [INFO] Starting minecraft server version Beta 1.7.3
    22:43:11 [INFO] Loading properties
    22:43:11 [INFO] Starting Minecraft server on *:25565
    22:43:11 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-
    g73697a4-b1000jnks (MC: 1.7.3)
    22:43:11 [INFO] [PermissionsEx] sql backend registered!
    22:43:11 [INFO] [PermissionsEx] file backend registered!
    22:43:11 [INFO] [PermissionsEx] PermissionEx plugin initialized.
    22:43:11 [INFO] LWC: Loading shared objects
    22:43:11 [INFO] LWC: Protection cache: 0/10000
    22:43:11 [INFO] LWC: Native library: plugins/LWC/lib/native/Windows/x86/sqlitejd
    bc.dll
    22:43:11 [INFO] MLog clients using java 1.4+ standard logging.
    22:43:11 [INFO] [PermissionsEx] Initializing file backend
    22:43:11 [INFO] Preparing level "world"
    22:43:11 [INFO] Preparing start region for level 0 (Seed: -8960614566405700626)
    22:43:12 [INFO] Preparing start region for level 1 (Seed: -8960614566405700626)
    22:43:12 [INFO] Preparing spawn area: 20%
    22:43:13 [INFO] [ChestShop] version 3.01 initialized!
    22:43:13 [INFO] [ChestShop] iConomy 5 loaded.
    22:43:13 [INFO] [ChestShop] Permissions version 2.7.7 loaded.
    22:43:13 [INFO] [ChestShop] LWC version 3.31 loaded.
    22:43:13 [INFO] Loaded Essentials build 2.5.6 by [Zenexer, ementalo, Aelux, Bret
    tflan, KimKandor, snowleo, ceulemans, Xeology]
    22:43:13 [INFO] [Essentials] Payment method found (iConomy version: 5)
    22:43:13 [INFO] Loaded EssentialsChat build 2.5.6 by essentials team
    22:43:13 [INFO] Loaded EssentialsGeoIP build 2.5.6 by essentials team
    22:43:13 [INFO] This product includes GeoLite data created by MaxMind, available
     from http://www.maxmind.com/.
    22:43:13 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10
    minutes!
    22:43:13 [INFO] GroupManager version 1.0(alpha-5) [Zombie-Version, please switch
     to Permissions 3] is enabled!
    22:43:13 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? tr
    ue; trace: 10]
    22:43:13 [INFO] Loaded EssentialsProtect build 2.5.6 by essentials team
    22:43:13 [INFO] Loaded EssentialsSpawn build 2.5.6 by essentials team
    22:43:13 [WARNING] config broken for xmpp
    22:43:13 [INFO] Loaded EssentialsXMPP build 2.5.6 by essentials team
    22:43:14 [INFO] [iConomy] Logging is currently disabled.
    22:43:14 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    22:43:14 [INFO] [iConomy] Developed by: [Nijikokun]
    22:43:14 [INFO] [PermissionsEx] Superperms support enabled.
    22:43:14 [INFO] [PermissionsEx] v1.13 enabled
    22:43:14 [INFO] [ChatManager] ChatManager disabled. Check config.yml!
    22:43:14 [INFO] [ChatManager] ChatManager disabled!
    22:43:14 [INFO] Fake Permissions version 2.7.2 is enabled!
    22:43:14 [INFO] LWC: Loaded 135 locale strings (0 overrides)
    22:43:14 [INFO] Fake Permissions version 2.7.7 is enabled!
    22:43:14 [INFO] [iConomy] hooked into Permissions.
    22:43:14 [INFO] LWC: Permissions API: NijiPermissions
    22:43:14 [INFO] LWC: Currency API: iConomyCurrency
    22:43:14 [INFO] LWC: Loading SQLite
    22:43:14 [INFO] LWC: Using: Native
    22:43:14 [INFO] LWC: Precached 19 protections.
    22:43:14 [INFO] LWC: At version: 3.31-git-LWC-b9ea01e8c2f66480ada443ba9084dfbe98
    32f06e-b81jnks
    22:43:14 [INFO] [Modifyworld] Modifyworld disabled. Check config.yml!
    22:43:14 [INFO] [Modifyworld] Modifyworld disabled!
    22:43:14 [INFO] [VanishNoPickup] Essentials detected and hooked.
    22:43:14 [INFO] [VanishNoPickup] 1.9.12+essentials2 enabled.
    22:43:14 [INFO] Server permissions file permissions.yml is empty, ignoring it
    22:43:14 [INFO] Done (0.255s)! For help, type "help" or "?"
     
  30. Offline

    Acrobot

    @Kristure
    Oh, that's a weird issue, I'll see it later.

    For your error: you've got BOTH groupManager PermissionsEx.
     
  31. Offline

    Kristure

    @Acrobot
    So getting rid of groupManager may fix it?
     

Share This Page