[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

    facerollaaa

    Ok thankyou
     
  3. Offline

    MJohnny09

    CraftBukkit version: Bukkit-1.3.1-R2.0-B2340jnks - ChestShop version 3.46 - Your economy plugin Mineconomy - No unless Essentials counts I can create shops, but I can't buy. When I try to sell 1 cobblestone, and I have 64, it says I don't have enough. (I am using Vault as well)
     
  4. Offline

    RasCas

    Regarding worldguard flag.
    I want to have a market place for players and some Admin Shops around the world.
    If i flag the marketplace, do the Admin Shops outside the region still keep their function?
     
  5. Offline

    Acrobot

    MJohnny09
    I believe you might have your sign wrong. Check /iteminfo and if it is the same as name on sign.

    RasCas
    Admin Shops function normally. The flag is only used for shop building.
     
    RasCas likes this.
  6. Offline

    RasCas

    Hm, not quit what i exspected. It seems as if you do not need chestshop.create permission anymore. Even Players without this permission are able to set up a shop in the region with chestshop allow.
     
  7. Offline

    MJohnny09

    My sign setup:
    AdminShop
    1
    B 2:1 S
    Cobblestone
     
  8. Offline

    Acrobot

    MJohnny09
    Hmm... Seems just fine. Are you sure you didn't press the right mouse button? Right mouse button is buy, left is sell (unless you specified otherwise in the config)
     
  9. Offline

    MJohnny09

    Acrobot
    Yea I haven't changed the config and it still doesn't buy or sell. I thought the economy part of essentials might be causing problems so I gave myself money on that too, but it still didn't work. Is there something I have to configure to pick which currency it uses?
     
  10. Offline

    Acrobot

    MJohnny09
    Hmm... Any errors in the console? What is the EXACT message you get?
     
  11. Offline

    MJohnny09

    Acrobot
    Only messages in game I get are that the shop is created, but there is not interaction. I'll upload server log. At 22:00:47 is where the error happened. I looked through it and can't figure out what is causing it.
    Show Spoiler
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:1
    14)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.depositPlayer(E
    conomy_MineConomy.java:159)
    at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:17)
    at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:36)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buyFromPlayer(Shop.java:53)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:123)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:32 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:1
    14)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.depositPlayer(E
    conomy_MineConomy.java:159)
    at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:17)
    at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:36)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buyFromPlayer(Shop.java:53)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:123)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:32 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:1
    14)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.depositPlayer(E
    conomy_MineConomy.java:159)
    at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:17)
    at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:36)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buyFromPlayer(Shop.java:53)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:123)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:33 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:355)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649)
    at net.minecraft.server.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.getBalance(Econ
    omy_MineConomy.java:113)
    at com.Acrobot.ChestShop.Economy.Vault.balance(Vault.java:29)
    at com.Acrobot.ChestShop.Economy.Economy.balance(Economy.java:60)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:81)
    at com.Acrobot.ChestShop.Shop.Shop.sellToPlayer(Shop.java:59)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:121)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:33 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:355)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649)
    at net.minecraft.server.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.getBalance(Econ
    omy_MineConomy.java:113)
    at com.Acrobot.ChestShop.Economy.Vault.balance(Vault.java:29)
    at com.Acrobot.ChestShop.Economy.Economy.balance(Economy.java:60)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:81)
    at com.Acrobot.ChestShop.Shop.Shop.sellToPlayer(Shop.java:59)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:121)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:33 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:355)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649)
    at net.minecraft.server.Packet15Place.handle(SourceFile:58)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.getBalance(Econ
    omy_MineConomy.java:113)
    at com.Acrobot.ChestShop.Economy.Vault.balance(Vault.java:29)
    at com.Acrobot.ChestShop.Economy.Economy.balance(Economy.java:60)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:81)
    at com.Acrobot.ChestShop.Shop.Shop.sellToPlayer(Shop.java:59)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:121)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    22:00:47 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:332)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:177)
    at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:1
    14)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:546)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:276)
    at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581)
    at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
    at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException
    at me.mjolnir.mineconomy.internal.MCCom.getCurrencyValue(MCCom.java:568)

    at me.mjolnir.mineconomy.internal.MCCom.getExternalBalance(MCCom.java:11
    36)
    at net.milkbowl.vault.economy.plugins.Economy_MineConomy.depositPlayer(E
    conomy_MineConomy.java:159)
    at com.Acrobot.ChestShop.Economy.Vault.add(Vault.java:17)
    at com.Acrobot.ChestShop.Economy.Economy.add(Economy.java:36)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buyFromPlayer(Shop.java:53)
    at com.Acrobot.ChestShop.Listeners.Player.PlayerInteract.onPlayerInterac
    t(PlayerInteract.java:123)
    at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:330)
    ... 16 more
    >
     

    Attached Files:

  12. Offline

    Shadus

    Ok... Using PEX, ChestShop... here's the configs, no one can buy.
    config.yml
    http://pastebin.com/HkZWXEnz

    permissions.yml
    http://pastebin.com/LE1EwgTa

    00:04:12 [INFO] Plugins (22): EconXP, Craftipedia, WorldEdit, CoreProtect, AutoGamemode, Vault, N3W_TheEndAgain, PermissionsEx, Modifyworld, AutoSaveWorld, CommandLogger, LWC, MobArena, TreeAssist, WorldGuard, MagicalSpells, dynmap, Dynmap-WorldGuard, WorldBorder, ChatManager, ChestShop, AdminCmd
    Craftbukkit RB 1.3.1-R2.0
    ChestShop 3.46
    PEX 1.19.3

    Setup shop as:
    Admin Shop
    64
    B 0:0 S
    Stone
    It responds- "[Shop] Shop Successfully Created!"
    When anyone right clicks or left clicks on it they get the message
    "[Shop] You can't buy here!" (or sell if thats what the click would do)

    No errors on console, no issues otherwise. No warnings on boot, etc. I tried wiping entire directory and re-setting up... no go. This isn't in a wg region.
    (Posted it on devbukkit reply too but it looks like this might be preferred place for support)
     
  13. Offline

    Acrobot

    MJohnny09
    The error is in Mineconomy and it says
    "Caused by: me.mjolnir.mineconomy.exceptions.NoCurrencyException"

    Shadus
    B 0:0 S means "no buying nor selling".

    Set the price to "free", like "B free:free S" to allow selling/buying for free.
     
  14. Offline

    TheMrGamer101

    I just got the plugin, I stopped my server than ran it, and I didn't do anything in the config file, and I went inside my server. I got LWC. I place a chest and a sign above it and when I was done, it said Shop created. So users can just go in and buy things? I tried testing it by myself, but didn't work. Do I need LWC economy enabled?
     
  15. Offline

    Acrobot

    TheMrGamer101
    Yes, users can just go in and buy things. It doesn't work for you because owner of the shop cannot sell/buy from it, clicking on the sign only opens the chest.
     
  16. Offline

    RasCas

    Regarding 3.50 it's around here for so long, is it a beta or should i switch from 3.46.
     
  17. Offline

    bigbend

    Is 3.50 compatible with the latest Craftbukkit dev build or do I have to downgrade to 1.3.1R2.0?

    Thanks,
    Bigbend
     
  18. Offline

    Acrobot

    RasCas
    It's a beta. I'm still waiting for bug reports, because I don't get any for it.

    bigbend
    Yes, it is compatible.
     
  19. Offline

    bigbend

    I tried running Chestshops 3.50 with CraftBukkit buiild #2360 but am experiencing the same problem as before. When I try to buy or sell, it just opens the chest and give me the EssentialsProtect message. I am op on my server so I know that shouldn't be the problem. Is there something in the config file I'm missing? I am using PermissionsBukkit for permissions.
     
  20. Offline

    RasCas

    That's good isn't it? Seems as if 3.50 is bugfree. ;-)
     
  21. Offline

    Acrobot

    RasCas
    Yeah, either that, or there are no users reporting bugs for it :p

    bigbend
    "It just opens the chest" - that means that you're trying to buy/sell to your own shop. It's not possible, ChestShop opens you chest's inventory. Try other shops.

    Either that, or you're clicking the chest. If so, try clicking the sign instead.
     
  22. Offline

    bigbend

    So it's not possible to use my own shop? That seems kind of strange.
     
  23. Offline

    RasCas

    Why do you want to sell or buy from yourself? You already own the items. ;-)
    All you have to do is restock or take the items.
    That's the main difference between Player and Admin Shops.
     
  24. Offline

    Ardawen

    Hello I am running chestshop 3.4
    I know selling enchanted items is possible, it works I confirmed that, but some items do not work for example:

    Bow ARROW DAMAGE 5 - ARROW KNOCKBACK 2 - ARROW FIRE 1 - ARROW INFINITE 1 (261:0-btq085 of chestshop)

    I found more that don't work.

    I'm trying to sell them to my players as a sort of reward they can chose
    - will there be more enchanted items added later
    - do you have a list of the enchanted item that you DID add
    - do you need more information of me
     
  25. Offline

    Acrobot

    bigbend
    Nope, it's not possible to use your own shop, because you can easily retrieve the items from the chest.
    RasCas is right.

    Also, to whom it might be interesting - I implemented REMOVE_EMPTY_CHESTS option, which is an extension for REMOVE_EMPTY_SHOPS option, which only removed signs.

    Also, added a message on successful restricted sign creation.

    Also, shift + click buys all possible items same as the one you're holding. (Configurable in the config)

    Also, added an option to "stick" signs to chest on sign creation.

    Also, added an option to turn off the default protection when another plugin is protecting the chest.

    Also, added an option to turn off sign protection totally.
     
  26. Offline

    xduckxx

    *****FIXED*****


    Acrobot For some reason players cant buy from the adminShop? what permissions does that require?

    - CraftBukkit version 1.3.1 R2.0
    - ChestShop version: latest
    - Your economy plugin BOSEconomy
    - Have you got any Permission plugin? Which one? PermisionsBukkit (only got permissions to try and fix this)
     
  27. Offline

    bigbend

    Ok so I tried it again today with no iConomy and it still does not work. All it does is give me the EssentialsProtect message. No transaction whatsoever. Could I send you my config file and you can tell me what's wrong? I heard about Admin and Players shops, what's the difference? How do I create an Player shop vs. an Admin shop? Sorry for all the questions, but I'm new to this.

    Thanks,
    Bigbend
     
  28. Offline

    bigbend

    So is there a new version of 3.50 out? Cause I am running 3.50t004 and wanted to make sure that was the latest.

    Thanks,
    Bigbend
     
  29. Offline

    bigbend

    Got it fixed! Turns out they were working all along, just I was an admin so I thought it wasn't working. Quick question (hopefully final one too) Is it possible to make it so that other admins can use the shop just not the one who created it?

    Many thanks,
    Bigbend
     
  30. Offline

    Acrobot

    bigbend
    3.50t0004 is the latest one published, but there is one newer that I have on my pc.

    Also, for your question - all admins can use the shop...
     
  31. Offline

    Chalemi

    hi i am having an error,

    12:31:52 [INFO] Done (2.667s)! For help, type "help" or "?"
    12:31:52 [INFO] [Metrics] Server returned HTTP response code: 502 for URL: http
    //mcstats.org/report/ChestShop

    not sure what is up but everything i have is up to date, just finished checking. any help please?
     

Share This Page