[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

    zoolder101

    Shop signs disappear after restarts, is this a known issue, and is there a fix? (Only seems to be admin shops.)
     
  3. Offline

    Acrobot

    @zoolder101
    Well, that means your map is corrupted. Sorry. You should probably back it up and run Chunkster on it.
     
  4. Offline

    SkepticCraft

    The plugin causes a blue screen crash. I have removed all other plugins, and tried it alone twice. Both times it crashed.
     
  5. Offline

    zoolder101

    Really? Oh no, too many people are on at a time. So just back it up, take it off ftp and run chunkster?
     
  6. Offline

    didzym

    Hi, I have a permissions problem. I use bpermissions. The problem is all players can buy, sell and create panels while I have nothing put node permissions. Is there a way to enable the permissions?
    Thanks.
     
  7. Offline

    darkcloud784

    I seem to have this pop up alot, The way my server is set up. We use an apache server for all of our web based plugin utilities (like this) So the location is set to /var/www/shops/website.html
    If I have it generate in the plugins folder I am unable to view it publicly (or rather not sure how to).
    16.12 22:06:22 [Server] INFO [ChestShop] Couldn't generate statistics page!
    Is there a way to fix this/work around it?
    here's my config to ensure you understand how I attempted to setup the statistics generation.
    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: true
    #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: true
    #If true, plugin will generate shop statistics webpage.
    STATISTICS_PAGE_PATH: "/var/www/shops/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: 120
    #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: false
    #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?
    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: 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?
     
  8. Offline

    shanko

    Hey I cant create anymore admin shops, I made some before but now if I make one it says "You can't buy here"
     
  9. Offline

    deathdragonaw

    Hi, i downloaded newest version of iconomy and chestshop, using permissionsex. I set it upon a testserver, i want to make a tradecenter for my real server, so shops belong to the "government" and players can put for example sand into one chest, get some coins and exchange those for a few iron. so a socialistic and not a capitalistic system :p

    well my problem is, i dont want a admin shop which generates more and more items, but i need a serversided account that deals with the players, because i want to play as normal as possible myself on my server.
    AND i would really need a funtion to put a second sign beside the shop sign, which shows the stock of the chest - THAT would be rly awsome!

    hope you can help me, thx so far ;)
     
  10. Offline

    papand13

    Whenever my members makes a shop it tells them the message: Cannot create shop here, i know this is related to Towny, but i have the node "TOWNY_INTEGRATION" set to false.
    Have anyone else had this issue? And how can i fix it?
     
  11. Offline

    Acrobot

    @zoolder101
    ChestShop throws this error usually when you have no rights to write in this path.
    Use chmod on your /var/www/shops/ directory.
    @papand13
    Hmm... I have no clue? Which ChestShop version? Can you post your config on pastebin.com?

    @shanko
    Your 3rd line is wrong. It's either:
    B 5
    S 5
    B 5:5 S

    @deathdragonaw
    Well, you can create a new iConomy government account and just put it instead of your name - it will use the stock in the chest.
    If you don't want the new account, just put the government name on the 1st line, it will still work.

    And Stock Signs will probably be later in ChestShop 4 :)

    @didzym
    "Default permissions" are a part of BukkitPermissions (a.k.a. superperms)
    If you want to disable a permission, in bPermissions you should put ^ in front of the permission node, like:
    ^ChestShop.shop.*

    @SkepticCraft
    Sorry - but I can't reproduce it or even try to fix it - it works for everyone else.
    Blue screens are usually caused by drivers.
    Are you sure that the server alone works fine?
    Can you paste your config on pastebin.com?
     
  12. Offline

    shanko

    @Acrobot

    My third line is B 0, and it doesn't work
     
  13. Offline

    darkcloud784


    It is chmod 0777 - ie all privs have been given.
     
  14. Offline

    Acrobot

    @shanko
    Yep, B 0 means "no buying" - unfortunate relict of the past. If you want to make free stuff chest, just do
    B free

    @darkcloud784
    Hmm, no clue then - did you try the default directory? Does it work?
     
  15. Offline

    AYKBY2TMA

    I keep on having this error coming up:
    I make a sign, with LWC lock
    and then, when I go to my other acc to login the server and start buy from that same sign, i can't buy it, it doesn't show some in-game errors
    It only shows it in the cmd console

    http://pastebin.com/wKsVD0N9

    Please help,
    Thx
     
  16. Offline

    darkcloud784


    We use apache for our webserver which will only publically display things from var/www/

    from what I understand that is.


    Edit: I just tried again and it gives the same error. Could not generate statistics page.
     
  17. Offline

    shanko

    Oops now I remember being told this before x.x lol

    Sorry
     
  18. Offline

    Acrobot

    @darkcloud784
    Yeah - but have you tired the default setting,
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    ?

    @shanko
    No problem :p
     
  19. Offline

    darkcloud784


    Yes thats what my edit was about in the previous post. It still says unable to generate. Everything is chmod'd to open privs (777).
     
  20. Offline

    Acrobot

    @darkcloud784
    Hmm - I have no clue then.
    Are you using the default HTML files?
    What folders are inside plugins/ChestShop?
     
  21. Offline

    darkcloud784

    Only files are the chestshop db file, config file, HTML dir with all the original stuff supplied by you, and the local file.
     
  22. Offline

    Acrobot

    @darkcloud784
    Hmm... I have honestly no clue...
    Later today (depends on your time zone, however in ~20 hrs) I'll give you a dev version, which will print out the stack trace. We will be able to locate the error then.
     
  23. Offline

    SkepticCraft

    I am positive it works alone fine. I have been running my server all day without ChestShop and it works fine. By my config you mean my ChestShop?
     
  24. Offline

    Acrobot

    @SkepticCraft
    Yeah - your ChestShop config.
    My first guess would be the database system - since it is the only thing that uses a .dll

    Are you running the ChestShop with iConomy or other economy plugin?
     
  25. Offline

    SkepticCraft

    Nevermind, turns out I had an older version of ChestShop. I updated it to the newest one and it works fine now. Thanks anyway!
     
  26. Offline

    Harry_on_P

    Does PermissionsEX work with this?
     
  27. Offline

    Hayden06

    {request}

    could you please add an option in the config to prevent people in creative mode from using chest shops?? they can sell infinite items and it's really annoying
     
  28. Offline

    Harry_on_P

    Shop you do not have permission for this chest

    Fix? Please
     
  29. Offline

    Eciah

    Sorry for this question, it may be something im overlooking but i have tried everything i could to figure it out short of going into the source code and trying to understand it, but i run a small server with around 8 people and we have been using Chestshop 3.29 for some time, i just downloaded 3.30 today but it doesnt look like the changelog has a fix for my problem. When we put up item ID we cannot specify things like Charcoal, and Pine, and other stuff that is subcatagorized from the main item ID and we would like to be able to sell that, is there a special way to type it? ive tried the name like pine and 17:1 17 : 1 etc but havent figured it out, Any help on this problem would be greatly appreciated as we really enjoy using the mod and our economy is getting bigger in our server
    Thanks for the time
     
  30. Offline

    babybell

    @Acrobot jes iam sure i got the newest version of Permission Ex .... :(
     
  31. Offline

    Jeroeny

    Do I need iConomy for this? Because iConomy isn't updated to 1.0.0 and I don't know how long it's going to take?
    LOL I now noticed I can add minecraft smileys like [fire][goldore][diamond]
     

Share This Page