[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

    IkinesyKx
    Oh, I think I know the issue - I tried to access the database before the folder was created, like I said in reply to VADemon
     
  3. Offline

    IkinesyKx

  4. Offline

    Acrobot

    IkinesyKx
    It's not working if you're using the RELEASE VERSION. And yes. I know. For longer than this video has existed.
     
  5. Offline

    IkinesyKx

  6. Offline

    IkinesyKx

    I was wrong chestshop file is not created (when I install the new version. can you help me?
    the same tha error VADemon
     
  7. Offline

    Acrobot

    IkinesyKx
    Yes, I see. After the second boot, however, everything should be just fine.
     
  8. Offline

    TomberWolf

    Hi!

    I have an issue with ChestShop when I create an AdminShop and a user want to buy something, he gets a message

    "Money deposit to shop owner failed!"

    Using latest Craftbukkit, MC 1.4.7, latest PermissionsEX and Vault with Essentilas Economy and Gringotts.

    Thanks for any hint...

    Greetings
    Tom
     
  9. Offline

    Acrobot

    TomXPro
    This was added by Gringotts' author, that means that there is something wrong with Gringotts :)
    Possibly admin shop is set up wrong, or you've set server's economy account in the settings.
     
  10. Offline

    TomberWolf

    Hi Acrobot

    thanks für reply.
    Do you mean the economy account in ChestShop settings? Within Gringotts settings, I cannot set up something like this.
    I just changed the name of the server currency.
     
  11. Offline

    Acrobot

    TomXPro
    I think I know what's wrong. Simply with Gringotts, there is no way to create non-player account, that's why it's not working. I'll work on it, please submit it as a ticket on BukkitDev.
     
  12. Offline

    TomberWolf

    Thanks for your hard work!
    I'm going to open a ticket and take a look at your donate button ;-)
     
  13. Offline

    Acrobot

    TomXPro
    I've sent the fixed version to the BukkitDev, it should be approved soon.
     
  14. Offline

    shakeable_drip

    OK so wierdest thing I have ChestShop Vault Essentials and PermissionsEx
    Vault does hook ChestShop Essentials-Economy and PEX.
    I have given my default group ChestShop.shop.* They can create shops, sign will auto fill name and shop has been created prompt pops up but theres A: no protection for sign or chest B: left or right clicking the sign does nothing, no error comes up in consol and no you cant do that error. Im at a complete loss. I cant find any information on this, I even logged into curse just to post this. I think it might be some conflict with essentials maybe but I dont know how that shakes out. Please help and Thanks!

    PS After a year off Ive decided to remake a new server and I freaking loved chestshop back in the day but I used Iconomy instead. thanks so much for this plugin!

    Update: Ok after a few days of rootin around for a solution I DL ChestShop3-42.jar and works perfectly

    Update2: ok I have found that chestshop3-46 works with GroupManager and that it was PEX causing the conflict, but.... I cant make a admin shop its "protected by a magical spell" thats lwc. the admin shop sign is private for some reason and cant be changed. regular shops work just fine and are protected by lwc. and lastly LWC does not protect admin shop signs like it does regular shops.... grr

    Update 3: you have to capitalize the B for buy and the S for sell..... pex may not have been an issue
     
  15. Offline

    TomberWolf

    I'm looking forward to it!
    Thank you so much!
     
  16. shakeable_drip
    Become LWC admin: lwc.admin perm. node

    And I don't understand what exactly isn't working right now?
     
  17. Well this plugin is just perfect. I love it for my server's economy!
     
  18. Offline

    Acrobot

    shakeable_drip
    Just update to the latest version, I recommend the release preview ones!
     
  19. Offline

    GarfieldX

    Code:
    [SEVERE] Could not pass event PreShopCreationEvent to ChestShop v3.50 t0049
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
        at com.Acrobot.ChestShop.ChestShop.callEvent(ChestShop.java:328)
        at com.Acrobot.ChestShop.Listeners.Block.SignCreate.onSignChange(SignCreate.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
        at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:1377)
        at net.minecraft.server.v1_4_R1.Packet130UpdateSign.handle(SourceFile:46)
        at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
        at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
        at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
        at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
        at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
        at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 16
        at org.bukkit.DyeColor.getByWoolData(DyeColor.java:170)
        at org.bukkit.material.Wool.getColor(Wool.java:41)
        at com.Acrobot.Breeze.Utils.MaterialUtil$DataValue.name(MaterialUtil.java:411)
        at com.Acrobot.Breeze.Utils.MaterialUtil.getName(MaterialUtil.java:109)
        at com.Acrobot.Breeze.Utils.MaterialUtil.getName(MaterialUtil.java:98)
        at com.Acrobot.ChestShop.Listeners.PreShopCreation.ItemChecker.onPreShopCreation(ItemChecker.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
        ... 24 more
     
  20. Offline

    Acrobot

    GarfieldX
    Hmm, could you tell me what did the sign look like?
     
  21. Offline

    GarfieldX

    Sorry, I can't tell.
    I'm only technical admin, not a gamer.
     
  22. Offline

    Acrobot

    GarfieldX
    I see. Unfortunately, that will be hard to tell without the sign information :/
     
  23. Offline

    Malaras

    Ok, I haven't messed with this stuff for atleast 6 mo. But i seem to be haveing a problem.

    [SHOP] You can't create this type of shop
    sign
    Adminshop
    32
    B 3:5 S
    4
    Config, I know could be alot of issues with lwc and towny and all that so hopefully some thing can be done.


    Code:
    PREFERRED_ECONOMY_PLUGIN: "BOSEconomy"
    #WHEN NOT USING VAULT. Preferred (if not found, uses any other) economy plugin (iConomy, BOSEconomy, Essentials).
     
    SHOP_INTERACTION_INTERVAL: 100
    #(In 1/1000th of a second) How often can a player use the shop sign?
    IGNORE_CREATIVE_MODE: true
    #Do you want to allow using shops to people in creative mode?
    REVERSE_BUTTONS: false
    #If true, people will buy with left-click and sell with right-click.
    SHIFT_SELLS_EVERYTHING: false
    #If true, people will be able to sell/buy everything available of the same type.
    ALLOW_SIGN_CHEST_OPEN: true
    #Can shop's chest be opened by owner with right-clicking a shop's sign?
    ALLOW_LEFT_CLICK_DESTROYING: true
    #If true, if you left-click your own shop sign you won't open chest's inventory, but instead you will start destroying the sign.
     
    REMOVE_EMPTY_SHOPS: false
    #If true, if the shop is empty, the sign is destroyed and put into the chest, so the shop isn't usable anymore.
    REMOVE_EMPTY_CHESTS: false
    #If true, if the REMOVE_EMPTY_SHOPS option is turned on, the chest is also destroyed.
     
    ADMIN_SHOP_NAME: "Adminshop"
    #First line of your Admin Shop's sign should look like this
    SERVER_ECONOMY_ACCOUNT: "Adminshop"
    #The economy account which Admin Shops should use and to which all taxes will go
    TAX_AMOUNT: 2
    #Percent of the price that should go to the server's account. (100 = 100 percent)
    SERVER_TAX_AMOUNT: 3
    #Percent of the price that should go to the server's account when buying from an Admin Shop
     
    SHOP_CREATION_PRICE: 100
    #Amount of money player must pay to create a shop
    SHOP_REFUND_PRICE: 75
    #How much money do you get back when destroying a sign?
     
    BLOCK_SHOPS_WITH_SELL_PRICE_HIGHER_THAN_BUY_PRICE: true
    #Should we block shops that sell things for more than they buy? (This prevents newbies from creating shops that would be exploited)
     
    ALLOW_MULTIPLE_SHOPS_AT_ONE_BLOCK: false
    #Do you want to allow other players to build a shop on a block where there's one already?
    ALLOW_PARTIAL_TRANSACTIONS: true
    #Can shops be used even when the seller doesn't have enough items? (The price will be scaled adequatly to the item amount)
     
    SHOW_MESSAGE_OUT_OF_STOCK: true
    #Do you want to show "Out of stock" messages?
    SHOW_TRANSACTION_INFORMATION_CLIENT: true
    #Do you want to show "You bought/sold... " messages?
    SHOW_TRANSACTION_INFORMATION_OWNER: true
    #Do you want to show "Somebody bought/sold... " messages?
     
    LOG_TO_FILE: true
    #If true, plugin will log transactions in its own file
    LOG_TO_CONSOLE: true
    #Do you want ChestShop's messages to show up in console?
    LOG_TO_DATABASE: false
    #If true, plugin will log transactions in EBean database
    RECORD_TIME_TO_LIVE: 600
    #How long should transaction information be stored in the database (in seconds, -1 means forever)?
     
    USE_BUILT_IN_PROTECTION: true
    #Do you want to use built-in protection against chest destruction?
    STICK_SIGNS_TO_CHESTS: false
    #Do you want to have shop signs "stick" to chests?
    TURN_OFF_DEFAULT_PROTECTION_WHEN_PROTECTED_EXTERNALLY: false
    #EXPERIMENTAL: Do you want to turn off the default protection when another plugin is protecting the block? (Will leave the chest visually open - CraftBukkit bug!)
    TURN_OFF_SIGN_PROTECTION: false
    #Do you want to turn off the default sign protection? Warning! Other players will be able to destroy other people's shops!
    PROTECT_CHEST_WITH_LWC: true
    #Do you want to protect shop chests with LWC?
    PROTECT_SIGN_WITH_LWC: true
    #Do you want to protect shop signs with LWC?
     
    GENERATE_STATISTICS_PAGE: false
    #If true, plugin will generate shop statistics webpage.
    STATISTICS_PAGE_PATH: "plugins/ChestShop/website.html"
    #Where should your generated website be saved?
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    #How often should the website be generated?
     
    TOWNY_INTEGRATION: true
    #Do you want to only let people build inside shop plots?
    TOWNY_SHOPS_FOR_OWNERS_ONLY: true
    #If true, only plot owners are able to build inside a shop plot. If false, every town's resident is able to build there.
     
    WORLDGUARD_INTEGRATION: false
    #Do you want to only let people build inside regions?
    WORLDGUARD_USE_FLAG: true
    #Do you want to only let poeple build inside region flagged by doing /region regionName flag chestshop allow?
    WORLDGUARD_USE_PROTECTION: false
    #Do you want ChestShop to respect WorldGuard's chest protection?
     
    HEROES_EXP: 25
    #How much Heroes exp should people get for creating a ChestShop?
     
    STACK_TO_64: false
    #Do you want to stack all items up to 64 item stacks?
    TURN_OFF_CRAFTBUKKIT_TELEPORTATION_BUGFIX: false
    #Do you want to turn off the CraftBukkit teleportation bugfix, which closes the inventory screen on teleport? (If you're using xAuth, you might want to turn it on) - only applies to CraftBukkit versions lower than 1.4.7-R1.1
    anything else you need let me know please
    EDIT: Pex, Bukkit both current versions
    Code:
    2013-03-06 11:19:57 [INFO] [ChestShop] Enabling ChestShop v3.50 t0049
    2013-03-06 11:19:57 [INFO] [ChestShop] LWC version 4.3.1 (b820-git-MANUAL) (February 02, 2013) loaded.
    2013-03-06 11:19:57 [INFO] [ChestShop] Towny version 0.82.1.0 loaded.
    2013-03-06 11:19:57 [INFO] [ChestShop] Vault loaded - using BOSEconomy
    2013-03-06 11:19:57 [INFO] [TownyChat] Enabling TownyChat v0.36
    
     
  24. Offline

    bhallowitz

    seems you haven't given yourself:

    ChestShop.admin - (granted to OPs) - lets you create Admin Shops and create/destroy other people's shops
     
  25. Offline

    Malaras

    Thanks for reply.
    yes, have checked it multipul times used "" and with out. Still don't work

    EDIT: Thanks for reply's and read's figure out problem i be-leave.
    Was reading the Buy / sell in reverse wasn't allowing me to cheat by buy low selling high on same sign. Atleast what i think it was change few other things also.
     
  26. Is there any way to restrict the amount of materials that you can buy? For example, I need 12 diamonds, but I don't want people cramming the chest full of stacks of diamonds and sucking my wallet dry. What do I do?

    I know that if you want to limit it to X stacks of a certain item, you can just fill all but X slots up with pieces of cobble, but what if you don't want a whole stack of an item?
     
  27. Offline

    Acrobot

  28. Offline

    Kaptinobvius

    With the addition of trapped chests in 1.5, I was wondering if you were planning on allowing them to be made into chestshops as well? Since they can be placed side by side with normal chests, this would double space available in small player shops.
     
  29. Offline

    Acrobot

  30. Offline

    Kaptinobvius

    Acrobot
    That's wonderful news. Thank you for the quick response. I look forward to it. :D
     
  31. Offline

    Acrobot

    Kaptinobvius
    1.5 version is out, will be hopefully approved soon.
     

Share This Page