[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

    galaxyfriend
    I am running it on a local Bukkit Server - and I don't have such problems. It sounds like a broken download. Could you try re-downloading ChestShop and CraftBukkit?
     
  3. Offline

    galaxyfriend

    Ok, I found the issue! It's the operating system :/ I'm running the latest version of Mac OSX Mavericks (10.9) and it doesn't work. But I have also Windows 7 installed and when I tried it there with the same Minecraft version it works perfectly... I think it's a bug in the plugin that came with Minecraft 1.7 or it's just a bug with Mac version of Minecraft. And yes, my server is running Linux so it's nothing about bukkit

    Also I noticed was that since 1.7 in the Mac OSX there are some "invisible" spaces on the signs, so that you have to delete a complete line first to get all the same you should normally have on a sign. It's if like you don't to that, you just have space for (just an example) 8 letters but if you clean the sign with backspace you can write then 10 in a line.

    Would be great if you could change your plugin, so that even if there're some "invisible" spaces at the beginning, the sign would be still accepted as a shop. ;)
     
  4. Offline

    Acrobot

    galaxyfriend

    I'm sorry, but I can't do anything about the spaces - Apple's Java inserts unicode characters and, while theoretically, I recall a pull request to CraftBukkit that removed those signs, I can't find it now (I have no idea whether it is closed or removed).

    Download and install Oracle's Java:

    http://www.java.com/en/download/faq/java_mac.xml
     
  5. Offline

    galaxyfriend

    Ok, Thanks :D

    Also if I delete all this spaces the Plugin should work and if not I can still create the Shops on Windows ;)
     
  6. Offline

    kyle939

    I am thinking of reinstalling this plugin but it takes way to long to reset it all back up with the shops in order.

    It would be nice if we could have one universal shop, I am unsure if this has been added since the last time I used it.

    I might have to get people to help me create all the shop chests again to help me ready for when people are here.
     
  7. Offline

    Acrobot

    Huh? Well, the shops have to be created, since, as the name implies, it's a chest shop - a physical shop, in contrast to the command shops. There are "admin shops", which have unlimited stock - so this might be helpful to you.
     
  8. When is the next update going to be released?
    I'm part of a server that runs iConomy and Chestshop, it is a large part of our server, it has recently been upgraded to 1.7.5 and the chestshops are not working now as a result of the incompatibility with the new item system by Mojang, is there a projected date for the chestshop and iconomy update?
     
  9. Offline

    Acrobot

    Already released, as a dev version though. Check BukkitDev.
     
  10. Offline

    ebear

    Newest Spigot Build...
     
  11. Offline

    Acrobot

    Have you tried deleting the plugins/ChestShop/users.db file?
     
  12. Offline

    davewolax

    This plugin is Awesome, but I wish there was a way to get notified about the transaction occurred when a player was offline.

    I have tried Chestshop Notifier http://dev.bukkit.org/bukkit-plugins/csn
    But it didn't worked, CSN (chestshop notifier) plugin have config to define a database (local or external database) . well, I have Godaddy Ultimate plan so I easily created my database and I have hooked CSN plugin to my external database there. but now the problem is in the Chestshop Plugin Config, there is no configuration to define my external database. so chestshop plugin now is not able to save the shop data and transaction into my Godaddy (external) database. and so the CSN plugin can't read any information of the shop transactions from my external database because it doesn't exist!
    I also tried to hook the CSN to the Chestshop plugin default Database. but since I don't know the database username and password and all information about the default chestshop plugin database (which is stored in /plugins/ChestShop) I couldn't do it!
    Please help!!
     
  13. Offline

    schafx

    Hi Acrobot i tried to compile your plugin with maven, but i got some errors:

    [ERROR] Failed to execute goal on project chestshop: Could not resolve dependencies for project com.acrobot.chestshop:chestshop:jar:3.7.13: The following artifacts could not be resolved: com.iCo6:iConomy6:jar:6.0.10b, com.iConomy:iConomy5:jar:5.0, cosine.boseconomy:boseconomy:jar:0.7.0: Could not find artifact com.iCo6:iConomy6:jar:6.0.10b in bukkit-repo (http://repo.bukkit.org/content/repositories/releases/) -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
    It seem that some files are missing. please upload you repo folder so i can compile your code. Thanks for your help
    with greetings schafx
     
  14. Offline

    Acrobot

    schafx
    Ah, sorry, it seems like I haven't removed the dependencies from pom.xml. I will update it soon.
     
  15. Offline

    Jake6192

    hi, i was just wondering how i can place a sign on a chest instead of one block away, i enabled it in the config but cant figure out how to actually do it? Also, when i make a shop, anyone can just open the chest and take whatever is inside! any help? Thank you. :)
     
  16. Offline

    Acrobot

    Place the sign near the chest and it will automatically stick. Also, noone can open your shop but you.
     
  17. Offline

    Jake6192

    i tried that but it won't work. And even when i de-op my self i can still open the chest?
     
  18. Offline

    Acrobot

    Sure, when you de-op yourself you can open your own chests. And if it does not work - which ChestShop and CraftBukkit versions? Exact, please (/version and /csversion)
     
  19. Offline

    Jake6192

    i got it all working now, thank you, but don't worry anymore.
     
  20. Offline

    DemShotz

    I can't seem to get it working. I have Vault and essentials but the "Admin Shop" signs don't work and nothing comes up in the console when I try to set the sign down. The plug-in booted up because when I load my server the last thing it says is:
    [14:03:29 INFO]: [ChestShop] Vault loaded! Found an economy plugin!

    So I don't know. The economy plugin it should be using is Essentials Eco. I have Vault so that the Essentials money balance will tie to ScoreboardStats.
     
  21. Offline

    Acrobot

    ChestShop version? CraftBukkit version? Are you using a Mac?
     
  22. Offline

    DemShotz

    Chestshop V.3.7.9
    CraftBukkit V.1.7.9-R.03
    Mac OS X 10.9
     
  23. Offline

    Acrobot

    See, Mac OS X is the problem. And I'm not hating :p I really like Apple, however their Java implementation inserts garbage into signs, which causes ChestShop to break. Please install Oracle's Java.

    https://www.java.com/en/download/help/mac_install.xml
     
  24. Offline

    DemShotz

    Doesn't matter. Mac sucks. Minecraft is the worst thing on a Mac that could exist.

    EDIT: Installing Java 7 Update __ did not work. Nothing pops up when I try and put a sign down :(
     
  25. Offline

    Acrobot

    DemShotz
    Hmm... You can try using backspace before you write anything on the sign, in order to delete any unnecessary characters that may have shown up.
     
  26. Offline

    Scorpion_vn

    [EDIT: my bad - see the end edit]

    Hi, sorry to bother, but there is problem that I can't solve myself.

    Players cant get money through ChestShops!

    The report is as follows: I sell item and lose the item but get no money. I buy item, I get the item, and I lose money.
    When I pay money, the owner of the shop gets no money, but I lose money.

    Tried with ChestShop 378 and 3.7.9 - same issue.
    Tried with BOSEconomy instead of iConomy - same issue.

    Tried to buy and sell claim blocks from GriefPrevention and all works.

    So the problem is in ChestShop.

    I use CB-1.7.2-3020, and zPermissions and Vault.

    The permissions of the players in the default group are:
    Code:
        chestshop.shop.buy: true
        chestshop.shop.create: true
        chestshop.shop.sell: true
        iconomy.help: true
        iconomy.holdings: true
        iconomy.payment: true
    [edit]hah, I have put SERVER_TAX: 100
    so all money paid for item was taxed and went to server, not the the shop owner! Solved.


    But, other guy has similar problem in http://forums.bukkit.org/threads/chestshop-problem-help-faaast.285230/

    Best regards,
    Scorpion
     
  27. Offline

    DemShotz

    Acrobot It still doesn't work mate. Nothing comes up at all :(
     
  28. Offline

    Acrobot

    Sorry, but hard for me to say what's wrong. Could you try with someone else, preferably not using a mac?
     
  29. Offline

    DemShotz

    No I unfortunately can't. Macs are the only computer I have available.
     
  30. I was wondering if there was a way to limit what can be sold to admin shops? Like have it so more needs to be bought before more can be sold - but still have unlimited amount to be sold, if that makes sense
     
  31. Offline

    Acrobot

    Not really; you can write a ChestShop addon that does that.
     

Share This Page