[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

    Herobrat

    ChestShop for me is the best plugin for creating stores for admins and players and has a great gameplay system for the game.
    AWESOME.

    [creeper] says: Ohh..hi dude...SSSsssss.....
     
  3. Offline

    Seankn

    This is due because the admin have the permission and are allowed to do it, check your permissions file and add the buy/sell permission in there for the other users
     
  4. Offline

    Acrobot

    Herobrat
    Haha, thanks :D

    Seankn
    Haha, it's awesome that you want to help him, but it was a year ago :)
     
  5. Offline

    nathanaelps

    Hi! I'm just beginning to tinker w/ Java, especially in relation to bukkit, so I may be overlooking an ever-so-easy-to-use tool... But...

    Is it possible for me to have my plugin check CS's protection scheme before it allows a block to be removed? If so, how?

    Thanks!
     
  6. Offline

    Acrobot

    nathanaelps
    Well, you can hook into ChestShop (like in Bukkit), add it to "depends:" or "softdepend" section in your plugin.yml, and check, for example,
    com.Acrobot.ChestShop.Protection.Plugins.Default.isProtected(Block block)
    or
    com.Acrobot.ChestShop.Protection.Plugins.Default.canAccess(Player p, Block block)
    This only checks chests though, it won't check signs or any other things.
     
  7. Offline

    darkcloud784

    Towny integration isnt working on bukkit 1804, towny 0.78.0.0, CS 3.33

    It wont let me make a shop inside shop plots even if I have the override perms set on.
     
  8. Offline

    Acrobot

    Are you sure you didn't also turn on the WorldGuard integration?
    It conflicts with Towny integration, unless your shop plot is also in a WG region.
     
  9. Offline

    darkcloud784

    Code:
    PREFERRED_ECONOMY_PLUGIN: ""
    #Preferred economy plugin (iConomy, BOSEconomy, Essentials). If you do not want to specify this, leave it blank.
    REVERSE_BUTTONS: false
    #If true, people will buy with left-click and sell with right-click.
    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.
    STACK_UNSTACKABLES: true
    #If true, ALL things (including food, etc.) will stack up to 64
    SERVER_ECONOMY_ACCOUNT: "AdminShop"
    #Economy account's name you want Admin Shops to be assigned to
    ADMIN_SHOP_NAME: "Admin Shop"
    #First line of your admin shop should look like this
    SHOP_CREATION_PRICE: 0
    #Amount of money player must pay to create a shop
    LOG_TO_FILE: false
    #If true, plugin will log transactions in its own file
    LOG_TO_CONSOLE: true
    #Do you want ChestShop's messages to show up in console?
    LOG_TO_DATABASE: true
    #If true, plugin will log transactions in EBean database
    GENERATE_STATISTICS_PAGE: false
    #If true, plugin will generate shop statistics webpage.
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    #Where should your generated website be saved?
    RECORD_TIME_TO_LIVE: 600
    #How long should transaction information be stored?
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    #How often should the website be generated?
    USE_BUILT_IN_PROTECTION: true
    #Do you want to use built-in protection against chest destruction?
    PROTECT_CHEST_WITH_LWC: true
    #Do you want to protect shop chests with LWC?
    PROTECT_SIGN_WITH_LWC: true
    #Do you want to protect shop signs with LWC?
    IGNORE_CREATIVE_MODE: true
    #Do you want to allow using shops to people in creative mode?
    SHOW_MESSAGE_OUT_OF_STOCK: true
    #Do you want to show "Out of stock" messages?
    SHOW_TRANSACTION_INFORMATION_CLIENT: true
    #Do you want to show "You bought/sold... " messages?
    SHOW_TRANSACTION_INFORMATION_OWNER: true
    #Do you want to show "Somebody bought/sold... " messages?
    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: false
    #Do you want to only let people build inside plots?
    TAX_AMOUNT: 0
    #Percent of the price that should go to the server's account. (100 = 100 percent)
    SHOP_REFUND_PRICE: 0
    #How much money do you get back when destroying a sign?
    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: true
    #Do you want to allow other players to build a shop on a block where there's one already?
    SHOP_INTERACTION_INTERVAL: 100
    #(In 1/1000th of a second) How often can a player use a shop sign?
     
  10. Offline

    Acrobot

    darkcloud784
    Hmm, ok, I'll try that later today (02:47 AM, GOT to go to sleep :p)
     
  11. Offline

    BBFPaco

    Just make people use permissions. ;)

    Well, I guess I'll just have to always modify the plugin. Not a big deal really. Glad we have it working.




    Any plans to add dynamic (supply and demand) pricing for Admin shops?
     
  12. Offline

    Mishrathium

    Acrobot - Quick question before I download newest version. Is the change I had asked for and you most graciously implemented about Chest Shops only working on Towny Shop plots still there - or only in the copy you linked me before?

    Thank you for all the hard work you do and your amazing plugin!!
     
  13. Offline

    darkcloud784

    Read the change log, towny integration is there. So is worldguard, however right now (on bukkit 1804) I'm currently having issues with it.
     
  14. Offline

    Adrenaline

    Recommended Build:
    #1818
     
  15. Offline

    Acrobot

  16. Offline

    Acrobot

    darkcloud784
    Hmm... It's working for me :/
    Are you sure you aren't making any mistakes in the towny plot claim process? (I made some, you have to do /plot forsale first, then /plot claim)
     
  17. Offline

    datwerd

    v3.33 is latest available on dev
    wget link points to latest 3.34
     
  18. Offline

    wcnoco

    i added permissions to my default user group to buy/sell/create, but when i logged into my 2nd account that's not OP and tried to create a shop, i was told i can't create that type of shop (coal). do i have to make permissions for every item i want users to be able to sell? if so is there a permission that allows them to buy/sell/create anything? i'm using a bukkit dev for 1.1. i haven't checked for an update for close to a week so there may be another one i haven't seen.
     
  19. Offline

    Seankn

    Yeah lol I just noticed that.
     
  20. Offline

    Acrobot

    datwerd
    Yep, it takes some time for moderators to approve a new version on bukkitdev.

    wcnoco
    Can you make a screenshot of your plugin folder? :)
     
  21. Offline

    charredgrass

    Nice work. Would donate if I had the money.
     
  22. Offline

    pacmanjones

    I noticed this in the changelog:


    • Added ChestShop.nofee permission for free shop creation (and no refunds)
    Thanks, you're awesome!
     
  23. Offline

    Acrobot

  24. i get an error when i am running the latest version of craftbukkit and chestshop:
    19:22:49 [INFO] Request: POST http://metrics.griefcraft.com/report/ChestShop
    19:22:49 [INFO] No handler. Piping.
    19:22:49 [INFO] UNEXPECTED REQUEST TYPE: POST
    can any1 help me please?
     
  25. Offline

    pioluluso

    i need iConomy 1.1 and ChestShop 1.1
     
  26. Offline

    Acrobot

    pioluluso
    Why?
    There wasn't any ChestShop 1.1 - it was iConomyChestShop and I don't have it anymore, same with iConomy.

    mid_kid
    Not a bug, it's just a timeout in a statistics uploader, you shouldn't be worried about it .
     
  27. Offline

    AcidSikeO

    Can I not put free as the price on an admin shop?
     
  28. Offline

    Stephen92

  29. Offline

    Acrobot

    AcidSikeO
    You can, just specify what will be free
    Your 3rd line can look like:

    B 5
    S 5
    B free
    S free
    B free:S 5
    S free:B 5

    Stephen92
    I'd say turn towny_integration off or install Towny.
     
  30. Offline

    Stephen92

    I have towny, il ltry the integration, ty.
     
  31. Offline

    Delta-One

    Permissions doesnt work? Ive made that all people can sell and buy from chests but the permissions doesnt work for some reason. I have 1.1 Server and MC and i use PermissionsEx. Other permissions are working, anyone know the reason for that?
     

Share This Page