[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

    @RaesWolf
    Yep - that's craftbukkit bug :/ Nothing I can do about it.

    @8Keep
    You don't need the whole name, for example, STICKY should work fine :)

    @Austin
    If you install Notepad++, it automatically highlights things for you - it looks a lot more readable.
     
  3. Offline

    tototo583

    the message is "You don't have permission to do that!"
     
  4. Offline

    chrisgun

    thanks... turning log to database off got rid of the console spamming for me
     
  5. @tototo583
    Do you have any permissions plugin? Add some of these permissions to default users group:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
     
  6. Offline

    tototo583

    i have permissions and if you look back a page you will see my groups.yml
    all the permissions are there
     
  7. Offline

    Acrobot

    @tototo583
    That is weird. Your permissions are fine, but your plugin says other things to Bukkit, or something else. Could you list your plugins? (Best - screenshot)
     
  8. Offline

    tyzoid

    @Acrobot
    I get this error whenever I try to buy something:
    stackTrace (open)

    Code:
    java.lang.NullPointerException
            at com.Acrobot.ChestShop.Economy.hasEnough(Economy.java:33)
            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:74)
            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.interact(ItemInWorldManager.java:259)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            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:92)
            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)
    


    CB #1185
    iConomy 5
    ChestShop v3.22
    Permissions 3

    BTW, this plugin is awesome :)

    P.S. I am admin/op (not in creative mode)
     
  9. Offline

    Acrobot

    @tyzoid
    Did iConomy 5 get loaded at startup?
    It sounds like it didn't.
    Thanks :)
     
  10. Offline

    GECLAN Erik

    My server says it's using permissions 2.7.7 [INFO] [ChestShop] Permissions version 2.7.7 loaded
    How do i change it to permissionbukkit as theres nothing about that in the config?
     
  11. Offline

    Acrobot

    @GECLAN Erik
    You can't change it. If you're using PermissionsBukkit bridge - either delete it, or you can try giving superpermbridge before the nodes, like:
    superpermbridge.ChestShop.shop.buy

    If this won't work, you should try asking in PermissionBukkit's thread.
     
  12. Offline

    Sp0ng3b0b

    Hmm i cant sell or buy Leaves from the server? Any work around?
     
  13. Offline

    Acrobot

    @Sp0ng3b0b
    Type /iteminfo
    They'll tell you the leaves type - they apparently are 5 and 6 in minecraft 1.8
     
  14. Offline

    Sp0ng3b0b

    Tells me 4, so what do i have to do? type admin shop -> item 18:4 ?
     
  15. Offline

    Acrobot

  16. Offline

    Sp0ng3b0b

    KK xD typo

    Do i have to make a shop for every Leaf color or what can i do?
     
  17. Offline

    Acrobot

    @Sp0ng3b0b
    Yeah - ATM you'd have to. There are 3 types, AFAIK.
     
  18. Offline

    tyzoid

  19. Offline

    Acrobot

    @tyzoid
    Hmm - I can't see ChestShop stating though.
     
  20. Offline

    tyzoid

  21. Offline

    Acrobot

    Yep - ChestShop doesn't load iConomy, that's why:
    Code:
    2011-10-08 10:37:21 [INFO] [iConomy] Configuration Integrity Start:
    ‪118.‬
    2011-10-08 10:37:21 [INFO]     - System.Default.Bank.Currency.Major is null or missing, Defaulting to: [ 'Dollar', 'Dollars' ]
    ‪119.‬
    2011-10-08 10:37:21 [INFO]     - System.Default.Bank.Currency.Minor is null or missing, Defaulting to: [ 'Coin', 'Coins' ]
    ‪120.‬
    2011-10-08 10:37:21 [INFO] [iConomy] Configuration Integrity End.
    ‪121.‬
    2011-10-08 10:37:21 [INFO] [iConomy] Driver error: java.lang.NullPointerException
    ‪122.‬
    2011-10-08 10:37:21 [INFO] [iConomy] Database initialization failed: java.lang.NullPointerException
    ‪123.‬
    2011-10-08 10:37:21 [INFO] [iConomy] Plugin disabled.
     
  22. Offline

    tyzoid

    @Acrobot
    Oops... my bad.

    I'll have to fix that [pig]

    Edit: Yup that was the issue. Thanks for spotting what I failed to realize was an error (maybe I should get more sleep) :)
     
  23. Offline

    Fightcraft

    Hello!
    Is use this plugin too, for my Minecraftserver: sandcraft.dyndns.org:1500
    I have a big shop, where all items are...
    Do I have to fill all the boxes of hand?
     
  24. Offline

    Acrobot

    @Fightcraft
    If you use Admin Shop - it doesn't even need chests.
    If you're admin, just type in "Admin Shop" on the first line, and the rest of the lines like normal.
     
  25. Offline

    tyzoid

    @Fightcraft
    If you do want chests, there are a few plugins that can help you.

    ScrapBukkit - A default plugin that allows you to give yourself more than 64 items at once.

    I can't seem to find the other chest fillers, but there are a few that are outdated. Maybe they are all on bukkitDEV...
     
  26. Offline

    Corian

    I've been using a clean bukkit without any plugins other than iConomy. And still my shops can only right click and not left click (tested with AdminShops also). The left click does works for players defined in the op's file. I even tried reversing the left/right click in the config.yml, which does works but still no left click on shops for non-ops.

    After that i installed permissionBukkit and made groups with all the ChestsShop.shop... permissions on true and it still won't work (except for player in the ops.txt).

    So something is there something wrong with the current version?

    I hope it can be fixed :)
     
  27. Offline

    Acrobot

    @Corian
    Go to bukkit.yml, change spawn-radius to 0 :)
     
  28. Offline

    Austin

    I created an account through iCo 7 called "server"

    I went in to the config and changed the server account to "server" but on shop creation, the 120 still vanishes. Its not a huge issue though, because new players come in with 30. It works out in the end.
     
  29. Offline

    Acrobot

  30. Offline

    TooNick

    Creating a chest shop works but what to do after that? other people can just take out items without buying anything. I have Iconomy.
     
  31. Offline

    Acrobot

    @TooNick
    You probably disabled the protection in config, or gave everyone ChestShop.admin permission (* and ChestShop.* will do the same)
    To buy and sell you need to right-click to buy, left-click to sell. (Configurable in config)
     

Share This Page