[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

    ViZiT
    Hmm, why would it be a but?
    It seems like you just set prices incorrectly on one of your shops, or marschke is OP/has ChestShop.admin permission and created his own admin shop.
     
  3. Offline

    ViZiT

    it's not my prices not permissions or ops.txt problems. how can i find that shop? any logs or db
     
  4. Offline

    Kuboken

     
  5. Offline

    ViZiT

    this is a key
    Code:
    2012/02/09 21:20:55 ViZiT bought 64 GLOWSTONE for 160.0 from admin shop
    some different ! REAL Admin shop name is Admin shop not adminshop
     
  6. Offline

    ViZiT

    no errors, some different ! REAL Admin shop name is Admin shop not adminshop
     
  7. Offline

    Acrobot

    Kuboken
    Can you post a screenshot of your permission folder?

    ViZiT
    Well, ChestShop doesn't use any database :/
    Also, you say that admin shop's name is "Admin Shop" - well, that means that someone has ChestShop.admin permission/OP, because he couldn't create an admin shop like that.
    (Admin shop's name is automatically lowercased and stripped from spaces, so "Admin Shop" == "adminshop")
     
  8. Offline

    ViZiT

    Nice, but not correct =) someone come to server with that nickname adminshop and creat a user shop=) Soo how can i find that shop???
     
  9. Offline

    Acrobot

    ViZiT
    "Well, ChestShop doesn't use any database :/"
    Also - sorry to hear that :/
     
  10. Offline

    ViZiT

    yep... anyway thanks for answers
     
  11. Offline

    Snowlynx

    Acrobot
    Yes i think it is , but i have no clue why it is conflicting, so i was hoping someone would know how to fix it
     
  12. Offline

    Acrobot

    Snowlynx
    Well, I don't know too - I don't do anything with LWC on interact :/
     
  13. Offline

    Kiste

    Is it possible to add a:
    "Buy a random item out of the chest underneath this sign."-function?

    That would offer at least to 2 things i need for my server:
    1. Sell whatever item is in the chest without changing the sign
    2. Random item "slot machine"
     
  14. Offline

    Acrobot

    Kiste
    Nope, not at the moment :/
    I can TRY to make this, though.
     
  15. Offline

    Dragendave

    Kiste
    That would be awesome xD

    How about the SignUpdater? It seems to be very easy to add it. Did you allready test it?
    The Main questions just is: Is it possible to hope for it in the next update?
     
  16. Offline

    Acrobot

    Dragendave
    Nope, haven't tried SignUpdater yet, just fixed some issues and added partial transactions (for example, when shop wants 10 items, you can sell 5 for half the price)

    Also, I think it may be in the next update, I'll see (I'll probably add it though in the next or the one after it)
     
  17. Offline

    Kuboken


    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: false
    #If true, ALL things (including food, etc.) will stack up to 64
    SERVER_ECONOMY_ACCOUNT: ""
    #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: 100
    #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: false
    #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: false
    #Do you want to protect shop chests with LWC?
    PROTECT_SIGN_WITH_LWC: false
    #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: false
    #Do you want to only let people build inside shop plots?
    TOWNY_SHOPS_FOR_OWNERS_ONLY: true
    #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: 10
    #Percent of the price that should go to the server's account. (100 = 100 percent)
    SHOP_REFUND_PRICE: 100
    #How much money do you get back when destroying a sign?
    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
    #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?
     
  18. Offline

    Acrobot

    Kuboken
    Well, I need a screenshot of your /plugins folder.
     
  19. Offline

    gretar123

    How about sharing shops?.. so that maybe 2 people could share a shop. and the income would be 50/50..
     
  20. Offline

    Kuboken

  21. Offline

    Acrobot

    Kuboken
    Hmm, I see both "Permissions" and "bPermissions" plugin. Try removing "Permissions.jar" (or rename it to "Permissions.jarBAK" or something like that)

    gretar123
    Well, not possible at the moment, because I don't use databases, but it can be possible in the future.
     
  22. Offline

    bonani

    Acrobot thanks for the SQL-help before. Just a quick question; is it possible to NOT remove the data that is saved in the database? Cause it seems to empty the table after a period of time.
     
  23. Offline

    Acrobot

    bonani
    Just set the RECORD_TIME_TO_LIVE to some extreme amount (maximum integer value is 2,147,483,647 - just pick something big :))
     
  24. Offline

    FuRiouSOne

    Seeing this in the console for some reason.

    CONSOLE: Cancelling event!
    CONSOLE: Cancelling event!
    CONSOLE: Cancelling event!
    CONSOLE: Cancelling event!
    CONSOLE: Cancelling event!
    Metrics: Connection timed out: connect
    ChestShop: There was an error while submitting statistics.
     
  25. Offline

    Acrobot

    FuRiouSOne
    The "cancelling event" isn't a part of ChestShop, however if you have an error while submitting stats, that's nothing to be worried about - the stats server is just overloaded.
     
  26. Offline

    RebornSheep

    I got a lag problem on my server.

    When people are buying or selling alot of items, if they are spamming the sell/buy sign, the server is lagging.

    I wanted to set a delay function on the plugin, so people cant spam. Could you make that, or do you have any other ideas?
     
  27. Offline

    Epics

    Code:
    SHOP_INTERACTION_INTERVAL: 100
    #(In 1/1000th of a second) How often can a player use a shop sign?
     
  28. Offline

    Acrobot

    RebornSheep
    Well, if you're hosting your economy database on another server, that's a bad idea - I'd change that to local.
    Also, there's SHOP_INTERACTION_INTERVAL, which blocks the interaction with the sign for a set amount after a transaction.

    EDIT: Wow, ninja'd by Epics :)
    Thanks :D
     
  29. Offline

    RebornSheep

    Uh, i was outdated :D
    I did not have that in my config file!
     
  30. Offline

    Epics

    :3

    There's your problem!

    Hope this helps,
    Epics
     
  31. Offline

    Epics

    Heyo, I may have found a bug.
    When I have user shops and the player who made the shop goes offline and someone buys from that players shop, the player doesn't receive any money.
    Boseconomy
     

Share This Page