[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

    @MagiicPandaa
    You probably have spawn protection - go to bukkit.yml and change spawn-radius to 0.
    Normal players need ChestShop.shop.buy permission to buy, and ChestShop.shop.sell to sell : )
     
  3. Offline

    MagiicPandaa

    Can we please go on Teamviewer?
    When someone with a rank lower than admin tries to use it , it says
    "[Shops] You do not have permission to do that"
     
  4. Offline

    Acrobot

  5. Offline

    MagiicPandaa

    I have sent you the IID and Pass in a Converstion
     
  6. Offline

    MagiicPandaa

    Amazing Guy. Really Friendly. Great Help! Fixed my problem in 30 seconds XD
    Donate to him like i am soon!
     
  7. Offline

    Acrobot

    @MagiicPandaa
    Haha, it's no problem mate :)
    Also, it was easy problem to fix - the letter size in permissions matters!
     
  8. Offline

    MagiicPandaa

    Not sure if you can help me on this one but i have got a Slots Machine plugin and i have used it once but then when i went back on it they had all stopped working and nothing happens when i right click on it.
    Please Help me if you can!
     
  9. Offline

    Acrobot

  10. Offline

    MagiicPandaa

  11. Offline

    philliespwns

    This may sound a bit nooby, but is bukkit 1.8 out yet?

    If so, can I have a link?
     
  12. Offline

    Xarniia

    hi,
    we use your plugin on our server and it is great!
    We often use the adminshop as a form of market in different towns, so i have a suggestion for an new feature:
    a new config file could help a serveradmin very much in which the information of all adminshops are gathered and new adminshops take there prices and amount out of this file. Also every reload every adminshop checks the prices and amoount and change if an admin made changes to the config file.

    So for example:
    In town A an admin builds a gravel shop:
    Adminshop
    64
    2:1
    13 ((gravel))

    ->now the price and the amount is saved in the config/database

    Later an other or the same admin builds up a gravel shop in town B and he need't to know the prices of the other shop:
    Adminshop
    ((nothing))
    ((nothing))
    13 ((gravel))

    ->Chestshop looks up fpr gravel and fills up amount an prices automaticaly!
     
  13. Offline

    Acrobot

  14. Offline

    BadDog

    @philliespwns
    You can also add this RSS feed to your feeds reader, or bookmark it and check it every day, it's the recommended builds feed from team Bukkit. Also, there is a recommended builds thread on the forums if you prefer this way of checking.

    You are planning on rewriting the entire thing? Now that's a sign (no pun) of a developer who's not afraid to do things the hard way! I really like this plugin, so I'm eagerly waiting to see what's you might come up with for the next releases!
     
  15. Offline

    Acrobot

    @BadDog
    Yeah, thanks :)
    I re-wrote the plugin 3 times already, but I feel I need to change how it works internally. Also, sorry, even if it wasn't pun, I still laughed a bit :p
     
  16. Offline

    BadDog

    Hehe! :rolleyes:
    Good luck with your developing then! That's what makes our servers always more fun to play!
     
  17. Offline

    philliespwns

    Awesome! Thanks BadDog and Acrobot!
    This plugin looks rly boss btw. I'm gonna get it once i update my server
     
  18. Offline

    BadDog

    You're welcome, plugins tend to be sometimes hard to follow, especially if you have a lot of them, and keeping track of CraftBukkit releases is also an entire business of its own :D
    Since I can't code, I guess I can at least help other members! Have fun with the shops!
     
  19. Offline

    Massimo1993

    @Acrobot

    i don't now how to use odd item's with iconomychestshop

    edit: i receive this error

    Code:
    2011-09-21 19:46:34 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.IncompatibleClassChangeError: Expected static method info.somethingodd.bukkit.OddItem.OddItem.getItemStack(Ljava/lang/String;)Lorg/bukkit/inventory/ItemStack;
        at com.Acrobot.ChestShop.Items.Odd.returnItemStack(Odd.java:18)
        at com.Acrobot.ChestShop.Items.Items.getFromOddItem(Items.java:42)
        at com.Acrobot.ChestShop.Items.Items.getItemStack(Items.java:32)
        at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:29)
        at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playerInteract.java:77)
        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:168)
        at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:86)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:496)
        at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:91)
        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)
     
  20. Offline

    Acrobot

  21. Offline

    Minecraftonduty

    Can someone PLEASE help me! When I make the permissions (Permissions 3.x (YETI) It still says
    [Shop] You do not have permission to do that.
    Heres what I type in permissions.
    - ChestShop.Shop.buy
    - ChestShop.Shop.sell
    The ' isn't the problem because It automaticly comes up as that. Neither are the spaces and tabs. All other permissions work, but the Chestshops like don't accept what im telling them -.- PLEASE HELP
     
  22. Offline

    danlapid

    where do i paste the permissions? i got an admin shop (home server)
    Admin Shop
    64
    free
    1 (translates to stone)
    but when ppl right click it nothing happends so maybe it has something to do with the permissions in the link?
    http://pastebin.com/aBb36xwJ
    if not the please tell me what to do
     
  23. Offline

    Acrobot

    @Minecraftonduty
    It's ChestShop.shop.buy
    with all-lowercase shop.

    @danlapid
    You should put either B free or S free on the 3rd line.
    B free if you want people to buy for free, S free if you want people to sell for free.
     
  24. Offline

    Pyromatic18

    On my server I am able to sell and buy things at the shops as I'm the admin but when I setup the permissions to allow my players to do so, they can buy items just fine but when they go to sell things they either get permission denied message or nothing happens at all.

    I'm using permissions EX and have tried giving them all commands avaible for Chestshop ie: Chestshop.*

    Any help would be great.
     
  25. Offline

    Acrobot

    @Pyromatic18
    The 1st one - giving players Chestshop.* is a bad idea.
    2nd one - it's case-sensitive. You want to give players ChestShop.shop.*
    Also, be sure to change spawn-radius to 0 (bukkit.yml)
     
  26. Offline

    SPUKI11

    Thank you it works, but when I put enerate statistics: true, I get an error message:


    I use:

    MC 1.8.1
    Bukit 1185
    ChestShop 3.12
     
  27. Offline

    Acrobot

    @SPUKI11
    You have configured your bukkit.yml with username and password - they are wrong.
    Delete bukkit.yml (backup it first) and let bukkit auto-generate it.
     
  28. Offline

    SPUKI11

    Ah thx it works juhuuuuuu :)
     
  29. Offline

    philliespwns

    Just a coding question for mods, but do you need to know how to use java to make them? I'm learning it in school and I wasn't sure if I could apply it here.

    Thanks!
     
  30. Offline

    Acrobot

    @philliespwns
    Sure, you do :)
    Minecraft is written in Java - (almost) everything you do, including mods, plugins, etc. is made with Java ;)
     
  31. Offline

    danlapid

    well i got it to work and i can buy but other people get "you don't have permission" although they are in default group which has the line
    - permissions.build: true
    in it :(
     

Share This Page