[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

    Fr0zenfr0g

    why isnt the thing so you neded to sneak to break the sign left?
     
  3. Offline

    Acrobot

    @Fr0zenfr0g
    You can still turn it on in config - I just left it as default like that, because many people had problems with it.
     
  4. Offline

    Fr0zenfr0g

    i cant find it :(
     
  5. Offline

    Acrobot

    @Fr0zenfr0g
    "ALLOW_LEFT_CLICK_DESTROYING: true
    #If true, if you left-click your own shop sign you won't open chest's inventory, but instead you will start destroying the sign."
     
  6. Offline

    robxu9

    Hi, I was wondering:

    Is it possible to have the Admin Shop have a finite amount of items, and just restock automatically every X amount of minecraft days?
     
  7. Offline

    Acrobot

    @robxu9
    Hmm, not really - this is the minus of not-having any database.
    I would have to implement a database (file, MySQL, anything) to save this, and the shops wouldn't work on another server :/
     
  8. Offline

    robxu9

    :(

    Well, ChestShop is the best shop I've encountered XD and others are definitely subpar, so I think I'll stick with having infinite items for now. Thanks anyway! :)
     
  9. Offline

    Fr0zenfr0g

    the protect dont work :(
     
  10. Offline

    Acrobot

  11. Offline

    Fr0zenfr0g

    no fail in my console but in both false and true i can just "dig me throw the sign to destroy it"
    (sorry 4 my english) :)
     
  12. Offline

    Godleydemon

    you need LWC for that or Locket. ChestShop doesn't come with protection.
     
  13. Offline

    Fr0zenfr0g

    i need protection for the sign, it had that in 1.7 for me...
     
  14. Offline

    Acrobot

    @Godleydemon
    It does come with protection.

    @Fr0zenfr0g
    Are you sure you aren't just an admin? I can't seem to break other signs.
     
  15. Offline

    Fr0zenfr0g

    i am an admin but i gets so mad when i just breaking my signs, before i couldnt just destroy the signs...
     
  16. Offline

    Darkedge

    If the shop owner tries to buy from themselves, they get kicked, with the message, "received a string longer then allowed 18 <16> or something like that, ideas? (Not that you would need to buy from your own shop, but it's quite an annoying bug.
     
  17. Offline

    Acrobot

    @Fr0zenfr0g
    Just turn on
    ALLOW_LEFT_CLICK_DESTROYING
    to false, so it looks like:
    ALLOW_LEFT_CLICK_DESTROYING: false

    It will open Chest's inventory, instead of destroying the sign.

    @Darkedge
    I had exactly that problem with @Godleydemon
    I have NO CLUE why it happens - I didn't change anything. That sounds more like bukkit's issue. Try re-downloading ChestShop, I moved one unneeded thing away, it should work.
    Also, you can't buy from your own shop - it should show you the chest's inventory instead.
     
  18. Offline

    Fr0zenfr0g

    yes but on admin shops then, they dont have a inventory :)
     
  19. Offline

    Acrobot

    @Fr0zenfr0g
    Yeah, I guess. Well :p I have no idea - just be more careful for now :p
     
  20. Offline

    Fr0zenfr0g

    yes may be but i just wondered if there was a chans that it was a posebility to tix this but may not :D
     
  21. Offline

    MightyMongoose

    I put it on my server and it says it loads up in the server box thing but when people try to buy from it it says they dont have enough money even though they have enough
     
    WoodenAxe likes this.
  22. Offline

    Justink

    Ok i have read alot of this and my problem is no matter what i have set anyone who is not opped in unable to left click any of the signs and use their function however they can all use the right click function of the shop
     
  23. Offline

    iTzAlienX

    Everytime i put the Price to Free you cant buy or sell or do anything its just a sign nothing pops up even in the chat
    1st Line: adminshop
    2nd Line: Amount which is 1
    3rd Line: Free
    4th Line: 270 (Which is wooden Pickaxe)

    And nothing happens i click it and nothing happens
    http://gyazo.com/c0c5b1053bf2609137dd41199e8ca1f7
    ----------------------------------
    CSVersion: 3.2
    Bukkit Version: Official 1.8.1
     
  24. Offline

    WoodenAxe

    having same problem... latest ChestShop and latest RB of bukkit
     
  25. Offline

    Darkedge

    I guess it is possible this is not fully compatible with factions, it's in my claimed land, it might have something to do with bukkit priorities - just speculating, I'll see if it happens if your out of your claimed land, one of my friends made a shop out of their land, and chestshops protection didn't work, I'll see if I can mess with your source when I get home.

    Darkedge.
     
  26. Offline

    Darkedge

    After messing around, I figured out how to fix, and recreate this bug, it happens when you right click, when using a DOUBLE chest, does not happen on single. Fix: Avoid double chests for the time being.
     
  27. Offline

    Darkedge

    When one of my users tries to buy,
    Code:
    2011-09-23 17:41:54 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NullPointerException
    at com.earth2me.essentials.api.Economy.getUserByName(Economy.java:70)
    at com.earth2me.essentials.api.Economy.playerExists(Economy.java:244)
    at com.nijikokun.register.payment.forChestShop.methods.EE17.hasAccount(EE17.java:52)
    at com.nijikokun.register.payment.forChestShop.methods.EE17.getAccount(EE17.java:60)
    at com.Acrobot.ChestShop.Economy.hasEnough(Economy.java:26)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:54)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:76)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:164)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:259)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:591)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  28. Offline

    Alphamaid

    first my English is not native, sorry.
    i use ChestShop 3.12 and i have problem.
    example: (Diamond and Iron Ingot is same case)
    Admin Shop
    1
    500:500
    266(GOLD_INGOT)
    if my account have OP, can buy and sell.
    after deOP, can buy but can't sell.
    after deOP i can buy and sell another thing(ex:Wood,Coal and so on)
    what will i do to solution?
     
  29. What are your permissions?
    Normal users should have:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
     
  30. Offline

    Acrobot

    @Darkedge
    Your Essentials either is too old/something is broken. Please report this to Essentials thread.

    @Justink
    @Alphamaid
    Go to bukkit.yml, change spawn-radius to 0.

    @iTzAlienX
    You have to put either
    B free
    or
    S free
    or even
    B free:free S

    @MightyMongoose
    Are you sure you don't use multiple economy plugins?

    @Darkedge
    Yeah, it only happens with double chests. Better yet, it only happens to only a few people. BETTER yet, it happens only when you have dirt on the sign.

    @Darkedge
    How exactly did you break the sign?
    BTW. What version? Are you sure that person who broke the sign wasn't admin or mod?
     
  31. Offline

    Darkedge

    I just updated essentials... Anyway.
     

Share This Page