[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

    Anachen

    Okay. So I got something I want to figure out and could not find maybe someone can answer me here.

    TOWNY_INTEGRATION: true
    #Do you want to only let people build inside shop plots?
    TOWNY_SHOPS_FOR_OWNERS_ONLY: false
    #If true, only plot owners are able to build inside a shop plot. If false, every town's resident is able to build there.
    WORLDGUARD_INTEGRATION: true
    #Do you want to only let people build inside plots?

    This is how I set the plugin.
    In this Situation: the player NOT allowed to make shops at all.
    If I set WorldGuard Integration: false
    You Can make shop at shop type plots AND in the unclaimed zones (wilds)

    So why is that?
    I do not added any permissions to any groups at the moment.
     
  3. Offline

    Acrobot

    Epics
    Well, it works fine for me. Which BOSEconomy version are you using and what is the player's name?

    Anachen
    I guess that you're OP, so you can make shops everywhere.

    Also, if you want to deny shop creation, you must add a negative permission node in your perm plugin.
     
  4. Offline

    Epics

    The latest, and his name was OmegesTeaos
     
  5. Offline

    Anachen


    Yeah I am OP I tested this with original users. I am using GroupManager for setting up permission nodes. But If I will make a negative permission node you are not allowed to create shop at all? I want let them have their own shop, but only in towns shop plots. Problem is at the moment the plugin allows me to make shop (as an original user) in the "unclaimed" zones.

    I do not want to allow them to make shops in the wilds only at the towns. (Using towny setting plottype shop) Is this possible?
     
  6. Offline

    Acrobot

    Epics
    Hmm, that's 11 letters, so not more than a sign can hold.
    Have you tried running a test server with other economy plugin?

    Anachen
    Hmm.. Are you sure you don't have ChestShop.admin permission?
    Do you get any errors?
     
  7. Offline

    Tashafi

    Can i change it that non ops can buy from adminshops?, that would be so usefull!
     
  8. Offline

    Anachen


    Yeah I am sure that the players does not have chestShop.admin permission.
    If you so desire I can pastbin my whole groups.yml

    But you are right I found this error, when I placed a shop out in the wilds.

    http://pastebin.com/5EHvTsCn
     
  9. Offline

    Acrobot

    Tashafi
    Well, the name might be a bit misleading - an admin shop is just a shop made by admin (hence the name), which has unlimited stock. Non-ops also can buy and sell to them.

    Anachen
    Oh, I see you get a Towny error - I couldn't reproduce that one. Mind giving me the IP to your server, so I know what's wrong?
     
  10. Offline

    Tr4p

    Leaves do not want to sell.
    Here is the way i make the Shop.
    admin shop
    64
    256:64
    18:0

    or
    admin shop
    64
    256:64
    18


    Both doesnt work. Bug?
     
  11. Offline

    Acrobot

    Tr4p
    Do /iteminfo
    Leaves have different damage values.
     
  12. Offline

    Tr4p

    Thank you.
     
  13. Offline

    bonani

    Acrobot even if its a high number, EVENTUALLY (although its when i die probably) it will empty the data? I'll just make another table and a CRON-script to "backup" the data every five minutes :)
     
  14. Offline

    Acrobot

    bonani
    That's 60 years, so I guess that's more than enough :p
     
  15. Offline

    Anachen

    Thank you once again your support :)
     
  16. Offline

    Acrobot

  17. Offline

    Anachen

    Here is the Hungarian local.yml withouth special characters.
    http://pastebin.com/Jsx5e6nX
    A basic tutorial Video about the plugin in hungarian: (I am not pro sorry)
     
  18. Offline

    Epics

    Yup I have! I've used iConomy for the past two months, just switched over. (of course, I cleared the databases!), but the players don't seem to receive money while offline with BOSEconomy. I had the same problem with sending money, though. So it might be their side.
     
  19. Offline

    Acrobot

    Epics
    Hmm...
    Yeah, I think it might be more of a BOSEconomy error.
     
  20. Offline

    Epics

    I'll let em know. thanks!
     
  21. Offline

    Olick

    Hi, Recently I changed to iConomy (I was with BOSE). The ChestShop no longer works. Members can make shops, but when you do a right click or left on the panel, nothing happens. Yet there had to confirm the creation of the store. The shops were working with BOSE, and not with iConomy. Sorry for my bad english, im french

    Thanks you

    In french:
    Dernièrement j'ai changé pour iConomy (J'étais avec BOSE). Les ChestShop ne fonctionne plus. Les membres peuvent make shops, mais quand on fait un clic droit ou gauche sur le panneau, rien ne se passe. Pourtant il y à eu confirmation de la création du magasin. Les shops marchaient avec BOSE, and not with iConomy

    - CraftBukkit version: 1.1-R1
    - ChestShop version: 3.34
    - Your economy plugin: iConomy 6
    - Have you got any Permission plugin?: PermissionsEX
     
  22. Offline

    Acrobot

    Olick
    Have you get any errors in the console?
     
  23. Offline

    rejectdeath

    Hey I set up everything exactly as you say, and put the items in the chest, but when someone tries to buy it says the shop is out of stock. Please help!
    EDIT: I use iConomy, and am trying to sell a potion
     
  24. Offline

    Olick

    Nop, its perfect...:

    Code:
    >02:03:23 [INFO] [ChestShop] Loading ChestShop v3.34.
    >02:03:23 [INFO] [ChestShop] Permissions version 2.7.7 loaded.
    >02:03:23 [INFO] [ChestShop] LWC version 4.0.7 (b613-git-754ca078) loaded.
    >02:03:23 [INFO] [ChestShop] WorldGuard version 5.2.2 loaded.
    >02:03:23 [INFO] [ChestShop] Vault loaded using economy plugin iConomy 6
    >02:03:23 [INFO] [ChestShop] version 3.34 initialized!
    My config file:
    Code:
    PREFERRED_ECONOMY_PLUGIN: "iConomy"
    REVERSE_BUTTONS: false
    ALLOW_LEFT_CLICK_DESTROYING: true
    STACK_UNSTACKABLES: false
    SERVER_ECONOMY_ACCOUNT: ""
    ADMIN_SHOP_NAME: "Magasin Admin"
    SHOP_CREATION_PRICE: 0
    LOG_TO_FILE: false
    LOG_TO_CONSOLE: true
    LOG_TO_DATABASE: false
    GENERATE_STATISTICS_PAGE: false
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    RECORD_TIME_TO_LIVE: 600
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    USE_BUILT_IN_PROTECTION: true
    PROTECT_CHEST_WITH_LWC: true
    PROTECT_SIGN_WITH_LWC: false
    IGNORE_CREATIVE_MODE: true
    SHOW_MESSAGE_OUT_OF_STOCK: true
    SHOW_TRANSACTION_INFORMATION_CLIENT: true
    SHOW_TRANSACTION_INFORMATION_OWNER: true
    TOWNY_INTEGRATION: false
    TOWNY_SHOPS_FOR_OWNERS_ONLY: true
    WORLDGUARD_INTEGRATION: false
    TAX_AMOUNT: 0
    SERVER_TAX_AMOUNT: 0
    SHOP_REFUND_PRICE: 0
    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
    SHOP_INTERACTION_INTERVAL: 100
    HEROES_EXP: 100
    BLOCK_UPDATE: false
    PREFERRED_ECONOMY_PLUGIN: "iConomy"
    REVERSE_BUTTONS: false
    ALLOW_LEFT_CLICK_DESTROYING: true
    STACK_UNSTACKABLES: false
    SERVER_ECONOMY_ACCOUNT: ""
    ADMIN_SHOP_NAME: "Magasin Admin"
    SHOP_CREATION_PRICE: 0
    LOG_TO_FILE: false
    LOG_TO_CONSOLE: true
    LOG_TO_DATABASE: false
    GENERATE_STATISTICS_PAGE: false
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    RECORD_TIME_TO_LIVE: 600
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    USE_BUILT_IN_PROTECTION: true
    PROTECT_CHEST_WITH_LWC: true
    PROTECT_SIGN_WITH_LWC: false
    IGNORE_CREATIVE_MODE: true
    SHOW_MESSAGE_OUT_OF_STOCK: true
    SHOW_TRANSACTION_INFORMATION_CLIENT: true
    SHOW_TRANSACTION_INFORMATION_OWNER: true
    TOWNY_INTEGRATION: false
    TOWNY_SHOPS_FOR_OWNERS_ONLY: true
    WORLDGUARD_INTEGRATION: false
    TAX_AMOUNT: 0
    SERVER_TAX_AMOUNT: 0
    SHOP_REFUND_PRICE: 0
    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
    SHOP_INTERACTION_INTERVAL: 100
    HEROES_EXP: 100
    BLOCK_UPDATE: false
    Thanks
     
  25. Offline

    Epics

    In your configuration, might you have
    Code:
    PREFERRED_ECONOMY_PLUGIN: ""
    set to iConomy?
     
  26. Offline

    Olick

    Yeah.. i am..
     
  27. Offline

    FuRiouSOne

    Is not showing to be working no mater what number i input in. Not on a /ChestShop reload anyways. Is there something im missing?
     
  28. Offline

    Epics

    I just tested it myself, 1000 = 1 second.
    Chestshop doesn't offer a /chestshop reload I believe?
    It works when I /reload it too!
     
  29. Offline

    FuRiouSOne

    Right, the /ChestShop reload wont reload the interval config but WILL reload all other config changes. I just did a restart and it changed just fine but inconvenient, not a big deal least i know it works now :)
     
  30. Offline

    Epics

    Glad to be a help. Enjoy!
     
  31. Offline

    Iyeru

    Edit: Nevermind, make sure not to be in creative mode when dealing with chestshop signs :p
     

Share This Page