[ECON] ChestShop 3.50 (iConomyChestShop) - Chest&sign shop for economy plugins [1.5.1]

Discussion in 'Plugin Releases' started by Acrobot, Feb 12, 2011.

     
  1. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)


    An easy way to create shops - no protection plugin needed!
    You don't need to be on-line to earn money anymore!

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

    Bulgarian - Muff1Ncho
    Czech - LordPgsa
    Chinese (Simplified) - tab415263
    Danish - blasterweb
    Deutsch (newest) - xGhOsTkiLLeRx
    Dutch - marinus15
    French- Chbrams
    Hungarian - Anachen
    Italian - Massimo1993
    Korean - Zwing87
    Norwegian - _AlexN_ and TheUnkownGamer
    Polish - Holls1
    Portugese (Brasil) - FelipeMarques14
    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]

    This post has been edited 212 times. It was last edited by Acrobot May 23, 2013 at 7:00 PM.
  2.  
  3. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @rtcabooservb
    Ok, it's out there - it's still being worked on, though :)
  4. Offline

    strontkever

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    neat,

    love your plugin.. dont ever drop it :)
  5. Offline

    kamil7430pl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    runned, just tried, is better.

    and you have removed all the commands such as: /money?

    I write because i have no money (even if you're an admin) :(

    edit: Acrobot Polish come from?

    This post has been edited 2 times. It was last edited by kamil7430pl Sep 10, 2012.
  6. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @kamil7430pl
    Tak, jestem Polakiem :p

    Nie, nie usunąłem żadnych komend - ChestShop nie ma żadnych komend typu /money - to jest iConomy.
    No, I did not remove any command - ChestShop doesn't have any commands like /money - it's iConomy's.

    @strontkever
    Haha, thanks - I'll try :) BTW, the new version is available to download.
  7. Offline

    kamil7430pl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A to w którym pluginie ChestShop można wpisywać komendy /money?

    A to w takim razie trzeba jakieś pluginy na zarabianie sciągać? (podasz jakiś bo nie moge znaleźć takiego gdzie będą z mobków wypadały pieniądze (tzn. znalazłem ale nie za bardzo działa :( ))

    dzięki :)

    This post has been edited 6 times. It was last edited by kamil7430pl Sep 10, 2012.
  8. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @kamil7430pl
    W żadnym ChestShopie - jak mówiłem, potrzebujesz iConomy lub BOSEconomy. A żeby z mobków wypadały pieniądze, potrzebujesz jeszcze innego pluginu, ale wybacz, nie znam się na nich.
  9. Offline

    Ardawen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry @Acrobot got a question did you got a chance to look at the question I asked at #8065 ?

    This post has been edited 1 time. It was last edited by Ardawen Sep 11, 2012.
  10. Offline

    rtcabooservb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Acrobot Latest Chestshop 3.5 0006 build, decimal value does not work in admin shop. For example, B 12.25

    This post has been edited 1 time. It was last edited by rtcabooservb Sep 11, 2012.
  11. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Ardawen
    You are running ChestShop 3.4

    The latest one is 3.50 test version. I believe it works there.

    @rtcabooservb
    Thanks for the report :) Regexp is hard :p
  12. Offline

    xduckxx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Acrobot for some reason no one can buy from player shops but they can buy/sell to the admin shop? it says " you arent allowed to buy here or something like that. spawn radius is 0. I dont have any permissions plugin or anything.. help?
    Running latest chestshop and craftbukkit.
  13. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @xduckxx
    You aren't allowed to buy here = the shop doesn't allow selling.
    It's probably an user error, the third line should look like this:

    B 5
    S 5
    B 5:5 S
    etc.
  14. Offline

    xduckxx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Acrobot now it;s saying "You dont have permission to do that!" or something. What are the defualt permission and how can I change them without a permissions plugin? Im using LWC on my server to and it automatically locks signs. could that be the issue?

    also a suggestion:
    /stock - check your stock on different store items

    couldn't you just iterate through all the player's shops, placing them up in the chat? It would be really helpful.

    This post has been edited 3 times. It was last edited by xduckxx Sep 11, 2012.
  15. Offline

    denise

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I add permissions on permissionsex
    to member
    - ChestShop.shop.buy
    - ChestShop.shop.sell
    to vip
    - ChestShop.shop.create
    - ChestShop.shop.buy
    - ChestShop.shop.sell

    but everyone can create shops. why?

    This post has been edited 1 time. It was last edited by resba Sep 11, 2012.
  16. Offline

    rtcabooservb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Any ETA on a fix or next dev build? :D

    This post has been edited 1 time. It was last edited by rtcabooservb Sep 12, 2012.
  17. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  18. Offline

    MineNeMeMA

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I really need help!!! aaargh! i have seen this bug so many times and still no answer!
    I can create a admin shop it says admin shop created.
    so i try to buy from it or sell to it and nothing happends.
    no message pops up or anything.
    there is no error log im using these plugins: vault, iconomy, essentials all four protect etc. , groupmanager, multiverse core, multiverse portals, multiverse inventory, lwc, worldguard, survival games and war.

    This post has been edited 1 time. It was last edited by TnT Sep 13, 2012.
  19. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @MineNeMeMA
    - are you in creative mode? (If so, there is a setting in config.yml that blocks that)
    - have you got a block in your hand? (MC 1.3 doesn't send packets when a block in hand can't be placed)
  20. Offline

    MineNeMeMA

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No i don't XD i installed the test version works fine :)
  21. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  22. Offline

    MineNeMeMA

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    one more question tho when i create a admin shop and try to sell to it it says the shop owner doesn't have enough money. I have no idea how to fix it since i have like 20000000 dollar :p
  23. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @MineNeMeMA
    Did you change the SERVER_ECONOMY_ACCOUNT in the config?
  24. Offline

    MineNeMeMA

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No i did not i just installed it and let it run to see if it worked and it gave me that message
  25. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  26. Offline

    rtcabooservb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Chestshop version 3.5 v0009, Admin shop is spelled "ADmin".

    "bought 64 PAPER for 4.30 from ADmin Shop"
  27. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @rtcabooservb
    Wow, that's weird.
    However, this probably isn't a ChestShop bug. It's just the name that was found on the sign.

    Code:
    String ownerName = uName.getName(sign.getLine(NAME_LINE));
    OfflinePlayer owner = Bukkit.getOfflinePlayer(ownerName);
    
  28. Offline

    rtcabooservb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm, odd, because all admin shop signs are named "Admin Shop" and it worked perfectly before v0009. Perhaps it is reporting it wrong through the console?
  29. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @rtcabooservb
    o.0

    Code:
    String owner = event.getOwner().getName();
    
    And event.getOwner() == Bukkit.getOfflinePlayer(ownerName).

    So yeah, there is really small possibility of it being an error within ChestShop.

    EDIT: Could you PM me your server ip?

    This post has been edited 1 time. It was last edited by Acrobot Sep 15, 2012.
  30. Offline

    k2pp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    There is a big bug, if my nickname is "Steve" and I place a shop selling or buying, another guy with the same nick like me but with some another character, for example: "Steve1". If im offline with "Steve" and "Steve1" is logged in, all money from my shops goes for that guy "Steve1" instead of me. You can check it yourself, I guess plugin would check that:
    shopname(Steve)[EQUAL]nickname (Steve) ?
    ... instead of that, I think plugin act like that:
    nickname(Steve)[HAVE INSIDE]shopname(Steve) ?

    Plz fix that. Thanks.

    PD: I checked with all version since 3.38 until 3.50, and all versions have that bug. Im using craftbukkit 1.3.1 R2.0 and the economy plugin is EssentialsEco. The permission plugin is GroupManager.

    This post has been edited 2 times. It was last edited by Plague Sep 15, 2012.
  31. Offline

    Acrobot

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @k2pp
    Impossible, unless your economy plugin does such things.
  32. Offline

    k2pp

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi again Acrobot, I've tried all possible methods. I updated the craftbukkit and Essentials till last version. Updated ur plugin and again the same error.
    I tried with iEconomy and the same error, with and without vault.
    I tried updating all plugins, or only using your plugin + iEconomy/EssentialsECO.
    And bug still ON

    Thx for answer.

    This post has been edited 1 time. It was last edited by Butkicker12 Sep 16, 2012.

Share This Page