[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

    65Wolf

    No, I tried adding another folder inside the ChestShop folder ( plugings/ChestShop/HTML) but that didn't do anything. Also, it does create a file webpage.html inside my ChestShop folder, but it has never placed any data inside it. Just an empty file! And it still spams my console every minute saying: You lack the necessary HTML files in your plugins/ChestShop/HTML folder!

    So again, wondering what these 'files' are that I am lacking???

    In my ChestShop folder, all I have are these files:
    • [li]HTML (folder- which I placed in there, but it remains empty)[/li]
      [li]ChestShop.db[/li]
      [li]config.yml[/li]
      [li]local.yml[/li]
      [li]webpage.html (empty file)[/li]

    Using ChestShop v3.37 and CB 2029 (for 1.2.3)
     
  3. Offline

    fatmarley

    Acrobot I feel like I am asking a completely moronic question, but I am just so curious.

    What and how do I use the HTML option, I dug about for documentation but didnt find any. (I mean beyond putting into the Chestshop folder and generating the HTML.)
     
  4. Offline

    Acrobot

    ryunnz2
    "Same"?
    What do you mean?

    65Wolf
    Did you place the sample HTML files in the HTML folder?
    http://dev.bukkit.org/server-mods/chestshop/files/23-sample-html-files/

    fatmarley
    Well, those are the sample HTML files to put in /ChestShop/HTML folder:
    http://dev.bukkit.org/server-mods/chestshop/files/23-sample-html-files/

    Documentation :p
    Well, the webpage is generated from the records in your database.
    You can put 3 files in the HTML folder:
    header.html
    row.html - repeated for every item
    footer.html


    In there, you can use:
    row.html
    %material - item name
    %total - items bought/sold
    %bought - items bought
    %sold - items sold
    %maxStackSize - max stack size
    %pricePerStack - average price per stack
    %pricePerItem - average price per one item
    footer.html
    %time - generation time
     
  5. Offline

    lolidk40

    the whole error is 11:47:03 [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:441)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:285)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7
    8)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NullPointerException
    at com.iCo6.system.Queried.useMiniDB(Queried.java:92)
    at com.iCo6.system.Queried.hasAccount(Queried.java:237)
    at com.iCo6.system.Accounts.exists(Accounts.java:10)
    at net.milkbowl.vault.economy.plugins.Economy_iConomy6.getBalance(Econom
    y_iConomy6.java:124)
    at net.milkbowl.vault.economy.plugins.Economy_iConomy6.has(Economy_iCono
    my6.java:165)
    at com.Acrobot.ChestShop.Economy.Vault.hasEnough(Vault.java:22)
    at com.Acrobot.ChestShop.Economy.Economy.hasEnough(Economy.java:48)
    at com.Acrobot.ChestShop.Shop.Shop.buy(Shop.java:57)
    at com.Acrobot.ChestShop.Shop.ShopManagement.buy(ShopManagement.java:24)

    at com.Acrobot.ChestShop.Listeners.playerInteract.onPlayerInteract(playe
    rInteract.java:80)
    at sun.reflect.GeneratedMethodAccessor73.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)
    ... 12 more
     
  6. Offline

    mine157947

    i found out the problem so nevermind. [diamond]
     
  7. Offline

    Acrobot

    lolidk40

    Code:
    at com.iCo6.system.Queried.useMiniDB(Queried.java:92)
    at com.iCo6.system.Queried.hasAccount(Queried.java:237)
    at com.iCo6.system.Accounts.exists(Accounts.java:10)
    
    iCo6 = iConomy 6.

    There seems to be a problem in iConomy when you use the miniDB (file database)
     
  8. Offline

    kenk705

    Ok so I download this and I try to make an Admin Shop. When I don't have the item is says I don't have the item to sell, but when I do have the item it says absolutly nothing. Buying doesn't work at all. SOMEBODY PLEASE HELP ME
     
  9. Offline

    Acrobot

    kenk705
    Are you sure you aren't in creative mode?
     
  10. Offline

    kenk705

    Yeah, I have permissions and essentials though. Do I need to change something?
     
  11. Offline

    Epics

    Do you have/use GroupManager with Essentials? If you don't, you need to remove groupmanager.jar from the /plugins/ as it would argue with your real permissions.
     
  12. Offline

    Acrobot

    kenk705
    Also, are you getting any errors in the console?
    And:
    - what are you holding in hand
    - what does the sign look like?
     
  13. Offline

    kenk705

    I looked in my plugins and can't seem to find the group manager or the .jar. Hm, this is getting frustrating lol
     
  14. Offline

    kenk705

    1st line: Admin Shop
    2nd line: 1
    3rd line: B 400:200 S
    4th line: Diamond
    It says its been successful but when other players click on it, nothing happens.
     
  15. Offline

    Epics

    In your server root open "Bukkit.yml" and change spawn-radius to 0.
     
  16. Offline

    kenk705

    The shop isn't near the spawn.
     
  17. Offline

    Epics

    It doesn't matter, if it isn't 0 it breaks things. Not sure why, just does.
    You'll need another plugin to protect spawn if you are using the built-in spawn protection, too.
     
  18. Offline

    kenk705

    S
    Still doesn't work... Man
     
  19. Offline

    Zack966

    Hey, I need some help. I can't get my shops to allow others to buy. I set the permission Chestshop.shop.* for my default group, but it says that users don't have permission to use the shop. In 1.1 I was using PermissionsBukkit, which worked fine, but now in 1.2.3, I'm using PermissionsEX. I added the permission, restarted the server, and dis- and reconnected to the server and it still says I don't have permission as a default user.

    I'm using the most recent ChestShop, PEX, BOSEconomy and the most recent CraftBukkit 1.2.3 beta build. Please help.
     
  20. Offline

    starns

    this dont work neater dose simple region market. Whats rong with permissions Please help
     
  21. Offline

    starns

    Can somone send there server File with just chest shop and the permisions with the perms for it so its working Please
     
  22. Offline

    syddie

    I'm having this EXACT same issue, just updated my server. Newest version of iConomy, Chestshop, and Pex. Chestshop has never given me this issues before, but when it loads up I'm getting this error, but yet in game I can still create shops, just that no one can actually buy/sell to them and this was a major part of my server.

    10:12 PM [SEVERE] Error occurred while enabling ChestShop v3.37 (Is it up to date?): org.bukkit.plugin.PluginDescriptionFile.getSoftDepend()Ljava/util/List;
     
  23. Offline

    fatmarley

    Acrobot so then I export them to my website to view them? (again, another moron question)
     
  24. Offline

    Acrobot

    syddie
    Which CraftBukkit version?

    fatmarley
    Yep, you can configure the path in the config.

    kenk705
    And what about errors in console? Have you got any?

    Zack966
    If you're sure that's the permissions error, then this will be PEX's issue.
     
  25. Offline

    Etsijä

    Acrobot: with an earlier (1.1) version of ChestShop, permission node "- -ChestShop.shop.create" node worked. Now it doesn't anymore - everyone on our server is able now to create a chest shop, no matter if the aforementioned node has been defined or not.
     
  26. Offline

    Epics

    What permissions are you using? It works fine for me. I'm pretty sure the default is allow, the WorldGuard integration also was changed so the flag /region flag ChestShop needs to be valued at "allow" now for anyone to create a shop.
     
  27. Offline

    Acrobot

  28. Offline

    Etsijä

  29. Offline

    DoomAngelBlade

    Okay.
    We Fixed That Problem with Private.
    Now This problem:
    PERMISSIONS:
    groups:

    default:

    default: true

    permissions:

    - modifyworld.*

    - commandbook.spawn

    - commandbook.who

    - commandbook.say

    - commandbook.msg

    - myhome.home.soc.*

    - iConomy.access

    - iConomy.bank.access

    - iConomy.bank.deposit

    - iConomy.bank.join

    - iConomy.bank.join.multiple

    - iConomy.bank.leave

    - iConomy.bank.list

    - iConomy.bank.main

    - iConomy.bank.main.change

    - iConomy.bank.main.set

    - iConomy.bank.main.view

    - iConomy.bank.transfer

    - iConomy.bank.transfer.multiple

    - iConomy.bank.withdraw

    - iConomy.list

    - iConomy.payment

    - iConomy.rank

    - jobs.join.*

    - jobs.world.*

    - lwc.protect

    - iConomyChestShop.shop.create

    - iConomyChestShop.shop.create.<id>

    - iConomyChestShop.shop.exclude.<id>

    - iConomyChestShop.shop.buy

    - iConomyChestShop.shop.sell

    - iConomyChestShop.command.iteminfo

    - commandbook.call

    - commandbook.time.check

    - commandbook.rules

    - myhome.home.basic.home

    - myhome.home.basic.set

    - myhome.home.basic.delete

    - myhome.home.soc.invite

    - starterkit.add

    - starterkit.list

    - starterkit.reload

    - starterkit.remove

    - starterkit.add

    - starterkit.list

    - starterkit.reload

    - starterkit.remove

    Moder:

    default: false

    inheritance:

    - Default

    permissions:

    - modifyworld.*

    - commandbook.kick

    - commandbook.bans.ban

    - commandbook.bans.unban

    - commandbook.shock.other

    - commandbook.rocket.other

    - commandbook.shock

    - commandbook.rocket

    - commandbook.mute

    - commandbook.teleport.*

    - commandbook.spawn

    - commandbook.kit.list

    - commandbook.who

    - commandbook.say

    - commandbook.msg

    - worldgurad.god

    - worldguard.ungod

    - worldguard.god.other

    - worldguard.ungod.other

    - worldguard.heal.*

    - worldguard.slay.*

    - myhome.*

    - iConomy.access

    - iConomy.bank.access

    - iConomy.bank.deposit

    - iConomy.bank.join

    - iConomy.bank.join.multiple

    - iConomy.bank.leave

    - iConomy.bank.list

    - iConomy.bank.main

    - iConomy.bank.main.change

    - iConomy.bank.main.set

    - iConomy.bank.main.view

    - iConomy.bank.transfer

    - iConomy.bank.transfer.multiple

    - iConomy.bank.withdraw

    - iConomy.list

    - iConomy.payment

    - iConomy.rank

    - jobs.join.*

    - jobs.world.*

    - commandbook.whereami.compass

    - commandbook.whereami

    - lwc.protect

    - iConomyChestShop.shop.create

    - iConomyChestShop.shop.create.<id>

    - iConomyChestShop.shop.exclude.<id>

    - iConomyChestShop.shop.buy

    - iConomyChestShop.shop.sell

    - iConomyChestShop.command.iteminfo

    - iConomyChestShop.admin

    - commandbook.call

    - worldedit.navigation.jumpto

    - worldedit.navigation.thru

    - commandbook.time.check

    - commandbook.rules

    - lwc.mod

    - myhome.home.basic.home

    - myhome.home.basic.set

    - myhome.home.basic.delete

    - myhome.home.soc.invite

    - vanish.*

    - starterkit.*

    Admins:

    default: false

    inheritance:

    - Moder

    permissions:

    - '*'


    Config:
    PREFERRED_ECONOMY_PLUGIN: "iConomy"
    #WHEN NOT USING VAULT. Preferred economy plugin (iConomy, BOSEconomy, Essentials). If you do not want to specify this, leave it blank.
    REVERSE_BUTTONS: false
    #If true, people will buy with left-click and sell with right-click.
    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.
    STACK_UNSTACKABLES: false
    #If true, ALL things (including food, etc.) will stack up to 64
    SERVER_ECONOMY_ACCOUNT: ""
    #Economy account's name you want Admin Shops to be assigned to
    ADMIN_SHOP_NAME: "Admin Shop"
    #First line of your admin shop should look like this
    SHOP_CREATION_PRICE: 0
    #Amount of money player must pay to create a shop
    LOG_TO_FILE: false
    #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
    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?
    RECORD_TIME_TO_LIVE: 600
    #How long should transaction information be stored?
    STATISTICS_PAGE_GENERATION_INTERVAL: 60
    #How often should the website be generated?
    USE_BUILT_IN_PROTECTION: true
    #Do you want to use built-in protection against chest destruction?
    PROTECT_CHEST_WITH_LWC: false
    #Do you want to protect shop chests with LWC?
    PROTECT_SIGN_WITH_LWC: false
    #Do you want to protect shop signs with LWC?
    IGNORE_CREATIVE_MODE: true
    #Do you want to allow using shops to people in creative mode?
    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?
    TOWNY_INTEGRATION: false
    #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 plots?
    TAX_AMOUNT: 0
    #Percent of the price that should go to the server's account. (100 = 100 percent)
    SERVER_TAX_AMOUNT: 0
    #Percent of the price that should go to the server's account when buying from an Admin Shop
    SHOP_REFUND_PRICE: 0
    #How much money do you get back when destroying a sign?
    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?
    SHOP_INTERACTION_INTERVAL: 100
    #(In 1/1000th of a second) How often can a player use a shop sign?
    HEROES_EXP: 100
    #How much Heroes exp should people get for creating a ChestShop?
    BLOCK_UPDATE: false
    #EXPERIMENTAL: Should every ChestShop transaction result in a block update?
    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)

    CraftBukkit version git-Bukkit-1.1-R4-1938jnks(MC:1.1) (Implementing API version 1.1.-R4)

    Probem:
    Default Group have NO PERMISSIONS.
    Default Group can't(Tested):
    Buy from adminshop
    Sell to adminshop
    But from shop
    Sell to shop
    Create Shop
    Creative mode: no.
    Strange thing: admins can do all stuff that are allowed to DEFAULT.
     
  30. Offline

    Epics

    It's not iConomyChesShop, it's ChestShop.
    I.E
    iConomyChestShop.shop.create
    would be..
    ChestShop.shop.create
     
  31. Offline

    DoomAngelBlade

    Epics.
    Do u know what u have done?
    All the admins on server spammed: YUPPPIE!!!! YAHOOO!!!!
    YAY!!!
     
    rexs123 likes this.

Share This Page