[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

    danlapid

    nvm fixed (they were in default group not Default group
     
  3. Offline

    SPUKI11

    Now comes no error more, but the file website.html is empty. She is 0 kb great. ?!?!
     
  4. Offline

    Acrobot

    @SPUKI11
    Did you
    - wait a bit?
    - copy the example files into the HTML folder?
     
  5. Offline

    SPUKI11

    ok works. It may be that I have no possibility to use html files on the server. I have an own homepage, I can install there the statistics?
     
  6. Offline

    Acrobot

    @SPUKI11
    Hmm...
    What do you mean by install the statistics?
    You can specify where you want to put the files in the config.
    Also, "no possibility to use html files"?
    You just need to upload the HTML folder from downloaded .zip, and copy it to ChestShop's folder.
     
  7. Offline

    Godleydemon

    I'm getting this error screen when right clicking.
    [​IMG]
    I'm using these plugins
    PermissionsEX
    LWC
    Essentials
    Log
    MobBounty
    SignColours
    Fruitful
    ChestShop
    iconomy 6

    this is my permissions.yml
    http://pastebin.com/LvVygeqy

    I'm using latest Bukkit which is 1185
    here is my server log from last boot and crash of client NOT server
    http://pastebin.com/UCNF8mhD

    The only mod I'm using for client is tomanyitems
     
  8. @Godleydemon
    Isnt your nickname too long? What's your nickname in game? Because I saw this error with users who have loooooooooooong nickname.
     
  9. Offline

    Godleydemon

    just Godleydemon
    yeah same name and spelling here in bukkit forums
     
  10. Offline

    Acrobot

    @Godleydemon
    Hmm... Please wait, I thought I fixed this (BTW, bukkit prevented from doing this).
    EDIT: BTW, can you tell me what is on your sign?
    EDIT2: Also, what do you mean "right-clicking"? Your own sign?
     
  11. Offline

    Godleydemon

    yes my own sign, its a test server for plugins that haven't gone live on my main server.

    10
    B 10:5 S
    3

    is my sign config and it reads out as

    Godleydemon
    10
    B 10:5 S
    Dirt
     
  12. Offline

    Acrobot

  13. Offline

    Godleydemon

    one moment then, I'll edit when I have it all downloaded and installed and tested
     
  14. Offline

    Godleydemon

    New server log
    http://pastebin.com/HUcuAwCS

    still same error.
    by the way, I might mention. There is nothing in the chest at all. I was testing to see what it did with nothing in the chest when this error appeared.
     
  15. Offline

    monir

    i have version 3.12 im gonna to uppdate to 3.2 can i put only the jar or must i put the config to when uppdating?
     
  16. Offline

    Acrobot

    @monir
    You can put the .jar only - in fact, I don't even have the config in the .zip file. It auto-generates.

    @Godleydemon
    Are you sure it's caused by ChestShop? What happens if you try to right-click when not having the ChestShop on a server?
     
  17. Offline

    Godleydemon

    What I do for ChestShop is delete everything, for ChestShop then put the jar in and let it work its magic. It installs everything for you.
     
  18. Offline

    Godleydemon

    @Acrobot good point, let me try that out here.
     
  19. Offline

    Acrobot

    @Godleydemon
    Also, how did you sell the items to yourself?
    [ChestShop] Godleydemon sold 10 DIRT for 5.0 to Godleydemon
     
  20. Offline

    Godleydemon

    @Acrobot No error and no client crash
    Yes I sold the items to myself
     
  21. Offline

    monir

    And the db base file and log file should i put it back after uppadting? all the logged shops dont they disaper whitout them files?
     
  22. Offline

    mike12345567

    Hey, my server wants to create a big admin shop with this, but I was wondering if there is anyway to set that when you buy say stone you buy 64 at once, cause buying a stack of stone at the moment spams the console like mad
     
  23. Offline

    Acrobot

    @monir
    Shops don't disappear, but if you log the transactions to generate the webpage, you may want to save the .db file

    @mike12345567
    LOG_TO_CONSOLE: true
    Just change it to false.
     
  24. Offline

    monir

    Thats pretty cool how that that works that shops dont disaper they are not logged?
     
  25. Offline

    mike12345567

    ah thanks that'll do it :)
     
  26. Offline

    Acrobot

    @monir
    Yeah :)
    Totally no database at all - you can even load a map from another server - it'll still work.
    Got an old backup map? Yeah, will probably work with newest ChestShop. :)
     
  27. Offline

    Godleydemon

    @Acrobot what do you think could be causing this 0.o its something completely new to me. Its as if the client doesn't know how to read the Java. 0.o
     
  28. Offline

    Acrobot

    @Godleydemon
    I have no clue. If you right-click your own shop, your chest's inventory should pop up. There's nothing that could break it...
    Also, how did you sell to yourself?
    [ChestShop] Godleydemon sold 10 DIRT for 5.0 to Godleydemon
     
  29. Offline

    Godleydemon

    @Acrobot lmfao, no idea, it always does that for me, lol. I remember at one point in time that I couldn't sell to my own shop, then with the recent versions I've always been able to. They go into the chest. I takes my money and then gives it right back. SO no harm really. But its just kind of weird how right clicking won't bring up the chest inventory and just errors out my client.
     
  30. Offline

    Acrobot

    @Godleydemon
    Hmm, yeah. Can I join your server to test if it happens to me too? PM me the ip, if you want.
     
  31. Offline

    Godleydemon

    @Acrobot yeah here's an interesting occurance for you, it works now, lol. I did it with wood this time and it seems to work I can try with dirt here soon though. But here's the server address
    Demonmine.zapto.org This is my test server so its not up all the time
     

Share This Page