[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

    @ginner159
    Selling kits isn't in ChestShop 3, but will be possible in CS4.
    And thanks :)
     
  3. Offline

    mineHAVOC

    i <3 you..no homo
     
  4. Offline

    Acrobot

  5. Offline

    mineHAVOC

  6. Offline

    benthamanowns

    ok well i tried to see what the problem is easier. i took out all the pex crap and everything is running correctly. its not giving any null.
    i am getting this error now 05:07 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
     
  7. Offline

    Acrobot

    @benthamanowns
    Ok
    1. Are you running the official version or the BETA? If beta, download it again.
    2. Could you post the whole error?
     
  8. Offline

    mineHAVOC

  9. Offline

    benthamanowns

    i downloaded it maybe a week ago.
    could u give me the actual link then please? the non beta one
     
  10. Offline

    benthamanowns

    @Acrobot
    05:25 PM [INFO] [Pail] Setting up window...
    05:25 PM [INFO] [Pail] Pail 0.7.5 Enabled
    05:25 PM [INFO] Preparing level "Ben's WorldA"
    05:25 PM [INFO] Default game type: 0
    05:25 PM [INFO] Preparing start region for level 0 (Seed: 4612512896721804979)
    05:25 PM [INFO] Preparing spawn area: 32%
    05:25 PM [INFO] Preparing start region for level 1 (Seed: 1)
    05:25 PM [INFO] Preparing spawn area: 8%
    05:25 PM [INFO] Preparing spawn area: 65%
    05:25 PM [INFO] Preparing start region for level 2 (Seed: 1)
    05:25 PM [INFO] Preparing spawn area: 20%
    05:25 PM [INFO] Preparing spawn area: 85%
    05:25 PM [INFO] CraftBukkitUpToDate version 2.7.1 is enabled!
    05:25 PM [INFO] PailPlus v0.2 beta enabled
    05:25 PM [INFO] [ChestShop] version 3.29 initialized!
    05:25 PM [INFO] Server permissions file permissions.yml is empty, ignoring it
    05:25 PM [INFO] Done (0.622s)! For help, type "help" or "?"
    05:25 PM [INFO] CButD: CraftBukkit is Outdate, try to download new version
    05:25 PM [INFO] The automatic update-Check only work every 6 hours, the last check was 70 minutes ago.
    05:25 PM [INFO] bob2671 [/5.156.26.204:49948] logged in with entity id 386 at ([Ben's WorldA] 515.3000000119209, 68.0, 232.39546580681744)
    05:25 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:25 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:25 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:25 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:25 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [INFO] CButD: CraftBukkit download new Build, please stop the server and copy C:\Users\Ben\Desktop\MINECRAFT UPDATE 1.0.0\bukkit_update\craftbukkit-0.0.1-SNAPSHOT.jar to your Main-Folder.
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    05:26 PM [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
     
  11. Offline

    number1_Master

    bPerms doesn't work with ChestShop, sry for the late reply (only ops can do everything)
     
  12. Offline

    Acrobot

    @benthamanowns
    Non-beta:
    https://github.com/downloads/Acrobot/ChestShop-3/ChestShop3.zip

    Hmm... Weird error - I can't tell you what is wrong, because the message isn't full :/
    Try deleting all ChestShop remainings and downloading ChestShop from the link I gave you.

    @nunber1_Master
    bPerms works with ChestShop.
    If only OPs can do everything, be sure you are configuring bPerms in the propper way.
    It's
    ChestShop.shop.*
    (case-sensitive) - for all shop stuff (buy/sell/create)
    ChestShop.*
    (case-sensitive) - for all stuff (buy/sell/create/admin shops/etc.)

    @mineHAVOC
    Haha, no problem. Glad it's working for you :)
     
  13. Offline

    number1_Master

    yup, have lowercaseall in bperms config = false, and i did put caps
     
  14. Offline

    Acrobot

  15. Offline

    FuRiouSOne

    Beta seems to have fixed my only issue with LWC conflict, thanks. Just hope my members dont run across something else that might have broke in the beta version :).
     
  16. Offline

    Acrobot

    @FuRiouSOne
    Sure :)
    If you find anything broken, just report it here :p
     
    FuRiouSOne likes this.
  17. Offline

    Jileet

    I made admin shops and guests can purchase but cannot sell items back to it. I have to sign done correctly. BUT when a user makes a shop you can sell AND buy from it. How can i make it so guests can SELL to the admin shops also? please help! if you want to see the problem go to gc.minecraft.ms and go to /warp shops please respond quickly!
     
  18. Offline

    zoolder101

    People spam the shops to the point where it crashes the server, is there a way to add a delay? Can't find it in the config.
     
  19. Offline

    Acrobot

  20. Offline

    jeroen1602

  21. Offline

    Acrobot

    @jeroen1602
    Update then. 3.29 is the latest version.
     
  22. Offline

    zoolder101

    Alright thanks! Great plugin, keep up the good work.
     
  23. Offline

    cr0ss

    @Acrobot

    I hope you don't mind but I took the liberty of grabbing your source for my use (in preventing creative mode users from buying or selling from shops). Here is the relatively simple code that fixed it for me. Not sure if you want to add it/put it in the config as a toggle, but here it is in the player interact.


    Code:
    Action buy = (Config.getBoolean(Property.REVERSE_BUTTONS) ? Action.LEFT_CLICK_BLOCK : Action.RIGHT_CLICK_BLOCK);
    
    
    /* cr0ss CODE HERE */
            if (player.getGameMode().equals(GameMode.CREATIVE))
            {
                if (action == buy)
                {
                    player.sendMessage("You cannot buy in creative mode! ");
                    return;
                }
            }
            if (player.getGameMode().equals(GameMode.CREATIVE))
            {
                if (action == buy) ShopManagement.sell(sign, player);
                {
                    player.sendMessage("You cannot sell in creative mode! ");
                    return;
                }
            }
    /* END SR CODE*/
            if (action == buy) ShopManagement.buy(sign, player);
            else ShopManagement.sell(sign, player);
        }
    Thanks for such a great plugin.
     
  24. Offline

    Gaurav1234

    CraftBukkit version (type /version in chat)
    git-Bukkit-1.0.1-R1-1-g1e6a083-b1602jnks (MC: 1.0.1) (Implementing API version 1.0.1-R2-SNAPSHOT)
    - ChestShop version (type /csversion in chat)
    3.24
    - Your economy plugin (iConomy? BOSEconomy? other one?)
    EssentialsECON
    - Have you got any Permission plugin? Which one?
    bPermissions
    Problem:
    ^chestshop.shop.create
    (the '^' makes it negative)
    Doesnt work
    People in my server can still make shops And i dont want that to happen
    Idk why it isnt working
    But please help
    thanks
    Gaurav1234
     
  25. Offline

    koolblue87

    Can someone show me how to do permissons im lost 1st time doin this
     
  26. Offline

    dogstar

    Is it near the Spawn? Spawn protection set in bukkit config has a range, and if overlaps the admin chest, only op users can fully use it. Either move the shop or reduce the spawn protection. You can use worldguard to protect areas as well.
     
  27. Offline

    Acrobot

    @cr0ss
    Oh yeah, I'll probably add it as a configurable option. Thanks :)
    Your code wouldn't work, BTW - I would do just:
    Code:
    if (player.getGameMode() == GameMode.CREATIVE) return;
    
    @Gaurav1234
    It's case-sensitive.
    ^ChestShop.shop.create

    @koolblue87
    Hey kool :p
    That depends on your permission plugin. Generally, you want to search youtube for "yourPermPluginName tutorial"
     
  28. Offline

    xXMiNeR_1234Xx

    i dont know why but i was playing a test player for my server but when i try to buy on it says "[shop]YOU DONT HAVE PERMISSION TO DO THAT" but when im admin i can open the chest PLZ REPLY!
     
  29. Offline

    Epics

    Hi,
    Users from my server are using shops to exploit them to be protected.
    I.E
    Desin
    B 999999; S 999999
    Ender_egg

    Then they just store all their stuff in that chest and nobody can get to it.
    Is there any way you can only deposit items that are on the sign?
    Possibly set a min/max value possible on the signs? I.E Minimum 5; Maximum 2000
     
  30. @Epics
    You can let them pay $1000 for creating a shop. Then they would think a bit about it.
    Code:
    SHOP_CREATION_PRICE: 100
    #Amount of money player must pay to create a shop
    
     
  31. Offline

    Acrobot

    @Epics
    Yep - just what @VADemon said (really thanks :D)

    @xXMiNeR_1234Xx
    That means you configured your Permissions 2/3 to not let people buy/sell.
     

Share This Page