[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

    TheMadMan697

    When i type /iteminfo with a pistion in hand it says "PISTION_BASE"
    When i was creating the sign i typed 33 as the item id and this converted to "PISTION BASE"
    If i actually enter "PISTION_BASE" it says it is invalid.
     
  3. Offline

    winter4w

    Ok
    i did this now

    Admin Shop
    1
    B 3 S 1
    WOOD

    But now i cant u can't buy or sell form the shop so Can u send me a full example because I want people to buy and sell
     
  4. Offline

    Acrobot

    @winter4w
    Still, you are missing the ':' between the prices. Think of it as a wall - you can either see sell price, or buy price. If there isn't any wall, the prices get confused :p

    The proper example would be:

    Admin Shop
    1
    B 3:S 1
    wood

    @TheMadMan697
    Hmm, weird.
    Could you try, for example,
    PISTON_B
    or
    PISTON_BA?
     
  5. Offline

    TheMadMan697

    Both PISTION_B and PISTION_BA give me
    "You have specified invalid item id!"

    Its strange that its only selling to the shop thats the problem. Buying works fine.
     
  6. Is it so hard to write 29:7 for sticky piston and 33:7 for normal piston? Works perfectly for me.
     
  7. Offline

    mypetsquirrel

    I have an unusual situation that may or may not have been encountered and discussed before, so I apologize if it has already been discussed. Everything about this plugin works fine for now, but now I can't place REGULAR signs.

    Here's what a sign I'm trying to place says:

    CurrentVer:
    1317
    Current Status:
    Operational

    This is on a wall of signs that are setup so the players know what plugins are updated to current bukkit version, and therefore why certain things aren't working right now. Ironically I encountered this while trying to change the status of the ChestShop plugin sign.

    The error is "[Shop] You have specified invalid item id!" and the sign pops off.

    I'm guessing that the problem is that the formatting of this sign is CLOSE to a ChestShop sign, but it's not one. I would be fine with this, if the stupid sign didn't pop off. leave it there, with an error saying "Shop NOT created" or something, and I got no problems.

    I'm running Server 1317 because most of our plugins aren't updated to 1337 yet.
     
  8. Offline

    TheMadMan697

    Wow that worked. Thank you. Why the damage value of 7 i didn’t know about that. I was putting 33 as the item id. Didn’t know there was a damage value on it.
     
  9. @mypetsquirrel
    Well most plugins don't need to be updated, because they're still compatible with the newest bukkit.

    Yep, you're right. I wasnt able to place the sign. Do you running the server on your computer? Then use MCEdit to edit the sign. If not then install any plugin that allows to change the sign. There're 3-4 plugins that do that.
     
  10. Use /iteminfo to find out the id. It's easier than to take a look at the wiki page.
     
  11. Offline

    mypetsquirrel

    While that I'm sure is possible, it's much easier (through testing) to simply add something that is NOT a number to the 2nd line (periods, letters, even spaces). Then it doesn't realize it's a shop sign, and it places fine. Just thought I'd bring it to the attention of the devs.
     
  12. Offline

    Acrobot

    @mypetsquirrel
    Oh :/
    Sorry for that - sometimes the formatter goes crazy.
    Usually placing something like '-' on the first line as the first character does the trick.
    You can also just change the "S" in the "Status" to be lowercase, that should be also possible.

    Your sign format is almost exactly like ChestShop's :p
     
  13. Offline

    Ardawen

    Sorry for the delay, It does work we thank you diamond block cakes for you .
    Our server basically evolves on your wounder full plugin and we did not want to drop it.
    Now we can breath more easy again.
     
    Acrobot likes this.
  14. Offline

    Tubbytoad42

    It seems that this plugin has a conflict with Minecart Mania-only ops can create shops regardless of permissions. Error in-game: "[Shop] You don't have permissions to access this chest". When MM is removed this problem does not occur. Additionally, when MMChestControl and MMSignControls are removed the problem still does occur, meaning that the issue is with a different plugin in the suite or the MMCore. Is there any way to fix this problem?
     
  15. Offline

    Nickexp

    AWSOME! but i have a suggestion,can you make it so you can earn money from adminshops?maby you have a log that wrights where each one is and who made it?
     
  16. Offline

    Acrobot

    @Tubbytoad42
    Yeah, I've heard the issue. I'll be investigating today or tomorrow.

    @Nickexp
    You can do it already. Just set up "SERVER_ECONOMY_ACCOUNT" in config :)
     
  17. @Acrobot
    Hah, very strange... No questions, no problems!
     
  18. Offline

    Acrobot

    @VADemon
    :p
    It'll start, believe me.
     
  19. Offline

    Nickexp

    how do you do that? do you just make a account with that name? and what config do i do it in?
     
  20. Offline

    Acrobot

    @Nickexp
    If you have iConomy
    /money create nameOfTheAccount
    And you put it in the ChestShop config, obviously =D
    (plugins/ChestShop/config.yml)
     
  21. Offline

    Nickexp

    oh,but what account do i do?my one?
     
  22. Offline

    Acrobot

    @Nickexp
    No, as I said - you might want to create different account.
    In iConomy, you do that by
    /money create nameOfTheAccount
     
  23. Offline

    gameswereus

    @Acrobot To prevent a server from being flooded with shops from inactive users, can you delete them after X amount of days?
     
  24. Offline

    Acrobot

    @gameswereus
    Well - they aren't saved to any database in this version. The next version, which will be modular, will let you do things like that.
     
  25. Offline

    Ardawen

    Hellow mr @Acrobot

    Again we would like to thank you for the fix!
    A small problem has risen with it though , it isn't a big thing, but it annoys our players.
    So our chest auto LWC (for the noobs that do not get how to protect there chest) but now sinds the fix people have to unlwc (/cremove) the chest, before a player can make a shop even when they own the lwc protection.

    So even when the lwc is on the players name making a shop gives a " no permissions to access this chest" error

    There is no real hurry, but it does annoys our players
     
  26. Hello,
    I've got a problem with the chesthops. I am using a dev version of craftbukkit (long version with git...) for MC 1.8.1 with ChestShop 3.2.4.
    The admins can not create chestshops (not admin shops or normal ones), despite they have all permissions to do that. (iConomyChestShop.admin and iConomyChestShop.shop.create)

    I hope somebody can help.
    Philipp
     
  27. ... Look at the permissions:
    Quote:
    Permissions:

    ChestShop.shop.create - lets you create shop
    ChestShop.shop.buy - lets you buy from shops
    ChestShop.shop.sell - lets you sell to shops

    @Ardawen
    It's not 100% CS's problem (I think) but it seems so.
    Because if someone protect his chest with LWC (without a shop) and then destroy the block the lock will automatically removed. With shops it should too but it doesn't. Anyway let's wait for Acrobot's answer maybe he'll ask Hidendra (dev of LWC) because it could be an API bug.
     
  28. Offline

    Ardawen

    @VADemon maybe true but I got to him first because it happened since the fix he made for us
     
  29. Offline

    Acrobot

  30. Offline

    mypetsquirrel

    I have a question about this, but it may be more a iConomy thing. I have my economy set up, and I can set up an account. I can pay that account, I can give to that account, I can take away from that account. But, I have yet to find a way to withdraw from that account to my money so I can spend it. Am I missing something here?
     
  31. Offline

    Jonchun

    Would it be possible to integrate chest protection with this? (Not as a separate plugin).

    e.g. all chest shops are protected from access and can only be accessed through the sign (except the owner of course)

    Sorry if this is already a feature. I just can't seem to figure out LWC right now... Permission nodes are going screwy and my head hurts from a long day at school -___-
     

Share This Page