[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

    Epics

    17:14:40 [INFO] [ChestShop] You lack the necessary HTML files in your plugins/ChestShop/HTML folder!

    So, this is my folder...
    [​IMG]

    Lies and slanter! xD
     
  3. Offline

    Acrobot

    Epics
    I see something more :p
    You have two ChestShop folders, so you have:

    plugins/ChestShop - the folder where config is
    plugins/ChestShop/ChestShop - I have no clue what that is
    plugins/ChestShop/ChestShop/HTML - too many ChestShops :p You want the HTML folder in the same folder as your config :)
     
  4. Offline

    Epics

    So I need plugins/ChestShop/ChestShop/ChestShop? ;D just jokes! chestshop inception!
     
  5. Offline

    zmora

    something will hit me soon at times when trying to open the shop gives me You can not create this shop and downloaded the latest version of plugin:mad:
     
  6. Offline

    Epics

    Latest version is working fine for myself,
    Do you have the permission "ChestShop.admin"?
     
  7. Offline

    Acrobot

    zmora
    If you're running PEX, downgrade to 1.17

    Epics
    So, is it working now? :p
     
  8. Offline

    Hidri

    hey i have a problem

    user don´t have the permissions to buy from a chestshop

    but his i gave him the permissions correctly

    - CraftBukkit: 1.1-R4
    - ChestShop 3.34
    - economy: IConomy 6
    - PermissionEx v1.18
     
  9. Offline

    Etsijä

    Something fishy with latest (3.35) version of ChestShop: earlier on, we've had loads of "serverstore" type of server shops, which have no chest, only a sign like

    "serverstore
    1
    B 400:200 S
    diamond"

    They have worked just fine, with "serverstore" just being an "infinite" account which doesn't run out of money. In config.yml, we have always had
    SERVER_ECONOMY_ACCOUNT: "serverstore"

    Now, after 3.35 update, the "serverstore" started to actually run out of money. If I buy one diamond from it with 400 credits and sell 2 for 200 each and try to sell the third, I get "shop owner doesn't have anough money!"

    Now I'm sure this is something just plain wrong now in our configs, but can someone point me to the right direction? Thank you.
     
  10. Offline

    Acrobot

    Etsijä
    Hmm... I guess that you had some other server_economy_account in the config.
    Either that, or you can delete the serverstore economy account.

    Hidri
    Downgrade to PEX 1.17
     
  11. Offline

    Epics

    Well, all it seems to be reflecting is
    Code:
    <html>
    <head>
    </head>
    <body>
    <table>
    <thread>
    <tr>
    <th>Item</th>
    <th>Volume</th>
    <th>Bought</th>
    <th>Sold</th>
    <th>Stack size</th>
    <th>Price per stack</th>
    <th>Price per unit</th>
    </tr>
    </thread>
    <tbody><tr>
    <td>gold ingot</td>
    <td>20.0</td>
    <td>20.0</td>
    <td>0.0</td>
    <td>64</td>
    <td>256.0</td>
    <td>4.0</td>
    </tr><tr>
    <td colspan="7">Calculated in: 0.0 ms</td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
     
  12. Offline

    Acrobot

    Epics
    Well, so it works fine :)
     
  13. Offline

    Epics

    But there's no data generated on it!
     
  14. Offline

    Acrobot

    Epics
    Really?
    I can see:
    Code:
    <td>gold ingot</td>
    <td>20.0</td>
    <td>20.0</td>
    <td>0.0</td>
    <td>64</td>
    <td>256.0</td>
    <td>4.0</td>
    
    That means that since the last record flush there has been a transaction in gold ingots.
     
  15. Offline

    Epics

    Ah, okay! I'm just blind I suppose xD
    Thanks!

    Recommendation btw,
    Have a page that reads off a database which projects the economy of the players? ;)
     
  16. Offline

    Etsijä

    PREFERRED_ECONOMY_PLUGIN: "Essentials"
    We do not use any special economy plugin - we've managed so far with Essentials.
     
  17. Offline

    Epics

    Someone I was bug testing this with also had this problem.

    Solution: Downloading Vault
    Enjoy!
    If this doesn't work, just let me know.
     
  18. Offline

    Etsijä

    I have Vault - and it doesn't work.
     
  19. Offline

    Acrobot

    Etsijä
    Wait wait wait. So what exactly is the problem?

    What's your:
    ADMIN_SHOP_NAME
    and "SERVER_ECONOMY_ACCOUNT"?

    If the admin shop name ISN'T "serverstore", that means that the economy account got created by accident. You can either set the Admin_SHOP_NAME to "serverstore" or just delete the "serverstore" economy account
     
  20. Offline

    tom

    Why downgrade to pex 1.17?
     
  21. Offline

    Acrobot

    tom
    Because PEX 1.18 is buggy and doesn't work properly with most (if not all) of the plugins.
     
  22. Offline

    Etsijä

    Well, in Finnish, "server store" is "serverikauppa", so the exact lines are:

    SERVER_ECONOMY_ACCOUNT: "serverikauppa"
    ADMIN_SHOP_NAME: "serverikauppa"

    Mind you, we haven't changed any configurations - just updated the plugin, and started to get these problems. All was working before.
     
  23. Offline

    Etsijä

    Moreover, there isn't even a concept of an "account" in Essentials - so I cannot delete the account, since it doesn't seem to exist.
     
  24. Offline

    tom

    @acrobat Ready for r5 ?
     
  25. Offline

    Acrobot

    Etsijä
    Hmm...
    Can you tell me:
    - if you have got the plugins/ChestShop/longName.storage file, and if you do, what's inside it
    - what exactly do you mean that it's "out of money" - does it show the message if someone wants to sell to you?

    Also, have you tried giving the account a lot of money temporally?

    And the last question - which version were you upgrading from?

    Oh... If there isn't an account in essentials, this must be a bug in ChestShop then.

    tom
    Yeah, I've got a R5 version ready:
    http://dl.dropbox.com/u/11388037/Bukkit/R5iThink/ChestShop.jar
     
  26. Offline

    tom

    Dziękuję
    :D
     
  27. Offline

    Etsijä

    - my /plugins/ChestShop does not have a "something.storage" file
    - my post #6778 describes our problem exactly
    - as I said, there isn't any concept of an account in Essentials. It only handles money by notifying everyone's worth value in separate user-specific YAML files
    - we upgraded from 3.33 to 3.35
     
  28. Offline

    WebNinja

    I seem to be having a problem with listing enchanted armor. I can sell enchanted swords by putting the item at like "276:-4th8gl" and I would sell a sword with Sharpness 5, Knockback 2, and Looting 3. Well...with armor it's not liking it. I put "313:-o" which is boots with Feather Falling 1 but when I click it to buy it then it gives me an non-enchanted boots. I have tried this with a few differently enchanted boots and helms with no luck on them at all.
     
  29. Offline

    Acrobot

    Etsijä
    Oh, that means that you SKIPPED 3.34, which added Vault support. It might be a problem then... Hm... It would mean that Vault handles it differently. Try just setting SERVER_ECONOMY_ACCOUNT to ""

    WebNinja
    Really?
    I'll try it, but it should work fine - it seems like it could be a bug in Bukkit.
     
  30. Offline

    kamild1996

    Should your plugin work with EssentialsEcon?

    To Acrobot:
    PS. Jak możesz to podaj inną formę kontaktu np. GG. :)
     
  31. Offline

    Acrobot

    kamild1996
    Yeah, it will work, but you need to use Vault.

    Inna forma kontaktu?
    Hmm... Po co? :p Jestem dość często na forum. No ale mam steama: acrobot
     
    kamild1996 likes this.

Share This Page