[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

    @Rasmu1996
    Just do /iteminfo while holding the item :)
     
  3. Offline

    Rasmu1996

    thanks this helped :D
     
  4. Offline

    RabidPigeon

    For me, no one can buy or sell, anything from the AdminShop. Do you know why this is so? Even if I have EVERY iconomy and chestshop perm node, I can't buy or sell from the shops I made. It ALWAYS says: "[Shop] You cannot buy here." or "[Shop] You cannot sell here." ...It's rather annoying please help! If it helps I have iConomy 6.0.7...
     
  5. Offline

    Etsijä

    Can you please tell us what exactly do you have in your chest sign? And, please pastebin your permissions file as well. Without those, it is very difficult to help you.
     
  6. Offline

    Acrobot

    @RabidPigeon
    You cannot buy/sell here = wrong 3rd line.
    You probably have something like:
    B 5 S 5

    The correct sign looks like that: (B and S can be on either side)
    B 5
    S 5
    B 5:5 S
     
  7. Offline

    robertobobbym

    WORKS PEARFECTLEEAH!
     
  8. Offline

    Zidkon

    @Acrobot can you try changing the potions names to the real potions names? atm it says "Potion:ID" I bet you can dedicate some time for getting the correct complete name :D
     
  9. Offline

    Acrobot

    @Zidkon
    Yeah, I could, however there is no API yet, so I'd have to do everything by hand :/
    I'll do it as soon as there's any API for it.
    Also, not every name would fit on the sign.
     
  10. Offline

    RabidPigeon

    No it looks just likethis (my whole sign)
    Shop (Yes I configed AdminShops name to normal Shop.)
    1
    B 75|45 S
    Diamond
    Is my problem the '|' should it be ':'? I'll give it a go!
     
  11. Offline

    Etsijä

    Yes, it should be ':', I don't think '|' will work.

    So: "B 75:45 S"
     
  12. Offline

    sean_skroht

    Hi Acrobot,

    About a week or two ago I mentioned that we were still getting the "You don't have permissions to access this chest" message, with ChestShop 3.31, whenever we tried to create a chest above an LWC protected chest and I mentioned that it was clashing with LWC. Well upon further testing I can see that I was wrong. It actually appears that it might be playing up whenever a combination of the following plugins are installed: Lockette, Bettershop. I can't exactly pinpoint the offending plugin as the results are really erratic.

    Being the awesomely accommodating person that you are (yes, I'm sucking up :D ), are you able to confirm this?
     
  13. Offline

    Acrobot

    @sean_skroht
    It is Lockette then. I'll have to test that then.
    Is the chest, with which you are trying to make a shop with, protected with Lockette?

    Thanks :p
    I'll try it later today (01:19 here)
     
  14. Offline

    sean_skroht

    No. It's just protected with LWC.
    Thanks for that!!!
     
  15. Offline

    ukballer1012

    Is there a page that has recommended prices for each item in the admin shop. People always seem to find a flaw and exploit that flaw to make a ton of money. It also sets the value of the dollar on the server as well, assuming regular players can't make shops. If there isn't a page you should consider making one. It would be useful.
     
  16. Offline

    Zidkon

    True and Ok, I will wait until it then since it doesn't really affect much things, just the ID number hanging arround
     
  17. Offline

    hayabusha

    I'm using and ChestShop3.31 iConomy6.0.8b.

    would be able to sell more than the possession limit set by iConomy.
    How can you fix this problem?
     
  18. Offline

    Amounado

    I have a problem wich i can't resolve. When my friend woul'd buy cobblestone from my chest, i have this massage in the console :
    174 recipes
    27 achievements
    11:27:29 [INFO] Starting minecraft server version 1.0.0
    11:27:29 [INFO] Loading properties
    11:27:29 [INFO] Starting Minecraft server on *:25565
    11:27:29 [ATTENTION] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    11:27:29 [ATTENTION] The server will make no attempt to authenticate usernames.
    Beware.
    11:27:29 [ATTENTION] While this makes the game possible to play without internet
    access, it also opens up the ability for hackers to connect with any username t
    hey choose.
    11:27:29 [ATTENTION] To change this, set "online-mode" to "true" in the server.s
    ettings file.
    11:27:30 [INFO] This server is running Craftbukkit version git-Bukkit-1.8.1-R4-1
    7-g04a14f7-b1493jnks (MC: 1.0.0) (Implementing API version 1.0.0-R1-SNAPSHOT)
    11:27:30 [INFO] Preparing level "Mein world"
    11:27:30 [INFO] Default game type: 0
    11:27:30 [INFO] Preparing start region for level 0 (Seed: -4081465135417343982)
    11:27:31 [INFO] Preparing spawn area: 77%
    11:27:31 [INFO] Preparing start region for level 1 (Seed: -4081465135417343982)
    11:27:32 [INFO] Preparing spawn area: 73%
    11:27:33 [INFO] Preparing start region for level 2 (Seed: -4081465135417343982)
    11:27:33 [INFO] Preparing spawn area: 93%
    11:27:33 [INFO] [CookieMonster] Failed to find WorldEdit: regions cannot be defi
    ned
    11:27:33 [INFO] [CookieMonster] to enable existing regions, put a copy of WorldE
    dit in the CookieMonster folder, or install WorldEdit to the server
    11:27:33 [INFO] [CookieMonster] Using iConomy v6 for economy
    11:27:33 [INFO] [CookieMonster] v1.6.6 loaded successfully.
    11:27:33 [INFO] [CookieMonster] Developed by: [jascotty2, Coelho]
    11:27:33 [INFO] [CreeperHeal] [CreeperHeal] Loaded 0 traps
    11:27:33 [INFO] [CreeperHeal] Loading config
    11:27:33 [INFO] [CreeperHeal] Loading world: Mein world
    11:27:33 [INFO] [CreeperHeal] Loading world: Mein world_nether
    11:27:33 [INFO] [CreeperHeal] Loading world: Mein world_the_end
    11:27:33 [INFO] [CreeperHeal] version 4.4 by nitnelave is enabled
    11:27:33 [INFO] [iConomy - Celty] Enabled (19 ms)
    11:27:33 [INFO] [ChestShop] version 3.31 initialized!
    11:27:33 [INFO] [ChestShop] iConomy 6 loaded.
    11:27:33 [INFO] [Factions v1.6.1] === ENABLE START ===
    11:27:33 [INFO] [Factions v1.6.1] No permission plugin detected. Defaulting to n
    ative bukkit permissions.
    11:27:34 [INFO] [Factions v1.6.1] Loading board from disk
    11:27:34 [INFO] [Factions v1.6.1] Economy integration is disabled, and the plugi
    n "Register" is not installed.
    11:27:34 [INFO] [Factions v1.6.1] === ENABLE DONE (Took 292ms) ===
    11:27:34 [INFO] Server permissions file permissions.yml is empty, ignoring it
    11:27:34 [INFO] Done (0.385s)! For help, type "help" or "?"
    11:27:35 [INFO] /192.168.1.10:60738 lost connection
    11:27:53 [INFO] Amounado [/127.0.0.1:50789] logged in with entity id 386 at ([Me
    in world] -227.21875, 68.0, -134.65625)
    11:28:05 [INFO] Ali [/192.168.1.10:60754] logged in with entity id 398 at ([Mein
    world] -229.0, 68.0, -133.875)
    11:28:21 [SEVERE] Could not pass event PLAYER_INTERACT to ChestShop
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.getEnchantments()Lja
    va/util/Map;
    at com.Acrobot.ChestShop.Utils.uInventory.equals(uInventory.java:125)
    at com.Acrobot.ChestShop.Utils.uInventory.amount(uInventory.java:97)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.amount(MinecraftChest.jav
    a:82)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.amount(MinecraftChest.jav
    a:61)
    at com.Acrobot.ChestShop.Chests.MinecraftChest.hasEnough(MinecraftChest.
    java:65)
    at com.Acrobot.ChestShop.Shop.Shop.hasEnoughStock(Shop.java:171)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:65)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)

    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:80)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    I don't know why =(. I set spawn radius to 0 in bukkit.yml but it's the same ...
    Can anyone help me ?
    PS : I have: -Cookie Monster v1.6.6
    -Creeper heal version 4.4
    -IConomy-Celty
    -Chest-Chop v3.31 (iConomy 6)
    -Faction v1.6.1
    Thanks for any help.
     
  19. Offline

    Acrobot

    @ukballer1012
    There isn't one, and there probably won't be any.
    Prices always change, depending on the availability of the item and many other things.
    Also, it depends on your "base" value, which isn't the same on 2 similar servers.

    @hayabusha
    What exactly do you mean?
    Are you able to go under the limit?
    If so, that's iConomy's error - I check if the player has enough money. If the iConomy reports me he has, I just substract it.

    @Amounado
    ChestShop 3.31 is for the latest recommended craftbukkit.
    You're running an outdated version of it.

    Please download craftbukkit from here:
    http://ci.bukkit.org/job/dev-CraftBukkit/1597/artifact/target/craftbukkit-1.0.1-R1.jar
    (remember to overwrite your current craftbukkit .jar)
     
    Amounado likes this.
  20. Offline

    Etsijä

    When it comes to prizes of minerals, it is fairly straightforward to estimate them based on the relative probability of finding them. Iron is for example roughly 22 times as common as diamond - so, a good way to start would be to set the prize of iron 1/22th that of a prize for diamond. We have used this kind of approach and it has worked pretty well for minerals. When it comes to other prizes (colours, wool [which seems to be incredibly rare in 1.0] etc.), of course some other simple measures of value would have to be invented, and this is by no means an easy task.
     
  21. Offline

    leshapalyn

    a как скачать плагин магазина
     
  22. Offline

    Amounado

    @Amounado
    ChestShop 3.31 is for the latest recommended craftbukkit.
    You're running an outdated version of it.


    Thank you Acrobot it's working !!!
    Thank you very much !
    Good game for everyone ...
     
  23. Offline

    ukballer1012

    Yeah, well I can set the prices. I was just looking for something to save me some time but your approach seems the most logical. I'll definitely use it.
     
  24. Offline

    hayabusha

    /iConomy/Config.yml
    Code:
    Cutoff: 1000.0
    For example, now when you have $ 1,000
    Would sell more than $ 1,000 and sell things in ChestShop.
    This problem is iConomy?
     
  25. Offline

    Mishrathium

    TOWNY_INTEGRATION: true
    #Do you want to only let people build inside shop plots?
    WORLDGUARD_INTEGRATION: true
    #Do you want to only let people build inside plots?

    How do the above settings work with each other?

    Setting these both to true:

    Will this let you build a shop in a towny shop plot OR a worldguard region otherwise not allow
    --or-
    Must it be a towny plot shop IN a worldguard region?

    Thank you
     
  26. Offline

    Acrobot

    @hayabusha
    Oh, right. This isn't in Register, unfortunately.
    What exactly does Cutoff do?

    @Mishrathium
    Must be IN a towny plot shop IN a worldguard region. :)
     
  27. Offline

    Bow

    It would be cool if you used Vault API rather than Register it supports way more economy plugins.
     
  28. Offline

    Acrobot

    @Bow
    Yeah, I am planning on switching, however the inability to include Vault's code in ChestShop (so you'll need to download different plugin) is holding me back at the moment.
     
  29. Offline

    Bow

    Oh I see well I hope they add some more support for you then because I think this is the best chestshop plugin out there.
     
  30. Offline

    Mishrathium

    @Acrobot - Thank you! Love the plugin to death! Another question..

    With TOWNY_INTEGRATION: true
    - How many players are able to create a shop inside one towny shop plot?

    I've had success with 2 players creating shops on a Towny Shop plot, but more people try to create it says "Cannot create shop here" They are a part of the town and have the proper permission. I see no configuration in Towny or Chest Shops with a limit to this.

    towny - .77.1.0
    CB - 1597
    ChestS - 3.30

    Any thoughts? Thank you again so much!
     
  31. Offline

    Acrobot

    @Mishrathium
    I have no clue, I am only checking if the player is the plot's owner and if it's a shop plot.
     

Share This Page