[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

    Vyrus

    Hey, i have a Problem.

    If our Chest is full, the Players cant sell their Items. Is there any option that the Player cann Buy limited Items, but the Players should sell unlimited, whenever the chest si full.
     
  3. Offline

    [F|H]Heinz

    wish for next release:

    pay per button (for dispenser use)
     
  4. Offline

    kornichen

    Please answer me.

    It´s a problem, please!!!
     
  5. Offline

    tobbie

    Hi, i got a problem with my iconomychestshop 2.75 plugin. i installed it on my server and me and my moderator are the only people who can create and use them on my server. Other players are not allowed for some reason. When they want to create a shop they get the message: You cant create that kind of shop.. I put all the nodes in my permissionfile like this:
    permissions:
    - 'iconomy.access'
    - 'iconomy.rank'
    - 'iconomy.payment'
    - 'iconomy.list'
    - 'iconomychestshop.shop.create'
    - 'iconomychestshop.shop.buy'
    - 'iconomychestshop.shop.sell'
    - 'iconomychestshop.command.iteminfo'
    - 'iconomychestshop.admin'
    - 'iconomychestshop.shop.create.<id>'
    - 'iconomychestshop.shop.exclude.<id>'

    What is wrong? I want that everyone on my server can create those shops.. Please help
     
  6. Offline

    bluemoondevil

    I am using OddItem but I cannot seem to get iConomyChestShop to understand different wool colors. I have odditem set to use Brown_Wool as an alias for brown wool, the chestshop plugin won't read it. Any ideas on what I am doing wrong? I'm using the latest RB of bukkit and the latest release of odditem with the latest nonbeta release of chestshop.
     
  7. Offline

    Acrobot

    @tobbie
    It's case-SeNsItIvE
    That means you need to type in
    iConomyChestShop
    and NOT
    iconomychestshop
    :)

    @facelifter77
    For the error -
    delete plugins/iConomyChestShop/iConomyChestShop.db

    For the "shop owner"..., go to plugins/iConomyChestShop/config.yml
    and change
    "serverAccountName" to "" (double quotation marks)

    @Tagz
    Not yet, but it should be in BETA 10.

    @Moparx
    @KrazyBonez
    This is somehow weird, try ChestShop beta (remember about Permission nodes changes!)

    @jinrey
    Players should SNEAK (crouch - press shift button :)) to be able to destroy their shops.

    @Seth Bollenbecker
    In ChestShop beta, you can create shops restricted to some groups.
    Just make a sign that says:
    1. [restricted]
    2,3,4. names of groups able to buy from this shop

    For example:

    [restricted]
    Discount50%
    VIP

    @ScottSpittle
    No need to format the database. It's just for transaction saving (to generate HTML page) and it's included in CraftBukkit.

    @kornichen
    Something wrong with either:
    - your bukkit.yml file
    - your CraftBukkit download
    @Vyrus
    Hmm... Not really, but you can create something like that:
    - one shop that only SELLS items
    - one ADMIN shop that only BUYS items

    @thehutch
    All Permission nodes for ChestShop 3 -
    Code:
    SHOP_CREATION("ChestShop.shop.create"),
        EXCLUDE_ITEM("ChestShop.shop.exclude"),
        BUY("ChestShop.shop.buy"),
        SELL("ChestShop.shop.sell"),
        ADMIN("ChestShop.admin"),
        MOD("ChestShop.mod");
    
    Mod - can view chests of other people, but cannot create admin shop.
    As you can see, ChestShop.shop.* contains
    - create
    - buy
    - sell
    :)
    (There is no permission node for /iteminfo)


    @bluemoondevil
    Hmm... OddItem seems case-sensitive at the moment, so be sure that you're typing everything case-sensitive.
     
  8. Offline

    KrazyBonez

    I actually fixed the issue by setting LWC to auto lock any chest placed, then disabling the auto protect from your plugin on signs and chests. So ill hold off on updating to a beta version, untill its stable. :)
     
  9. Offline

    Moparx

    Switching to ChestShop beta fixed the issue for me :)
     
  10. Offline

    Tagz

    I've got the setting turned on to enable the website page, I'm using the Beta 3 newest version.

    Curious why it's not creating the website.html file that is says it should in the chestshop folder.
    And if I can get it fixed to show that file, what the url would be used to view it. Thx!
     
  11. Offline

    pomo4ka

    Hi, please correct the error.
    Code:
    [SEVERE] Could not pass event SIGN_CHANGE to iConomyChestShop
    java.lang.NoSuchMethodError: com.griefcraft.sql.PhysDB.registerProtection(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V
    	at com.Acrobot.iConomyChestShop.ProtectionManager.protectBlock(ProtectionManager.java:65)
    	at com.Acrobot.iConomyChestShop.SignManager.onSignChange(SignManager.java:169)
    	at org.bukkit.plugin.java.JavaPluginLoader$32.execute(JavaPluginLoader.java:462)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:969)
    	at net.minecraft.server.Packet130UpdateSign.a(SourceFile:41)
    	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  12. Offline

    ScottSpittle

    Is there a way to have a chest permanantly hold a material and not have to be refilled
     
  13. Offline

    Acrobot

    @Tagz
    Is your database turned on? :)
    You can set the url in
    "STATISTICS_PAGE_PATH"
    it's usually in plugins/ChestShop/website.html

    To turn it on, you need:
    - LOG_TO_DATABASE: true
    - GENERATE_STATISTICS_PAGE: true

    @Moparx
    :)

    @KrazyBonez
    Okay, sure :)
    But you'll like what will be in BETA 10 :)
    If you don't use database, you will experience nice performance boost :)

    @pomo4ka
    I'd recommend for you to use ChestShop beta - as Moparx said, it doesn't have that bug anymore :)

    @ScottSpittle
    Hmm...
    Admin Shop doesn't even NEED to use chest. Just type in
    "Admin Shop"
    on the first line of the sign (changeable in config file), and it will sell infinite items.
     
  14. Offline

    pomo4ka

    Okay, thank you.:) If the beta version is better, why do not you make it stable?
     
  15. Offline

    Acrobot

    @pomo4ka
    It doesn't have 1 thing I want in it yet -
    support for long people names.

    The stable version will probably be ChestShop (not beta, but if it was beta) 10, 11, 12 :)
     
    pomo4ka likes this.
  16. Offline

    RyanTheLeach

    Any way to protect shops from pistons?
     
  17. Offline

    Acrobot

    @RyanTheLeach
    Hmm... LWC, maybe?
    Afaik, there were no piston events. It has probably changed in B1000, but I'm not quite sure.

    EDIT: Signs and chests are NOT movable by pistons, am I right?
     
  18. Offline

    Proxus

    Hi Acrobat,

    With 117 pages to loop read through, felt just easier to ask here, and risk re-asking the same thing, sorry!

    Is it possible to make the Admin Shops sellable to? So that players can make money by selling their blocks to the server (presumably with a config switch for those who don't want this feature enabled).

    I couldn't see anything in the config, and clicking the sign to sell doesn't do anything.

    Thanks for the awesome mod!

    ~Proxus
     
  19. Offline

    Acrobot

    @Proxus
    "Clicking the sign to sell doesn't do anything"
    It's spawn protection :)

    Go to bukkit.yml and change spawn-radius to 0.

    And thanks :)
     
  20. Offline

    Proxus

    @Acrobat

    Doesn't look like we have a bukkit.yml, should this be generated by your plugin, or bukkit? Using MulitPlay, which has it's own plugin control panel and is a bit finicky sometimes!
     
  21. Offline

    Acrobot

    @Proxus
    This is generated by bukkit...
    Could you PM me with your TeamViewer details?

    EDIT: If you don't want to use TeamViewer, the MultiPlay panel allows to change the configuration, right? If so, just choose bukkit.yml from the list of editable files :)
     
  22. Offline

    Bisa

    A chest holds 27(slots)*64 Diamonds, what if I only want to buy 5 diamonds?

    [empty]
    5
    0 : 60
    Diamond

    Provided I have enough money on my account this would allow anyone with loads of diamonds to empty my account right? (by selling me stacks of 5 diamonds until the chest is full)

    Can I limit the total amount of diamonds that Id like to buy somehow?
     
  23. Offline

    Acrobot

    @Bisa
    Not yet, this would be tricky.
    Sadly I can't write anything to block (or can I? :3)
    I'll try with metadata and unofficial functions to make some block storage :)

    EDIT: I have an idea! :p
     
  24. Offline

    Jambokid

    What's the code for selling coloured wool ?
     
  25. Offline

    Acrobot

    @Jambokid
    In all versions:

    ID:value - for example 35:5
    Name:value - for example WOOL:5

    In ChestShop 3, you can also do:
    RED WOOL
    REDWOOD LOG
    etc :)

    (Case doesn't matter)
     
  26. Offline

    pomo4ka

    @Acrobot
    If you have documentation on setting "iConomyChestShop's 3.0"?
     
  27. Offline

    Valgor

  28. Offline

    phrstbrn

    I had a request from a player to allow editing of your own shop by Right-Clicking the sign instead of getting the "Cannot buy/sell to your own shop" message.
     
  29. Offline

    Tagz

    Hey Acrobat, thanks for the response, turned on log to database and the html file created itself.
    Just trying to figure out what the url would look like to get to it?
     
  30. Offline

    Acrobot

    @Valgor
    Oh wow, sorry, I didn't see that.
    Well, your permission say "ChestShop", but you are using iConomyChestShop.

    Also, you forgot... "shop" inside permission :)
    It says
    "iConomyChestShop.buy"
    and it SHOULD BE
    "iConomyChestShop.shop.buy"

    Well, fixed this for you:
    http://pastebin.com/bfSQeZch

    @phrstbrn
    This is in ChestShop 3, if you click your own shop, you will access the shop chest's contents :)

    @pomo4ka
    Not yet, and very, very important one:
    it's ChestShop 3, not iConomyChestShop 3.
    It's very important, as permission nodes and folder changed.
    Also, this may sound important:
    ChestShop 3 BETA 10 (or final version, if it's not BETA anymore) supports 16-character player names!
     
  31. Offline

    Acrobot

Share This Page