[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

    Krazy

    Epics

    yes is permission
     
  3. Offline

    Epics

    To fix it you would give VIPS
    -ChestShop.shop.create.*
    :)
     
  4. Offline

    Krazy

    NON-VIP users still can create shop...
     
  5. Offline

    Epics

    - -ChestShop.shop.create.* to the NON VIP
     
    Krazy likes this.
  6. Offline

    tutkillerz

    Epics
    I set my spawn radius to 0 but still it's like that, does this error concern?
    17:52:01 [SEVERE] Could not pass event PlayerMoveEvent to WorldGuard
    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 net.minecraft.server.NetServerHandler.a(NetServerHandler.java:208)
    at net.minecraft.server.Packet10Flying.handle(SourceFile:126)
    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.NoSuchMethodError: org.bukkit.entity.Player.getVehicle()Lor
    g/bukkit/entity/Vehicle;
    at com.sk89q.worldguard.bukkit.WorldGuardPlayerListener$PlayerMoveHandle
    r.onPlayerMove(WorldGuardPlayerListener.java:113)
    at sun.reflect.GeneratedMethodAccessor36.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)
    ... 10 more
     
  7. Offline

    tynmishoe22

    I don't get the issue here. When they sell it, they take their own 10 dollars from their pocket and essentially gain no money and lose no money. What is the problem?
     
  8. Offline

    Acrobot

    0chat
    It was "Default HD" with a bit of editing, but it was, hmm... beta 1.2? or something like that.

    Lucasring
    Well, you need to post the whole error.

    syddie
    Update your CraftBukkit?

    Buckethead
    Well, the first WorldEdit error seemed to be fixed in 3.38, but I'll check on that.

    And the 2nd error is fine - your spawn-radius isn't set to 0, it is 22, right? (Also, it won't be necessary to do so anymore, I submitted a ticket on leaky.bukkit)

    jordyluke
    It works with all economy plugins supported by Register AND Vault (if found). If you're having troubles with EEco, use Vault.

    tutkillerz
    That's WorldGuard error, not ChestShop's.

    Could not pass event PlayerMoveEvent to WorldGuard
     
  9. Offline

    Epics

    tutkillerz The worldguard error is because you aren't using an updated version. Get it at http://build.sk89q.com/ [note these are beta builds and I am not responsible for any damage done to your server using these. I myself use these on our server, though.]

    Acrobot
    The WorldGuard was indeed fixed. I'm using it now.
     
  10. Offline

    Krazy

    Ty! poblem solved!
     
  11. Offline

    Etsijä

    Acrobot: I hope this question is not too trivial, but is it currently possible to limit the number of shops each player (or better yet - each player class!) can create? If not, could the feature be added? We do not want our server to become overcrowded with chestshops.
     
  12. Offline

    Acrobot

    Etsijä
    Nope, not at the moment, and it would be extremally hard to add such a limit at the moment, because the shop information isn't saved anywhere :/
     
  13. Offline

    sticky55

    Is there any way to abbreviate because some of these things dont fit?
     
  14. Offline

    Acrobot

    sticky55
    What do you mean?
    ChestShop should automatically pick up even not complete item names, for example:

    Diamond Chainpl
     
  15. Offline

    S3thc0n

    Idea: You can buy /sell already used tools, with their price being calculated from a base price of an unused tool.
     
  16. Offline

    Buddy251

    Idea: That the SignFormat can be change in the config :D
    WoW thats great :D
    (sry for my bad english :cool:)
     
  17. Offline

    TomdebomPC

    As i want to buy something from my sign [Admin Shop] it says ''[Shop] You can't buy here'' and i already put the permissions in group manager and i have the permissions '*' and i already put the radius to 0
     
  18. Offline

    themidknightson

    Great plugin keep it up! Is there anyway to add a pay for service type sign into the plugin? my friend is dead set on running a hotel and that would make it alot easier. great job though, run it on my server and have no issues
     
  19. Offline

    Nekuroi

    Still having the issue with the ebean db of duplicated keys and i have that feature disabled in the CS config file.
     
  20. Offline

    Acrobot

    Nekuroi
    Sorry, that is not ChestShop's fault :/
     
  21. Offline

    iLambo

    Acrobot

    ChestShop Will not work on my server. I have uninstalled it and reinstalled it at least 10 times.

    I am running (1.2.3 - R02) Or whatever and I have the latest version of your plugin.
    I have tried everything to get it working.
    Could I pay you $5 USD to try to get it working on my server. It used to work but wont now.
    Please reply if you would like to do this.
     
  22. Offline

    Acrobot

    iLambo
    What do you mean "will not work"?
     
  23. Offline

    iLambo

    Should have specified the problem sorry.

    When players right click on the sign it just says the sign is locked by (player).

    Although when I add the shop it tells me it is successfully created.
     
  24. Offline

    Acrobot

    iLambo
    Do you get any errors in console?
    Are you sure that when the players right-click, they aren't in creative mode?
    Are your players holding a sign?
     
  25. Offline

    Nekuroi

    So why is still all cs transactions being loged in the ebean db if i have this:
    LOG_TO_DATABASE: false
    #If true, plugin will log transactions in EBean database
     
  26. Offline

    iLambo


    Code:
    16.03 15:36:19 [Server] INFO [ChestShop] iConomy version 6 loaded.
    16.03 15:36:19 [Server] INFO [ChestShop] WorldGuard version 5.5.2-SNAPSHOT loaded.
    16.03 15:36:19 [Server] INFO [ChestShop] LWC version 4.1.1 (b645-git-b24cc99e) loaded.
    16.03 15:36:19 [Server] INFO [ChestShop] Enabling ChestShop v3.38
    No errors.
    Its a survival world. Nobody is in creative.
    They were holding nothing in their hand.
     
  27. Offline

    Acrobot

    Nekuroi
    Well, it also enables the database if you have the GENERATE_STATISTICS_PAGE turned on.

    iLambo
    Could you post the IP? (Alternatively, PM me?)
     
  28. Offline

    Nekuroi

    Thanks, that will save me.
     
  29. Offline

    Kuboken

    Hey just wondering to save plugins space any way we can get a way to sell Enchants?
     
  30. Offline

    xcjen

    Theres a problem people can buy but not sell like the left click doesnt work at all and it even doesnt say anything if you left click it.
     
  31. Offline

    TomdebomPC

    @Acrobot
    I also have problems with chestshop as i want to buy something it says ''you can't buy here'' '' and you can't sell here''
    Please help :)
     

Share This Page