[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

    RaesWolf

     
  3. Offline

    Acrobot

    @RaesWolf
    What version of ChestShop are you using?

    @Milburn95
    Well, cannot sell =
    go to bukkit.yml, change spawn-radius to 0.
    Cannot buy - I can't help you, unless you exactly say what message do you get in console/chat.

    And for the wool color
    Red wool
    etc.
    or wool:dataValue
     
  4. Offline

    Liger_XT5

    I've been working on a revamped server to replace my old one when 1.9 comes out.

    I've noticed that after I installed, register began to be downloaded and installed. I don't really have a problem with plugins downloading files, but this is an acception. My server log is spammed with Could not pass event PLUGIN_ENABLE to Register or disable messages.

    I first thought it was MonsterHunt, since the download usually happens after it is listed.

    I don't suppose ChestShop is forcibly downloading register?
     
  5. Offline

    Canadianese

    I did that does not work heres my permissions im using PEX

    groups:
    default:
    default: true
    permissions:
    - modifyworld.*
    - modifyworld.chat*
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    options:
    rank: '1000'
    Admins:
    permissions:
    - -modifyworld.mobtarget.*
    - '*'
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.*
    - ChestShop.admin
    - ChestShop.shop.*
    options:
    rank: '100'
    prefix: '&c[Admins]&c '
    Owner:
    permissions:
    - -modifyworld.mobtarget.*
    - '*'
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.shop.create
    - ChestShop.*
    - ChestShop.admin
    - ChestShop.shop.*
    options:
    rank: '0'
    prefix: '&f[&9Owner&f]&9 '
    Member:
    options:
    rank: '900'
    prefix: '&0[&8M&7ember&0]&7 '
    permissions:
    - modifyworld.*
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    VIP:
    inheritance:
    - Member
    options:
    rank: '800'
    prefix: '&0[&eVIP&0]&e '
    permissions:
    - -modifyworld.mobtarget.monster.creeper
    - modifyworld.*
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.*
    Mod:
    prefix: '&5[Mod]&5 '
    Builder:
    inheritance:
    - VIP
    options:
    rank: '700'
    prefix: '&a[Builder]&a '
    Moderator:
    options:
    rank: '300'
    permissions:
    - -modifyworld.mobtarget.*
    - modifyworld.*
    - iConomy.access
    - iConomy.holdings
    Co-Owner:
    options:
    rank: '50'
    prefix: '&1[Co-Owner]&1 '
    permissions:
    - -modifyworld.mobtarget.*
    - '*'
    - iConomy.access
    - iConomy.holdings
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    - ChestShop.*
    - ChestShop.admin
    - ChestShop.shop.*
    SuperMod:
    options:
    rank: '200'
    users:
    Canadianese:
    group:
    - Owner
    options:
    group: Owner
    prefix: '&1[Master-&4SoulSplitter&1]&4'
    BIackSky:
    group:
    - Co-Owner
    options:
    group: Co-Owner
    proximitypanda:
    group:
    - Admins
    options:
    group: default
    akuro987:
    group:
    - Admins
    BushidoKill:
    group:
    - Co-Owner
     
  6. Offline

    Acrobot

    @Liger_XT5
    Nope.
    Register's code is integrated to ChestShop's, so there's no need to download (also - it won't cause conflicts, even if ChestShop/other register-using plugin) is outdated.

    @Canadianese
    Well, from your code, only VIP's and Admin/etc are able to create a shop (also, you gave VIP's ChestShop.* node, which will let them create admin shops and destroy other people's shops)
    You should probably check which group are you in.
    Also, I heard that some PEX version had a bug, which would not assign "something.*" permissions - make sure that's not the case.
     
  7. Offline

    Milburn95

    Didnt read it proply, sorry for wasting time, nice plugin by the way :)
     
  8. Offline

    Acrobot

  9. Offline

    skinnydude

  10. Offline

    Acrobot

    @skinnydude
    Yeah - that's not an issue, in fact, it fixes a bug when players could place a block there and they couldn't destroy it.
     
  11. Offline

    Donald Scott

    For some reason all players can create chest-shops. Why is this, they don't have the node.
     
  12. Offline

    Acrobot

    @Donald Scott
    By default, everyone can create admin shops.
    To disable it, you have to give them the negative permission node, for example
    - in PermissionBukkit, you give the permission node like normal, but instead of "true", you give false, f.ex.
    ChestShop.shop.create: false
    - in PermissionsEx, you just need to place '-' before the node, like:
    -ChestShop.shop.create

    etc.
     
  13. Offline

    Donald Scott

    Great, thanks!
     
  14. Offline

    feanarosurion

    I've been having a really weird issue lately. I keep getting an error that says "You don't have access to that chest."

    I'm running 1337, with Chestshop 3.24, my economy plugin is iConomy 6, and I use PermissionsBukkit.

    Everybody has the correct permissions, and as far as I can tell everybody else on the server can use it just fine, except, embarrassingly, the server admin's own player account. Any idea what that error signifies? Thanks.
     
  15. Offline

    APETERSON167

    @Acrobot well i am the admin, but it has my name on the top. i run the server as well as play on it so i guess it would b a player owned shop. thanks for responding and i hope we can figure this out
     
  16. Offline

    Themosey

    I have a bunch (dozen or so) admin shop chests. They all work fine. For some reason the slimeball one says that it is out of stock...

    Odd. Solution?
     
  17. Hey, me and imaxorz have been having problems with the transactions database for a while now. We are normally able to fix it by deleting the associated row in the table, but recently we've started getting a new error:

    Any idea what it could be or how to go about fixing it?

    Thanks
     
  18. Offline

    _ChaosTiger_

    @_ChaosTiger_
    Well, this isn't an economy plugin, but I guess you use iConomy.
    You should use /money then.[/quote]

    Does not work

    it says:

    Unknown command.Type "help" for help
     
  19. Offline

    mirek7

    it does not work it me :(:(
     
  20. Offline

    Acrobot

    @APETERSON167
    Just type in "Admin Shop" on the first line, it should work fine if you're admin.

    @Themosey
    I have no clue. Did you check the id with /iteminfo?

    @04blatca
    Hey. Which version of ChestShop are you using? I swear I did an try/catch for it, however, it seems like it still throws the error. It's a bug in internal bukkit database saving system :/
    It's not a really big bug - it just happens. If anyone can find out how to fix this, please tell me.

    @_ChaosTiger_
    Can you make a screenshot of your plugin folder?

    @mirek7
    (JesteĊ› z Polski?)

    What do you mean by that?
    What errors do you get in chat/console?

    @feanarosurion
    That error means that the account hasn't got ChestShop.admin permission (or there is a bug in your permissions plugin - I heard it was in PEX) and you're trying to create a shop on LWC or Lockette'd chest.
     
  21. Offline

    imaxorz

    Found a smaller problem a while ago, just remembering to report it. This might not be a huge deal to everyone, but players can definitely take advantage of this in a bad way.

    With iConomy to keep the database tidy I purge unused accounts once in a while. Problem is if that player had a shop that was buying stuff, you can sell to that shop indefinitely. Basically if the shop is for an account that no longer exists in iConomy you can sell to it as much as you want without it running out of money.

    Oh and 04blatca is my other admin We are using that version you gave me that has the extra option to place two shops on one block.
     
  22. Offline

    Acrobot

    @imaxorz
    Yeah - I guess it's a minor problem, because the chest will eventually be full.
    But still, it's a ChestShop 4 like thing.

    ChestShop 4 is STILL in planning section (I mean, I have a bit of code, but the most should be probably redesigned. For example, I plan on using annotations and custom events)
     
    imaxorz likes this.
  23. Offline

    _ChaosTiger_

    Attached Files:

  24. Offline

    Acrobot

  25. Offline

    _ChaosTiger_

    thx its work
     
  26. Offline

    hockiman95

    @hockiman95
    What do you mean by "perms don't work".
    Your permission config is probably messed up, could you paste it on pastebin.com and post the link here?
    Also - if the players just can't sell to the shop, go to bukkit.yml and change spawn-radius to 0.

    I meant none of my users have permission to buy or sell from Adminshops. they have the correct perms and theres no errors in the console.
     
  27. Offline

    Acrobot

    @hockiman95
    What error do they get?
    If "you haven't got permission to ...", it means either your config is messed up (so just pastebin.com), or your permission plugin fails (I heard that PEX did fail in one version)
     
  28. i'm wanting to make it so that users cannot buy/sell certain items until they reach a certain point/get a certain permission node...

    is it possible, without itemizing every single item, to make certain items blacklisted until you 'unlock' it? I REALLY dont want to have to go through and do a node for every item, just so i can leave out 5 different items >.>
     
  29. Offline

    syddie

    - CraftBukkit : git-Bukkit-0.0.0-1131-g86b7fa8-b1337jnks

    - ChestShop: 3.24

    - Your economy plugin: iConomy

    - Have you got any Permission plugin? PermissionsEx
    I can create shops and so can my designated "Shopkeepers" but when we try to buy from the shops it lets up freely take from them without charging and the money being withdrawn from out iConomy accounts in game. I also have Register installed (but don't really use it) and I was wondering if this could be interfering with the mod itself stopping the transaction from going through
    P.S. - we aren't getting the notifications that someone bought from the shop either and I have set iConomy as the economy mod in the config file
     
  30. Offline

    bigkevin112

    For some reason I can't get the Admin shops to let you sell back leaves?
     
  31. Offline

    hockiman95

    im using PEX so ill check that out.
     

Share This Page