[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

    DerekZil

    I cannot buy from a sign with:
    Admin Shop​
    4​
    BUY 1.00​
    Grass​
     
  3. Offline

    agent7070

    I love This plugin but how do players get Money?
     
  4. Offline

    Link40k

    how do you check your money
     
  5. Offline

    Acrobot

    DerekZil
    It's not "BUY 1.00" but "B 1" (or B 1.00)

    FolisDHC
    Yeah, I know, unfortunately it's two words. I will try to fix it, though :)
     
  6. Offline

    nighteyes604

    Quick question - I created a lockpicking plugin and I'm trying to hook into yours and prevent chest shops from being picked. What's the best way to detect if a chest is a chest shop? Do you have a specific function and if not, how do you tell?

    Thanks for your help :)
     
  7. Offline

    DarkByte7

    I turned on to collect statistics and started getting this error.
    Code:
    21:44:58 [SEVERE] [ChestShop] You lack the necessary HTML files in your plugins/
    ChestShop/HTML folder!
     
  8. Offline

    whebzy

    When I create admin shops, my defaults can't buy from them!
    The sign is set up like so:
    Admin Shop​
    16​
    B 0​
    Cobblestone​

    CS version: 3.3.9
    CB version: 1.2.5-R1.0

    EDIT: I resolved the issue. I changed the "B 0" line to "B FREE"
    It seems that a value of 0 disables buying altogether.
     
    minnhee likes this.
  9. Offline

    mrwealthyhobo

    ChestShop's version is: 3.39
    CraftBukkit Version : git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    Economy Plugin : iConomy v6.0.8b
    Permission Plugins : I have None.
     
  10. Offline

    minnhee

    Edit: ChestShop v3.39, 1.2.5-R1.0 CraftBukkit server, iConomy 6.0 8b, Vault, no Permissions.
    I have the same problem as whebzy! I created a sign:
    • 1
    • B 5:5 S
    • 350
      Which turns into
    • immyongsoo​
    • 1​
    • B 5:5 S​
    • Cooked Fish​
    I've read my server log, and there's no problem with it (I fixed the spawn-radius thing on the bukkit.yml so there were no more problems. I wonder why ):
    I even deop'd myself to check if it was because I'm the admin. I even tried deoping another of my admin, made the person gamemode 0, but right clicking still didn't buy anything, nor left clicking. I looked at the config.yml and it's perfectly fine.
     
  11. Offline

    Acrobot

    nighteyes604
    You can create a new Default protection class, like:
    Code:
    Default protection = new com.Acrobot.ChestShop.Protection.Plugins.Default();
    if (protection.isProtected(yourChestBlock) && !protection.canAccess(player, yourChestShop)) {
        //The player can't open that chest
    } 
    
    Please forgive the messy ChestShop's code - I am rewriting it, but I don't have much time to do so :/


    minnhee
    Are you sure your economical plugin is working fine? There is a newer version available.

    mrwealthyhobo
    You need to post the FULL error too.
     
  12. Offline

    nighteyes604

    Acrobot

    I'm sure that will work fine - thank you for your quick response! I was originally using your findsign2 and findchest functions and if they were null assuming there was no shop, but it seems like they randomly don't find it. Thank you again for your help :)
     
  13. Offline

    mrwealthyhobo

    Alright Thanks For your Time.
     
  14. Offline

    minnhee

    Acrobot
    Yup, I'm sure. It worked for every other plugins like Citizens plugin, DailyBonus, etc.
     
  15. Offline

    Acrobot

    minnhee
    Are you sure you are using the shop correctly?
    You should click on the sign, not the chest.

    By "nothing", do you mean - no errors in console, no messages?
     
  16. Offline

    mrwealthyhobo


    I Got it I just needed the latest version of iconomey Thanks :D
     
  17. Offline

    mrwealthyhobo

    Awesome Plugin Everyone On The Server Loves It Diamonds To The modders Of this Great Plugin! [diamond] Thanks For Taking The Time To Help Me With The Problem I needed the latest Version Of IConomey Heh My Fault[tnt]
     
  18. Offline

    DarkShimy

  19. Offline

    Nenman

    I try to use this plugin http://forums.bukkit.org/threads/ec...ign-shop-for-economy-plugins-1-2-5-r1-0.4150/

    I put the sign and i cant just buy "You dont have enough money" but when i try to sell its dont work....

    "If you can both buy and sell, and your users can only buy, go to bukkit.yml and change spawn-radius to 0"

    When i go to bukkit.yml

    I change radius to 0
    But dont work ;(((

    Code:
    [COLOR=#888888][SIZE=3]# This is the main configuration file for Bukkit.
    # As you can see, there's actually not that much to configure without any plugins.
    # For a reference for any variable inside this file, check out the bukkit wiki at
    # http://wiki.bukkit.org/Bukkit.yml
    #
    # If you need help on this file, feel free to join us on irc or leave a message
    # on the forums asking for advice.
    #
    # IRC: #bukkit @ esper.net
    #    (If this means nothing to you, just go to http://webchat.esper.net/?channels=bukkit )
    # Forums: http://forums.bukkit.org/forums/bukkit-help.6/
    # Twitter: http://twitter.com/Craftbukkit
    # Bug tracker: http://leaky.bukkit.org/
     
     
    settings:
      allow-end: true
      warn-on-overload: true
      spawn-radius: 0
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
      use-exact-login-location: false
      plugin-profiling: false
      connection-throttle: 4000
    ticks-per:
      animal-spawns: 400
      monster-spawns: 1
    auto-updater:
      enabled: true
      on-broken:
      - warn-console
      - warn-ops
      on-update:
      - warn-console
      - warn-ops
      preferred-channel: rb
      host: dl.bukkit.org
      suggest-channels: true
    database:
      username: bukkit
      isolation: SERIALIZABLE
      driver: org.sqlite.JDBC
      password: walrus
      url: jdbc:sqlite:{DIR}{NAME}.db[/SIZE][/COLOR]
    
     
  20. Offline

    vitaxa

    I have some trouble with this plugin. Plugin ignore my perrmissionex. User cant create shop(havent perm. ChestShop.shop.create), but still can. How can i resolve this problem? I try to delete all plugins(only authdb, chestshop, iconomy, premissionsex stayed at the server)

    - CraftBukkit version 1.2.5-R1.-0
    - ChestShop v3.39 for CB 1.2.5-R1.0 Mar
    - iConomy
    - PermissionsEX
     
  21. Offline

    Acrobot

  22. Offline

    bida_boiii

    Everybody on My Friends server can not buy or sell anything at the moment and we do not know how to fix it!
     
  23. Offline

    vitaxa

    Acrobot

    How it can help me? I need that default group havent permission to creat shop.
    (if you're using PEX) add "-ChestShop.shop.create.*" for the default group (if other perm plugin) refer to the documentation
     
  24. Offline

    Nenman

    Acrobot

    When I try to buy server write "you dont have enough money" When i try to sell nothing.... just nothing,I dont get money just chest get item but i dont get money.And item left to me.

    CONSOLE:

    Code:
    22:08:20 [SEVERE] Could not pass event PlayerInteractEvent to ChestShop
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:459)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:176)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:534)
    at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at java.lang.String.replace(Unknown Source)
    at com.Acrobot.ChestShop.Shop.Shop.sell(Shop.java:175)
    at com.Acrobot.ChestShop.Shop.ShopManagement.sell(ShopManagement.java:39
    )
    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:81)
    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.ja
    va:301)
    ... 11 more
     
    
     
  25. Offline

    BooMarioBR

    Hi, i'm having a problem with wooden Planks
    i try to put in the chest and the sign, but dont work, say dont have any stock
    any help?
     
  26. Offline

    minnhee

    Acrobot
    I right and left clicked on the sign, nothing happened (I held the click for longer too, but nothing happened). And yes, nothing as in no errors.
     
  27. Give us more info or read the f.a.q
    You're almost right. You have to negate the permission node:
    -ChestShop.shop.create
    Remember: it's without .* at the end!!!

    Try to put the ID of the block on the sign. You can lookup the ID of a item u're holding wih this command: /iteminfo

    ps: kinda hard to answer with a smartphone :p
     
  28. Offline

    Acrobot

    Nenman
    Your language config is wrong - somehow, "YOU_SOLD_TO_SHOP" is null.


    VADemon
    Nope, PEX actually handles that wrongly.
    You must use
    -ChestShop.shop.create.*
    otherwise it won't work.

    BooMarioBR
    Wooden planks are called "wood" - that's the item's name. Also, the new planks have item value. Like VADemon said, do /iteminfo to find out the ID.

    minnhee
    Hmm, really weird.
    Does, for example, /iteminfo work?
     
  29. Offline

    Nenman

  30. Offline

    Acrobot

    Nenman
    Did you change anything in the "plugins/ChestShop/local.yml" file?

    If not, just delete it.
     
  31. Offline

    ethereal_panda

    Whenever my users attempt to purchase from a restricted shop, they get a "You don't have permission to do that!" error. This has worked in the past, but not since around version minecraft 1.1.

    Code:
    [restricted]
    Farmer
    ---
    Admin Shop
    64
    B 1:1 S
    Dirt
     
    ChestShop's version is: 3.39
    CraftBukkit version git-Bukkit-1.2.5-R1.0-b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)A
    [PermissionsEx] version [1.19.1]
    iConomy v6.0.10b
    
    Any idea what I might be doing wrong? Is this a supported configuration?
     

Share This Page