[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

    schatty

    Hey ,

    I do not know is what the user wrote on the sign. I must ask whether he knows it yet.

    My Bukkitversion is bugged? What do you mean?
    Did the version of http://ci.bukkit.org/job/dev-CraftBukkit/Recommended/

    Thank you for your answer!
     
  3. Offline

    zeph

    Is it possible to only allow shops to be created only in a particular region?

    We use WorldGuard for zones, and i'd like to allow players to only have shops in a market zone, not anywhere on the world.

    EDIT

    I just saw World Guard Integration: True.
    How does it work? Flag?
     
  4. Offline

    Glacius87

    Hello all. I saw this plugin on some other server and I really like it. Now I want to make my self the same shop but I'm stuck. I'm new to this so if someone can post clear instructions step by step I would be thankful. Do I need this Registry.jar file and where to copy permissions? I'm totally lost. All this files makes me feel dizzy :confused:

    Thanks!
     
  5. @zeph
    It simply allows to build a shop INSIDE WG's regions.
    @Glacius87
    Put .jar into /plugins/
    And ChestShop folder too.
     
  6. Offline

    Glacius87

    I did that, but I don't know how to create admin shop. Where to put admin shop
    or anything specified in config file
    this thing? Do I need ieconomy plugin because I don't have any? And what about permissions?

    Thanks for your fast reply.
     
  7. Offline

    zeph

    But that means any region... Can we not limit it?
     
  8. Offline

    Acrobot

    @schatty
    Hmm - does it always happen?
    If it happened only once, then it's not a big deal.

    @zeph
    Not yet possible :/

    @Glacius87
    Nope, you don't need the Register.jar
    If you use any permission plugin, then put it in its config.
    If you don't use any, ChestShop by default will let people build shops, buy and sell, and OPs will be able to create admin shops/etc.

    Yes, you need some kind of economy plugin.
    iConomy/BOSEconomy/Essentials Eco just to name a few.
     
  9. Offline

    boysol

    Hello there.

    I have a problem with this great plugin.
    I set it up successfully, with my permission nodes to this:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - towny.wild.*
            - towny.town.*
            - towny.nation.*
            - essentials.balance
            - essentials.help
            - essentials.home
            - essentials.info
            - essentials.list
            - essentials.msg
            - essentials.pay
            - essentials.rules
            - essentials.sethome
            - essentials.suicide
            - essentials.spawn
            - essentials.tpa
            - essentials.tpaccept
            - essentials.tpdeny
            - essentials.warp
            - essentials.warp.list
            - essentials.motd
            - lockette.user.create.*
            - ChestShop.shop.*
        Member:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Default
            permissions:
            - essentials.clearinventory
            - essentials.afk
            - essentials.god
            - essentials.tp
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Member
            permissions:
            - essentials.tphere
            - essentials.tpohere
            - essentials.togglejail
            - essentials.ban
            - essentials.kick
            - essentials.unban
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            - Moderator
            permissions:
            - essentials.mute
            - essentials.unmute
            - essentials.banip
            - essentials.unbanip
            - essentials.give
            - essentials.setwarp
            - worldedit.*
            - lockette.admin.create.*
            - lockette.admin.break
            - lockette.admin.bypass
            - lockette.admin.snoop
            - lockette.admin.reload
            - ChestShop.admin
        Owner:
            inheritance:
            - Admins
            permissions:
            - essentials.*
    Now, when I go to the game and I create the shop:

    Admin shop
    1
    B 30
    Cake

    It makes the shop successfully and charges $5.
    Now I logged on my second account, which is not admin but a regular player (Default)
    I try to buy it and it says "[Shop] You don't have permission to do that!"
    I run theese plugins:
    Essentials, EssentialsChat, EssentialsProtect, EssentialsSpawn, iConomy, Lockette, Permissions, Questioner, WorldEdit, WorldGuard, ChestShop, Register, Towny, TownyChat.

    Any help? Thanks in advance.
     
    Raggarcowboy likes this.
  10. Offline

    Raggarcowboy

    When I have "permissions plugin" installed, only admins can use the shops. To a default player it says: "[Shop] You don't have permissions to do that!". Either if you buy, sell or create shops. When playing without "permissions plugin" it's working just fine. I think it has something to do with the permissions you can find here: http://pastebin.com/aBb36xwJ I haven't used those since I don't know where to put them. Maybe it's just me, but I can't see if that is written in the article. Although I can see that you should in the config, but I don't know where.
     
  11. Offline

    boysol

    I still need help with this.. 2 posts above this.
     
  12. Offline

    Acrobot

    @boysol
    Can you make a screenshot of your plugins folder?
    I believe you might be using Permissions 2/3 AND other permission plugin, which you configured.

    @Raggarcowboy
    You probably need to give the default players ChestShop.shop.* node.
     
  13. Offline

    Raggarcowboy

    K thx bye ^^
     
  14. Offline

    Acrobot

    @Raggarcowboy
    That depends on your permission plugin.
    You're using either Permissions 2 or Permissions 3 (which I don't reccommend BTW, they are outdated now - try bPermissions or PEX), you have to modify groups.yml
    Just search youtube, there's a lot of videos that tell you how to set up different permission plugins.
     
  15. Offline

    boysol

    I dont know what you mean by screenshot of my plugin folder.
    Entire plugin folder or just the permission folder?
    Anyways here's both.

    Permission 3.16 folder:
    [​IMG]

    Plugins folder:
    [​IMG]
     
  16. Offline

    Eciah

    /iteminfo tells me what the info is on what im holding, but that doesnt change that the signs say LOG:2 for 17:2 and LOG:1 for 17:1, i would like the sign to say, Pine, and Birch etc but it doesnt do that for me, anything i can do to change it?
     
  17. Offline

    Raggarcowboy

    The nodes helped thanks for the advice :)
     
  18. Offline

    Acrobot

    @Eciah
    In the newest ChestShop version (3.21) you should also be able to do something like:
    Birch Log
    Pine Log

    And it will work :)

    @boysol
    Hmm... Your files are fine.
    I have no idea what's wrong.
    Have you tried adding
    ChestShop.shop.create
    ChestShop.shop.buy
    ChestShop.shop.sell
    separately?
     
  19. Offline

    boysol

    Yes it didn't work. Can it have something to do with Permissions 3.16?
    Or have anything to do with me adding the permissions in globalGroups.yml too?
     
  20. - CraftBukkit 1.0.1 R1
    - ChestShop 3.31
    - Your economy plugin iConomy 5.1
    - Have you got any Permission plugin Permissionbukkit

    i have big problem with chestshop everyone can't create shop and admin shop too

    every permission is set ok but not taken

    Citoyen:
    permissions:
    permissions.build: true
    lwc.create: false
    lwc.protect: false
    logblock.lookup: false
    logblock.tools.toolblock: false
    ChestShop.shop.*: false
    worlds:
    world:
    lwc.protect: false
    lwc.create: false
    heroes.classes.assassin: true
    heroes.classes.chasseur: true
    heroes.classes.pretre: true
    heroes.classes.barbare: true
    heroes.classes.chevalier: true
    heroes.classes.sorcier: true
    heroes.classes.ensorceleur: true
    superpermbridge.iConomy.payment: true
    signtrader.use: true
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
    ChestShop.shop.create: false
    superpermbridge.ChestShop.shop.create: false
    essentials.home: true
    essentials.list: true
    essentials.sethome: true
    essentials.signs.warp.use: true
    essentials.msg: true
    dynmap.hide.self: true
    dynmap.show.self: true
    essentials.protect.pvp: true
    DailyBonus.get: true
    multiverse.access.*: true
    multiverse.core.spawn.self: true
    mchat.prefix.Haut-Chancelier: false
    mchat.prefix.Conseiller: false
    mchat.prefix.Paysagiste: false
    mchat.prefix.Citoyen: true
    mchat.prefix.default: false
    mchat.prefix.Bucheron: false
    mchat.prefix.Ingenieur: false
    mchat.prefix.Forgeron: false
    mchat.prefix.Restaurateur: false
    mchat.prefix.Tisserand: false
    mchat.prefix.Alchimiste: false
    aether:
    lwc.create: false
    lwc.protect: false
    heroes.classes.ensorceleur: true
    heroes.classes.assassin: true
    heroes.classes.chasseur: true
    heroes.classes.pretre: true
    heroes.classes.barbare: true
    heroes.classes.chevalier: true
    heroes.classes.sorcier: true
    superpermbridge.iConomy.payment: true
    signtrader.use: true
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
    ChestShop.shop.create: false
    superpermbridge.ChestShop.shop.create: false
    essentials.list: true
    essentials.home: false
    essentials.sethome: false
    essentials.signs.warp.use: true
    essentials.msg: true
    dynmap.hide.self: true
    dynmap.show.self: true
    essentials.protect.pvp: true
    DailyBonus.get: true
    multiverse.access.*: true
    mchat.prefix.Haut-Chancelier: false
    mchat.prefix.Conseiller: false
    mchat.prefix.Paysagiste: false
    mchat.prefix.Citoyen: true
    mchat.prefix.default: false
    mchat.prefix.Bucheron: false
    mchat.prefix.Ingenieur: false
    mchat.prefix.Forgeron: false
    mchat.prefix.Restaurateur: false
    mchat.prefix.Tisserand: false
    mchat.prefix.Alchimiste: false
    multiverse.core.spawn.other: false
    multiverse.core.spawn.self: false
    nether:
    lwc.create: false
    lwc.protect: false
    heroes.classes.ensorceleur: true
    heroes.classes.assassin: true
    heroes.classes.chasseur: true
    heroes.classes.pretre: true
    heroes.classes.barbare: true
    heroes.classes.chevalier: true
    heroes.classes.sorcier: true
    superpermbridge.iConomy.payment: true
    signtrader.use: true
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
    ChestShop.shop.create: false
    superpermbridge.ChestShop.shop.create: false
    essentials.list: true
    essentials.signs.warp.use: true
    essentials.msg: true
    dynmap.hide.self: true
    dynmap.show.self: true
    essentials.protect.pvp: true
    DailyBonus.get: true
    multiverse.access.*: true
    mchat.prefix.Haut-Chancelier: false
    mchat.prefix.Conseiller: false
    mchat.prefix.Paysagiste: false
    mchat.prefix.Citoyen: true
    mchat.prefix.default: false
    mchat.prefix.Bucheron: false
    mchat.prefix.Ingenieur: false
    mchat.prefix.Forgeron: false
    mchat.prefix.Restaurateur: false
    mchat.prefix.Tisserand: false
    mchat.prefix.Alchimiste: false
    multiverse.core.spawn.other: false
    multiverse.core.spawn.self: false
    skyland:
    lwc.create: false
    lwc.protect: false
    heroes.classes.ensorceleur: true
    heroes.classes.assassin: true
    heroes.classes.chasseur: true
    heroes.classes.pretre: true
    heroes.classes.barbare: true
    heroes.classes.chevalier: true
    heroes.classes.sorcier: true
    superpermbridge.iConomy.payment: true
    signtrader.use: true
    essentials.home: false
    essentials.sethome: false
    ChestShop.shop.buy: true
    ChestShop.shop.sell: true
    ChestShop.shop.create: false
    superpermbridge.ChestShop.shop.create: false
    essentials.list: true
    essentials.signs.warp.use: true
    essentials.msg: true
    dynmap.hide.self: true
    dynmap.show.self: true
    essentials.protect.pvp: true
    DailyBonus.get: true
    multiverse.access.*: true
    mchat.prefix.Haut-Chancelier: false
    mchat.prefix.Conseiller: false
    mchat.prefix.Paysagiste: false
    mchat.prefix.Citoyen: true
    mchat.prefix.default: false
    mchat.prefix.Bucheron: false
    mchat.prefix.Ingenieur: false
    mchat.prefix.Forgeron: false
    mchat.prefix.Restaurateur: false
    mchat.prefix.Tisserand: false
    mchat.prefix.Alchimiste: false
    multiverse.core.spawn.other: false
    multiverse.core.spawn.self: false



    and in game
     
  21. Offline

    Acrobot

    @boysol
    Honestly - I don't know. I haven't used Permissions 3 for a long time - they are deprecated now.
    I know that putting nodes in globalPermissions isn't a good idea. (I've read about it somewhere on github)

    @darkpavel
    I'd rather ask PermissionsBukkit dev about it, since he probably knows better than me :)
    http://dev.bukkit.org/server-mods/permbukkit/
     
  22. Offline

    boysol

    I am using PermissionsBukkit now, and it works excellent!
    Permissions 3.0 is SHIIIT. Do not use it.
    I didn't even setup ChestShop in PermissionsBukkit it did it automatically and detects if I'm admin gives me the correct rights etc.. It's just great. Thanks.
     
  23. Offline

    JoneKone

    How about just 1 line in different color? hmm name? Does it have to be the whole name in the sign?

    It would disdingquis the sign from normal signs.. That is what i'm after here..
     
  24. Offline

    VoidingNixx

    edit: I'm stupid....

    removed my old complaining post... I did something wrong ;p
     
  25. Offline

    schatty

    Hey ,

    I asked my users to change time a few things in the shop, but so far the error appeared again. So probably just a small thing really.

    Thank you for the answer;)
     
  26. Offline

    Sich

    Hello,

    The function with the ChestShop.group.groupName perm work fine. The user can create the shop without problem.
    But.... Then the user can't access the chest ! To take or remove items....

    Could you please check this ? The user with the good perms must be able to manage the shop like is own.

    Thanks :)

    Sich
     
  27. Offline

    Mine4Tim

    Sorry can't use this yet because iConomy is inactive and isn't updated yet!
     
  28. Offline

    Zeigren

    So not exactly sure why I can't create chests or anything. It seems to load alright when I run the server although it says it's using Permissions version 2.7.7. and I'm using PermissionsBukkit. Maybe a conflict with another plugin? Or perhaps my permissions are set all wrong? Here are my permissions and a picture of my plugin folder. Plugins Folder.png
    Code:
    groups:
        default:
            permissions:
                waypoint.basic.add: true
                waypoint.basic.delete: true
                waypoint.basic.teleport: true
                waypoint.basic.invite: true
                waypoint.basic.invite.accept: true
                waypoint.basic.invite.decline: true
                waypoint.basic.list: true
                waypoint.home: true
                waypoint.home.set: true
                waypoint.home.set_on_bed_leave: true
                waypoint.teleport.teleport: true
                waypoint.teleport.location: true
                waypoint.spawn: true
                waypoint.warp: true
                waypoint.world: true
                waypoint.world.teleport: true
                waypoint.world.list: true
                waypoint.world.access.Deeze Niggas: true
                waypoint.warp.access.default: true
                waypoint.warp.create: true
                waypoint.warp.delete: true
                waypoint.warp.list: true
                waypoint.sign.link.create: true
                waypoint.sign.link.use: true
                waypoint.sign.link.delete: true
                waypoint.sign.warp: true
                waypoint.sign.world: true
                commandbook.time.check: true
                commandbook.whereami: true
                worldedit.chunkinfo: true
                ecocreature.reward.angrywolf: true
                ecocreature.reward.cavespider: true
                ecocreature.reward.creeper: true
                ecocreature.reward.enderman: true
                ecocreature.reward.ghast: true
                ecocreature.reward.giant: true
                ecocreature.reward.monster: true
                ecocreature.reward.pigzombie: true
                ecocreature.reward.poweredcreeper: true
                ecocreature.reward.silverfish: true
                ecocreature.reward.skeleton: true
                ecocreature.reward.slime: true
                ecocreature.reward.spawner: true
                ecocreature.reward.spider: true
                ecocreature.reward.zombie: true
                ecocreature.reward.deathpenalty: true
                ecocreature.reward.deathstreak: true
                ecocreature.reward.killstreak: true
                ecocreature.reward.player: true
                chestShop.shop.buy: true
                chestShop.shop.sell: true
                chestShop.shop.buy.itemID: true
                chestShop.shop.sell.itemID: true
                taien.th.hunt: true
                taien.th.notify: true
                taien.th.tool: true
                taien.th.claim: true
        admin:
            permissions:
                waypoint.admin.spawn: true
                waypoint.admin.spawn.set: true
                waypoint.admin.spawn.save: true
                waypoint.admin.spawn.load: true
                waypoint.admin.warp: true
                waypoint.admin.world.create: true
                waypoint.admin.world.import: true
                waypoint.teleport.here: true
                chestShop.shop.create: true
                chestShop.admin: true
                chestShop.mod: true
                chestShop.shop.create.itemID: true
                taien.th.admin: true
    
            inheritance:
            - user
        user:
            permissions:
            inheritance:
            - default
     
  29. Offline

    chinchila

    Man i get player_interact could not pass
     
  30. Offline

    Acrobot

    @Sich
    Hey :)
    Actually, the group thing only limits the players to be able to buy from the shops that have a [Restricted] sign above them.
    The permission for name change is
    ChestShop.name.someonesName

    @JoneKone
    I'm planning on making the amount red when there's no stock and green when there is stock.
    And yeah - I forgot about letting them stock the shop :p

    @Mine4Tim
    iConomy 5 is inactive, however works.
    There is iConomy 6 available from here:
    http://dev.bukkit.org/server-mods/iconomy/
    I recommend iCo5, because 6 seems to give error from time to time.
    You can find iCo5 here:
    http://mirror.nexua.org/iConomy/5.0/1/iConomy.zip

    @Zeigren
    It says it uses Permissions 2.77 because you are using a SuperPermBridge, which is essentially permissions 2 linked with PermissionsBukkit.
    I'd try changing the permission nodes to the correct one first.
    It's ChestShop, not chestShop :)

    @chinchila
    Can you give me the whole error? Have you got any permission plugins or economy ones?
     
  31. Offline

    ALEX22red

    So Like, When Me Or People On My Server Click On The Admin Shop Signs, They USE The Money, But They Dont Get Anything Back. :eek:
    Im Running
    CraftBukkit : version git-Bukkit-1.8.1-R4-17-g04a14f7-b1493jnks (MC: 1.0.0) (Implementing API version 1.0.0-R1-SNAPSHOT)
    ChestShop : 3.31
    Im Using iConomy.
    I Dont Use Permissions, Since I Cant Figure Them Out.
    Could Someone Help Maybe? :'(
     

Share This Page