[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

    MineNeMeMA
    I see, that's a bug. I'm fixing it.
     
  3. Offline

    rtcabooservb

    Chestshop version 3.5 v0009, Admin shop is spelled "ADmin".

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

    Acrobot

    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);
    
     
  5. Offline

    rtcabooservb

    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?
     
  6. Offline

    Acrobot

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

    k2pp

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

    Acrobot

    k2pp
    Impossible, unless your economy plugin does such things.
     
  9. Offline

    k2pp

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

    Acrobot

    k2pp
    o.0
    Could you PM me your server's IP?

    Also, please include the EXACT player names :p
     
  11. Offline

    MrStealthDog

    Im not sure if this is where to post help request but I dont know where to go. When I place a shop sign it says Chest shop created but when you right click the sign nothing happens. No message or server error. Please help.
     
  12. Offline

    Acrobot

    MrStealthDog
    Read the main post please.

    If something's not working
    If you can both buy and sell, and your users can only buy, go to bukkit.yml and change spawn-radius to 0. 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?
     
  13. Offline

    zanderzone

    hey everything works but buying things and selling things. server is 1.3.2 and using BOSEconomy.
    no permissions but op cant buy or sell either
     
  14. Offline

    Acrobot

    zanderzone
    Unfortunately, my crystal ball broke, so I cannot tell what do you mean by "can't buy or sell" - do you get any messages in the chat/console? Are you in creative mode?
     
  15. Offline

    zanderzone

    yes i was in creative. thank you. i love this plugin. you did a fantastic job. thank you again.
     
  16. Offline

    Acrobot

  17. Offline

    skiracerdude

    ANy known conflicts in 3.50 Test version? ( I can figure it out myself, but why waste the time if you already know :p)

    ChestShop version: 3.50
    CB: 1.3.1-R2.o
    Economy: iConomy
    Perms; PEX

    Other info: List of server plugins: [​IMG]

    getting this error:

    Code:
    2012-09-20 19:26:27 [INFO] [ChestShop] Enabling ChestShop v3.50t0013
    2012-09-20 19:26:27 [INFO] [ChestShop] Deadbolt version 2.2 loaded.
    2012-09-20 19:26:27 [SEVERE] Error occurred while enabling ChestShop v3.50t0013 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/palmergames/bukkit/towny/exceptions/NotRegisteredException
        at com.Acrobot.ChestShop.Dependencies.initializePlugin(Dependencies.java:89)
        at com.Acrobot.ChestShop.Dependencies.load(Dependencies.java:36)
        at com.Acrobot.ChestShop.ChestShop.onEnable(ChestShop.java:75)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.ClassNotFoundException: com.palmergames.bukkit.towny.exceptions.NotRegisteredException
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
    
     
  18. Offline

    PCGeek971

    Use the id number for an iron ingot (265)
     
  19. Offline

    midnightfang22

    I can't seem to get the taxes working. It most likely has to do with the server economy account (I am guessing). Can someone tell me how to make the taxes work xD?
     
  20. Offline

    erdrickk

  21. Offline

    Acrobot

    skiracerdude
    Seems like Towny just updated their build, I'd have to re-compile with their new build.

    erdrickk
    %amount is removed from all messages regarding items, because ChestShop's core now supports multi-item transactions.
     
  22. Offline

    skiracerdude

    Ok! Please inform us when you have done so!
    Thanks!
     
  23. Offline

    MarioMan626

    When I try to put up cocoa beans, it doesn't work. Is there a special way to do cocoa beans or something?
     
  24. Offline

    Uniclaw

    Adminshops not works...
     
  25. Offline

    Acrobot

    Uniclaw
    MarioMan626

    That's the same as saying "my car not works" but not telling me ANY information about the car. My crystal ball broke, so I unfortunately have to ask you for what you mean by that.
     
  26. Offline

    Uniclaw

    Okay, i have try to make a adminshop,

    [adminShop] (i've changed this in the config)
    a number
    B a number:a number S
    a number

    But nothing happens - no error, no message, :/
     
  27. Offline

    Acrobot

    Uniclaw
    I see what you mean.

    Unfortunately, in my sign checking algorithm, I am dismissing signs that start with a special character, so that the other plugins' signs are not recognised, for example:

    ChestShop won't detect "[Gate]" sign, but it will recognise "Gate" sign.

    Unfortunately, there are some downsides to that, such as the one you've shown - I can't really do anything about it, sorry! Just change it to something without a special character in front :p
     
  28. Offline

    Uniclaw

    Yay, its works :D !
     
  29. Offline

    Chaosgod_Espér

    If i create a signs.. how can i BUY from it?

    i create a chest, add a supplySign sign to it, add the shop sign - rightclick on the ready system - just the chest opens, but nothing is bought.

    Other Players can do..
    Any way o buy from own created shops?

    And sometimes it happens, that it says "Shop out of stock".. But the chest is filled with the item via supplySign - and ALWAYS full. And the item ID is correct (checked with iteminfo)
    Bug?
     
  30. Offline

    Acrobot

    Chaosgod_Espér
    You can't buy from your own shop. Why would you want to do that? The chest opens because you can get the items just as easy as buying them?

    And if shop is out of stock, shop is really out of stock. There is no other way.
     
  31. Offline

    Chaosgod_Espér

    but the complete chest is filled up with the item. And wirh supply sign, it's always been refilled!

    I need to buy from my own shop, cause this is for a battle map in CS Style. Where you buy weapons and armor, lose it when dieing and need to rebuy on respawn.
     

Share This Page