[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

    smc

    I really like your plugin but it is in conflict with AlphaChest. Both use the command /chest. You could create an option to disable /chest?
     
  3. Offline

    Riccobab

    Thanks for this plugin. It's made my server a lot more interesting. :)

    My bug (I think it's a bug?) is that players can't sell anything to shops facing south.
    I'm using the default config, but have LWC on signs and chests instead of the inbuilt protection.
    Permissions are
    Default group:
    - 'ChestShop.shop.*'
    - 'ChestShop.command.iteminfo'

    Do you think this is LWC or ChestShop?
    Thanks for the support.
     
  4. Offline

    Acrobot

    @Gamerz1996
    Try deleting bukkit.yml

    @smc
    There isn't a "chest" command in ChestShop, to disable it in iConomyChestShop (Well, in every plugin), go to iConomyChestShop.jar and open it with WinRAR/something, open plugin.yml and change from "chest" to, for example, "chestshop"

    @Riccobab
    Hmm, that is EITHER:
    - spawn protection
    - bukkit bugging out.
     
    smc likes this.
  5. Offline

    vapid2323

    Not sure that this is your plugin or not but I figure I might bring it up while I continue to investigate on my server.

    I have got reports of my users shops being wiped out, the chest and sign is still there but the sign has no text and the chest is empty. The first report of this I kind let it go but now I am getting more reports of it.

    Is this something thats possible with your plugin? Also I belive I am still running Beta 7.

    I will continue to look into this on my server.
     
  6. Offline

    Acrobot

    @vapid2323
    Not possible. It is probably something/someone that wipes the sign (then someone can take the items from the shop), there is no option that my plugin could do that.
     
  7. Offline

    vapid2323

    I figured :)

    Thanks!
     
  8. Offline

    strontkever

    is there a way to change the B of buying into "price"? havent searched the whole forum yet but its too many pages
     
  9. Offline

    Acrobot

    @strontkever
    Not exactly, but I'll probably add it.
     
  10. Offline

    strontkever

  11. Offline

    Disaster

    Hello everyone,

    I was testing the IconomyChestShop 3.x

    I setted the Permissions, and people can buy and sell from the normal shops i created..
    Now i made a AdminShop but it says the following when i try to buy or sell:

    What am i doing wrong..
    Here is the permissions i setted (iam using Permissions latest build):
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '&e'
                suffix: ''
                build: false
            inheritance: []
            permissions:
                - 'essentials.help'
                - 'essentials.helpop'
                - 'essentials.list'
                - 'essentials.motd'
                - 'essentials.rules'
        Builder:
            default: false
            info:
                prefix: '&f[&1Builder&f]'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'essentials.afk'
                - 'essentials.balance'
                - 'essentials.chat.shout'
                - 'essentials.mail'
                - 'essentials.mail.send'
                - 'essentials.me'
                - 'essentials.msg'
                - 'essentials.pay'
                - 'essentials.protect'
                - 'essentials.protect.alerts'
                - 'essentials.protect.ownerinfo'
                - 'essentials.protect.damage.contact'
                - 'essentials.protect.damage.creeper'
                - 'essentials.protect.damage.fire'
                - 'essentials.protect.damage.lava'
                - 'essentials.protect.damage.pvp'
                - 'essentials.protect.damage.projectiles'
                - 'essentials.worth'
                - 'essentials.joinfullserver'
                - 'iConomy.access'
                - 'iConomy.list'
                - 'iConomy.payment'
                - 'iConomy.rank'
                - 'lockette.user.create.*'
                - 'lockette.create.all'
                - 'iConomyChestShop.shop.buy'
                - 'iConomyChestShop.shop.sell'
        ShopOwner:
            default: false
            info:
                prefix: '&f[&3Shop Owner&f]'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'iConomyChestShop.admin'
                - 'iConomyChestShop.shop.create'
                - 'iConomyChestShop.command.iteminfo'
                - 'iConomyChestShop.shop.create.<id>'
                - 'iConomyChestShop.shop.exclude.<id>'
        Admin:
            default: false
            info:
                prefix: '&f[&4Admin&f]'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    please help, thanks in advance

    Disaster
     
  12. Offline

    Acrobot

    @Disaster
    Well, there are some things.

    To begin with - if you are using ChestShop 3 (name changed), you need to have Permission nodes changed.
    Basically, it just changed from iConomyChestShop to ChestShop, but I see you've got your permissions set up incorrectly, I fixed it:
    http://pastebin.com/pszx8aY4
    (If you're using iConomyChestShop version 2.x, I reccomend switching to the newest, beta one)

    Also, you get the errors
    Code:
    Buy: Shop owner doesn't want you to buy here!
     Sell : Shop owner doesn't want you to sell here!
    
    This means your 3rd sign line is wrong.

    It should be either:
    • B price
    • S price
    • B price : price S
    (Where B and S can be on either side of price)
     
  13. Offline

    jonassm

    Whats new in Beta 8?
     
  14. Offline

    Acrobot

  15. Offline

    Disaster

    iam going to set the permissions now =)
    and i think if the problem lies in Line3 on the sign..
    then i asume that the following is wrong with what i do:

    L1: AdminShop
    L2: 1
    L3: B 0 : S 0
    L4: (ItemID)
     
  16. Offline

    ProfessionalMH

    I used to play on a server that had this and made a fake account for this. I now have a server and don't know how to make one so that i can buy and sell. It will help so that i wont have to have infinite money to run the shop.
     
  17. Offline

    Acrobot

    @Disaster
    Nope, this is actually right, but you don't sell or buy (price is 0)
    If you want to sell/buy, set price to "free" instead of 0

    @ProfessionalMH
    If you talk about normal shops, you won't have infinite money.
    If you talk about Admin Shops -
    /money create name_of_your_fake_account

    in config.yml, change
    (in iConomyChestShop 2.X) serverAccountName: "name_of_your_fake_account"
    (in ChestShop 3.X) SERVER_ECONOMY_ACCOUNT: "name_of_your_fake_account"
     
  18. Offline

    ProfessionalMH

    t
    thnx
     
  19. Offline

    Zecharian

    Is the latest beta version compatible with Bukkit 860 (1.6.6) I had changed my permissions to reflect chestshop instead of iConomyChestshop and loaded the server with beta 8 installed, and now all I get is the following error on load:

    2011-07-06 15:45:33 [SEVERE] Error occurred (in the plugin loader) while enabling Essentials v2.3.1 (Is it up to date?): null
    java.util.ConcurrentModificationException
    at java.util.TreeMap$PrivateEntryIterator.nextEntry(Unknown Source)
    at java.util.TreeMap$KeyIterator.next(Unknown Source)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:308)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:806)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    If I go back to 2.75 and re-change the permissions back to iConomyChestShop, everything is fine and no errors.
     
  20. Offline

    Acrobot

    @Zecharian
    Erm... It's something wrong with essentials...
     
  21. Offline

    Zecharian

    Ok, I'll see what I can find. I just found it odd it only did that after I upgraded just this plugin :( Thanks!
     
  22. Offline

    nichiatu

    It keeps giving me: "You cannot create this type of shop" when I'm an admin and have "iConomyChestShop.*" as a permissions node. Even when I try making a regular shop? :eek:
     
  23. Offline

    ProfessionalMH

    It keeps saying SELLER has not enough money! when someone tries to sell something
     
  24. Offline

    Acrobot

    @ProfessionalMH
    Because you didn't give money to your fake account? If you want unlimited money, just change the serverAccountName to ""
     
  25. Offline

    ProfessionalMH

    How would i give money to it i type /eco give @@Pro (the fake account name) 9999999999999999999. it doesnt work unless theres a different way
     
  26. Offline

    Acrobot

    @ProfessionalMH
    Isn't it just too much?
    Can you give me teamviewer id/pw?
     
  27. Offline

    ProfessionalMH

    ??? teamviewer id/pw?
     
  28. Offline

    Acrobot

  29. Offline

    ProfessionalMH

  30. Offline

    Acrobot

    @nichiatu
    Maybe you downloaded ChestShop 3?
    :D
    Just change the Permission nodes from iConomyChestShop to ChestShop.
     
  31. Offline

    nichiatu

    I downloaded the most recent version that works for 953 (I hope?) I'll change the permission nodes!
     

Share This Page