[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

    @abouyer20
    I don't understand, sorry :/
    @paunk
    Are you sure you aren't admin?
    Also - what protection plugin are you using?

    @Trinkit
    Go to bukkit.yml, change spawn-radius to 0.
    You could find it in the main post though :p

    @APETERSON167
    I don't understand, is that a player-owned shop or an AdminShop (not player-shop made by admin, but a shop with first line - "AdminShop" or like that)?
     
  3. Offline

    Ardawen

    Hellow

    I got the very same thing and i did some test because i am able to use 2 accounts

    So account 1 placed a chest and lwced it, then protected extra it with lockette and that all in a resed area (with the residence plugin) where other players had build but no container access (what will never happen but he it was to test this bug out to the max)

    Then account 2 made a chest shop sign above that chest.
    He was unable to open the chest by hitting the chest, but when he hit the chestshop sign the sign breached all the protections on the chest and opened.

    a quick /version ChestShop confirmed that we got chestshop 3.24

    We also seem to have the leaves selling problem even when we use odd items and sub ids with cullen.
     
  4. Offline

    luki965

    I use PermissionsEX, iConomy 6.0.7 and latest ChestShop and I have problem... plugin is loaded perfectly but I can't do shops and I don's know why...
    1. Admin Shop
    2. B 1:1 S
    3. 10
    4. Dirt

    I do this and it's not working, I have permission for admins and op is enabled... WTF?
     
  5. Offline

    Acrobot

    @Ardawen
    Somehow, in 1.8 leaves are from 4 to 6, afaik.
    Check /iteminfo.

    For the protection issue - are you sure accout 2 doesn't have ChestShop.admin node?
    Also - when you use BOTH lwc and lockette, only one of them really works - there is no point in checking both, I thought.

    @luki965
    Hmm, everything's fine. Are you sure that the chestshop gets loaded? Could you post your server startup log?
    Also - do you get any errors?
     
  6. Offline

    abouyer20

    i ment on the server i have the right to make a shop and i made a shop but then i wanted to move it 10 blox to the right so i distroy the chess and sign and when i try and place the sing with the right formula n it it said anothe play has a shop here when it was style in my propety and the nearis player was 200 blox away and noone has ever been in that area before excpe me
     
  7. Offline

    Endet

    Hello!

    I got the oddest problem and I've been trying to figure this one out and I read most of this thread already. I have a problem that I've installed chestshop and it works fine, except for one person and one person only. For some reason, everyone can buy/sell/create signs perfectly but this one person can only create the and sell/buy trough them but can't buy/sell from other peoples signs/shops. He has exactly the same permissions as everyone else, I've double triple quadra checked my permissions, player files and everything. Even tried to delete everything from the server about this person, tried on a 2nd server with just chestshop plugin and he couldn't use it there either.

    Really needing help with this since he is one of the server main donators. :/

    Running Bukkit 1337 build with the latest chestshop 3.24. Had the problem with 1087 1317 builds as well. Using essentials for economy.
     
  8. Offline

    Acrobot

    @abouyer20
    Wow - that is weird, that would mean that you either:
    - enter your name on the first line (which shouldn't cause a problem afaik, but just to be sure)
    - have bugged chunk

    @Endet
    Hmm - did you test it on any shop?
    Can he check his balance?
    Do you get any errors in console/chat?
     
  9. Offline

    paunk

    @Acrobot

    yes, because my players found thatbug.

    Btw, i used bananaprotect
     
  10. Offline

    AlexTheDooD

    Hey mate! Would just like to say that I came back to your plugin after moving my spawns shop away from the spawn, out of the 'spawn radius', in a bid to resolve the selling issue stated earlier. It worked! Players are now enjoying the shop and my server is up and running to its full potential :D

    10/10
     
  11. Offline

    Acrobot

    @paunk
    Hmm - I'll check that, thanks for the information. BTW, what plugins are you using?

    @AlexTheDooD
    I'm glad it works for you :)
     
  12. Offline

    Lookatmego

    hey dude ive given my players the permission nodes but they still cant shop/sell to the shops any idea?
     
  13. Offline

    Acrobot

  14. Offline

    Lookatmego

    non at all it loads fine and works for me as op but for others nope...says you cannot sell or buy from this shop
     
  15. Offline

    Acrobot

    @Lookatmego
    That means that your sign has a wrong format.
    It's
    B 5:5 S
    or
    B 5
    or
    S 5
    (B and S can be on either side)
     
  16. Please check your permissions twice. They're CASE-SENSITIVE:
    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops
    Which error messages users get?


    @Acrobot
    You're 20/7 online or? :p
     
  17. Offline

    Acrobot

    @VADemon
    Nah, but I have Bukkit forums in the Speed Dial of my browser, so when I change the webpage, I also visit the forum :)
     
  18. odd question... with WorldGuard, if i have an item blacklisted for users to acquire in their inventory (unless they have a certain permission), and they attempt to buy an item such as that from a chest shop, does anyone know the outcome?
    I'd like for it to be that the shop denies the transaction and they dont get the item, and dont lose money, but i'm not 100% sure. So, i thought i'd ask here :)
     
  19. Offline

    Lookatmego

    nono they are like that like atm its like
    lookatmego
    1
    B 5
    Dirt
     
  20. Offline

    Acrobot

    @Lookatmego
    This should work fine for buying - do they get the "You can't buy here" error when they click on the sign?

    @stargateanubis14
    I honestly don't know :)
    Maybe someone else knows?
     
  21. Offline

    Lookatmego

    yes thats what it is sadly:/
     
  22. Offline

    Acrobot

    @Lookatmego
    Are you sure that the 3rd line contains only
    B 5
    and no other characters?
    The error only occurs if your price is undefined, that means - any additional letter will make it fail.
    It'd help me if you could take a screenshot of the sign.

    BTW, I'm going to sleep, cya ~
     
  23. @Acrobot
    Then make another error message for "undefined price error".
     
  24. Offline

    imaxorz

    What usually causes the "Another player's shop detected!" error? My players have been getting that lately in random spots around our "mall".


    EDIT: Looks like this changed in one of the recent updates. It happens if it's on the same wall that has a shop sign directly behind it (sign-->|[wall]|<-- sign). Any way to get around this?

    Thank you :)
     
  25. Offline

    hockiman95

    Yea, same here. i run a pvp iconomy server so i need chestshops and the perms dont work.. fix fast please.
     
    Lookatmego likes this.
  26. Offline

    Lookatmego

    k ive tried everything...the signs are set correctly because me as op i can sell/buy from the shops by other players aswell...they also cannot MAKE the shops.
    I have given them all the permission nodes + ChestShop.shop.* but nothing still.

    any help would be nice

    im using latest RB for craftbukkit and latest version of your plugin
     
    hockiman95 likes this.
  27. Offline

    AlexTheDooD

    @hockiman95 @Lookatmego Make sure the shop isnt within the spawn radius! Trust me, if the shop is in spawn, move it out of spawn, protect it and try it there, worked for me :)
     
  28. Offline

    Endet

    @Acrobot Tried with multiple shops, made by me and others, different chunks (no idea why this would have worked xD). He can check his balance, sell to the admin shops and buy from them. No errors in the console, only error he gets is "You don't have permissions to do that/to sell here/buy". It's so odd that even if I close group manager and disable every permission plugin, he still gets the same message even though there isn't any permissions used.
     
  29. Offline

    Acrobot

    @VADemon
    This is the error for undefined price...

    @imaxorz
    Well, an admin can place shops with someone's else name - otherwise, player could just destroy the wall and also destroy the other sign, right?
    Or you can just build a wall 1 block thicker, or move shop signs a bit to right/left, where there isn't any sign on the other side.

    @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.

    @Endet
    Do you use GroupManager bridge? AFAIK, GroupManager doesn't work with SuperPerms (or am I wrong?), so it needs the Permissions 2/3 bridge.
    You can't run multiple permission plugins, BTW. This causes big problems.

    Also, make sure it's EXACTLY (case-sensitive)
    ChestShop.shop.*
    (or ChestShop.shop.buy, etc.)

    @Lookatmego
    Well, your permission config is probably corrupted.
    Could you post it on pastebin.com and link me to it?
     
  30. Offline

    luki965

    Acrobot look:

    It's loaded and It's not working... why?
     
  31. Offline

    Acrobot

    @luki965
    What do you mean by "not working"?
    Do you get any errors in console/chat?
    How does your sign look like?
     

Share This Page