[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

    Sodisna

    is it possible to add custom items? Like item from Buildcraft?
     
  3. Offline

    Acrobot

    @mypetsquirrel
    Well, there is no way to do it, AFAIK. You'd have to do 2 commands:
    /money grant nameOfTheAccount -amount (fe. /money grant AcrobotPL -5)
    /money grant yourAccount amount (fe. /money grant AcrobotPL 5)

    @JagCraft
    Already supported.
    If someone's not owner/admin/shop owner, he won't be able to open the chest. (Or break sign/chest, or break the block the sign is on)

    @Sodisna
    Nope, unfortunately, AFAIK, ModLoader version of Bukkit doesn't overwrite the Material ENUM (which is the list of all items).
    Ask them if they could modify the "Material" enum, if they do, it should work.
     
  4. Offline

    mypetsquirrel

    so, basically the accounts are a big black hole, unless you have OP permissions. that seems weird to me. Oh well. I have it set up so the money is in Gold bars. With no way to withdraw "money" from your accounts, there's no way to use accounts reliably. So I have had to disable them.
     
  5. Offline

    kracky

    Hi

    using ChestShop now and Admin Shops work fine but if a user create a ChestShop everyone who want to buy or sell is getting

    Code:
    [Shop] You can't buy here!
    [Shop] You can't sell here!
    I am using Permissions 3 on Bukkit 1317

    Members got the this Permissions:

    Code:
            permissions:
            - ChestShop.shop.create
            - ChestShop.shop.sell
            - ChestShop.shop.buy
    Here is a Screenshot from my Plugin Folger:


    http://imageshack.us/f/546/screennj.png/
     
  6. Offline

    Acrobot

    @kracky
    Wrong sign format.
    Make sure there is a colon :)) between the sell and buy price.
     
  7. Offline

    Tubbytoad42

    @Acrobot
    The Minecart Mania incompatibility bug can be worked-around if the player manually writes their name on the first line of the shop sign
     
  8. Offline

    Acrobot

    @Tubbytoad42
    Thank you for posting this :)
    It seems like it's an issue on my side - I'll see what I can do about this.
     
  9. Offline

    donald1440

    hi doeent this plugin work with bpermission?

    when i try out to create a show i can even thought i sholdent be able to in permission
     
  10. Offline

    ViZiT

    players can't sell, only buy help please
    permissions
    - 'ChestShop.shop.*'
    =(
     
  11. Offline

    Acrobot

    @ViZiT
    Permission is fine, however you default spawn protection prevents selling to the server in the spawn zone (where your shops are)
    Just go to bukkit.yml and change spawn-radius to 0 :)

    @donald1440
    Yep, it works. Just remember that it's case-sensitive.
     
  12. Offline

    King_KYl3

    im new to this but its amazing :p okay one of my players created one but none of us can buy from it it just says You Carnt Buy Here Why??
     
  13. Offline

    Acrobot

    @King_KYl3
    Hey, thanks :)
    I guess he forgot the colon between prices.
    The third line can look like (B and S can be on either side of the number):
    B 5
    S 5
    And if you want to combine BOTH prices, treat colon as a separator.
    So, in the last example, it would be:
    B 5: S 5
    (etc.)
     
  14. Offline

    King_KYl3

    oh okay epic ness :p
     
  15. Offline

    ForsakenRealmz

    I got this error when someone tried to buy from my chestshops?

    18:53:02 [SEVERE] Could not pass event PLAYER_INTERACT to Jail
    java.lang.NullPointerException
    at org.bukkit.Location.getBlock(Location.java:72)
    at com.matejdro.bukkit.jail.JailCell.getChest(JailCell.java:107)
    at com.matejdro.bukkit.jail.listeners.JailPlayerProtectionListener.onPla
    yerInteract(JailPlayerProtectionListener.java:169)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:265)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :501)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  16. Offline

    APETERSON167

    @Acrobot Ok so i did another test. I had my friend make the chest and everything... and even w/ his name on it, it still didnt work. could this b b/c of my iconomy plugin or something. i think were getting close to the solution. Thanks
     
  17. I would ask Jail developer first.
     
  18. Offline

    donald1440

    hi thanks for answering,
    but the proble is that when i put myself in a group thet dont got the permision node for creating a shop i
    still are able to do it.

    is it anyhing am doing wrong?
     
  19. Offline

    Acrobot

    @donald1440
    Yep.
    The permission to create shop is by default turned on. If you want to turn it off:
    (in PEX and bPerms)
    you place '-' before the permission node, like:
    -ChestShop.shop.create
    (in PermsBukkit)
    you place "false" instead of true at the end, like:
    ChestShop.shop.create:false

    @ForsakenRealmz
    It's not ChestShop's problem, it's a problem with Jail plugin made by matejdro, like @VADemon said (thanks)

    @APETERSON167
    Sorry, again:
    - what is the problem
    and
    - what did we do already?
    I got lost in the thread, sorry.
     
  20. Offline

    slimpyman

    I cant sell cake... i tried the name and the item id number... the sign creates correctly, yet when i try and sell, it says i dont have the item (i have the item)
     
  21. Offline

    Acrobot

    @slimpyman
    Did you try typing /iteminfo and checking what name and data value it is?
     
  22. Offline

    groveham

    - CraftBukkit version - 1.8.1

    - ChestShop version - 3.24

    - Your economy plugin - Essentials Eco

    - Have you got any Permission plugin? Which one? - PermissionS
    For some reason, normal users cannot buy/sell/create chest shops even though I have added them into the permissions using - ChestShop.Shop.Create, - ChestShop.Shop.Buy, - ChestShop.Shop.Sell and still it will not work.
    When normal users try to make a shop it says 'Can not create this type of shop'
    It works for admins with the permissions ChestShop.* but no-one else. Can anyone help me?
     
  23. Offline

    Acrobot

    @groveham
    You've got multiple permission plugins. If you've got EssentialsGrupBridge, delete it.
     
  24. Offline

    donald1440

     
  25. Offline

    groveham


    I havent, I only run EssentialsEco and thats it, It works for admins and ops (two different things) but not for moderators, VIP's or Normal Users (my version of default users)

    I will paste the code below to see if you can spot an error
    Code:
    GROUPS PERMISSIONS
    
    groups:
      Normal User:
        default: true
        permissions:
        - -essentials.item
        - essentials.afk
        - essentials.back.*
        - essentials.help
        - essentials.home
        - essentials.list
        - essentials.me
        - essentials.msg
        - essentials.pay
        - essentials.rules
        - essentials.sethome
        - essentials.spawn
        - essentials.seen
        - essentials.top
        - essentials.tpa
        - essentials.tpaccept
        - essentials.tpdeny
        - essentials.tpahere
        - essentials.warp
        - essentials.warp.list
        - essentials.balance
        - essentials.balancetop
        - essentials.pay
        - essentials.delhome
        - lockette.user.create.*
        - ChestShop.Shop.Buy
        - ChestShop.Shop.Sell
        - ChestShop.Shop.Create
        inheritance: []
        info:
          prefix: ''
          build: true
          suffix: ''
      VIP:
        default: false
        permissions: []
        inheritance:
        - Normal User
        info:
          prefix: '&5[VIP]&f '
          build: true
          suffix: ''
      Moderator:
        default: false
        permissions:
        - essentials.ban
        - essentials.banip
        - essentials.tempban
        - essentials.jail
        - essentials.jails
        - essentials.kick
        - essentials.kick.notify
        - essentials.togglejail
        - essentials.tp
        - essentials.unban
        - essentials.unbanip
        - worldedit.wand
        - worldedit.expand
        - worldedit.selection.*
        - worldguard.region.addmember.*
        - worldguard.region.addowner.*
        - worldguard.region.define
        - worldguard.region.info.*
        - worldguard.region.redefine.*
        - worldguard.region.redefine.member.*
        - worldguard.region.redefine.own.*
        - worldguard.region.removeowner.*
        - worldguard.region.removemember.*
        - worldguard.region.setparent.*
        - worldguard.region.setpriority.*
        - worldguard.region.remove.*
        inheritance:
        - Normal User
        info:
          prefix: '&2[Moderator]&a '
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - '*'
        - lockette.*
        - -essentials.backup
        - -essentials.essentials
        - -essentials.setspawn
        - -essentials.reloadall
        - -essentials.plugin
        - essentials.*
        - worldedit.*
        - worldguard.*
        - ChestShop.*
        - Vanish.*
        - logblock.tools.tool
        - logblock.tools.toolblock
        inheritance:
        - moderator
        info:
          prefix: '&6[Admin]&9 '
          build: true
          suffix: ''
    
    
    
    ChestShop>Config.yml
    
    
    PREFERRED_ECONOMY_PLUGIN: "Essentials"
    #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: true
    #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: "EdenCraft Shop"
    #First line of your admin shop should look like this
    SHOP_CREATION_PRICE: 2.50
    #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?
    MASK_CHESTS_AS_OTHER_BLOCKS: false
    #Do you want to mask shop chests as other blocks? HIGHLY EXPERIMENTAL, CAN LAG!
    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?
    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)
    SHOP_REFUND_PRICE: 0
    #How much money do you get back when destroying a sign?
     
  26. Offline

    gobadgers77

    Problem.

    Chest Shop: 3.24
    CB: #1185
    Permissions: PermissionsEX
    Economy: iConomy 6

    Problem is that nobody can use this.

    They have these permissions:

    ChestShop.Shop.buy
    ChestShop.Shop.sell
    ChestShop.Shop.create
    ChestShop.Shop.* (I added this thinking it'd fix it, but nope)

    I've gone through Permissions file and CS config file multiple times cannot find a solution.
     
  27. Offline

    groveham


    I have exactly the same problem as you but I am using the Permissions Plugin not PermissionsEX
    I, as an admin with the Chestshop.* command can do everything, but other people, such as normal players who do not have Chestshop.* cannot create, buy or sell.
     
  28. Offline

    Acrobot

    @groveham
    @gobadgers77
    It's ChestShop.shop.something
    not
    ChestShop.Shop.something.
    It's case-sensitive.

    @donald1440
    Yeah, and I just told you the answer.
     
  29. Offline

    groveham


    Ahhhh yes thankyou, I've been doing a few permissions and new plugins lately, most of them are case sensitive, its just getting it to the point where it works before you know what will work!

    lots of tutorials don't specify if it is case-sensitive or not. That's where I was going wrong, thank you very much!!
     
  30. Offline

    Nerdy

    Ya your plugin has a problem with bpermissions. I have tried everything to remove default from creating shops and nothing has worked.

    Code:
    groups:
      admin:
      - logblock.*
      - ^logblock.hide
      - bPermissions.admin
      - bPermissions.gui
      - ChestShop.*
      - simplecoloredchat.use
      - iConomy.*
      default:
      - logblock.me
      - bPermissions.build
      - ChestShop.shop.buy
      - ChestShop.shop.sell
      - -ChestShop.shop.create
      - iConomy.user
      VIP:
      - ChestShop.shop.buy
      - ChestShop.shop.sell
    Does not work for some reason.
     
  31. Offline

    Acrobot

    @Nerdy
    Hmm, try ^ChestShop.shop.create
    I see you've got the same with logblock.hide, maybe it'll work.
     

Share This Page