[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

    Amphioxys

    Sorry, but this is driving me up the wall!! I want to deny certain user groups the option of creating shops. I am using PermissionsBukkit, so I add the line:

    HTML:
    ChestShop.shop.create.*: false
    But this has no effect. I also tried:

    HTML:
    ChestShop.shop.create: false
    Same non-result.

    Using:

    HTML:
    -ChestShop.shop.create
    TOTALLY breaks the config.yml of my permissionsbukkit. So THAT's not it either!

    What to do other than finding another Shop plugin????
     
  3. Offline

    rafffel

    Hi there not real issue chestshop work fine on my server.
    But for going fazst on my huge bank.
    I have to put like thousand of Sign.
    I have tried to make small script for put on block SIGN with information but the ChestShop say Shop was created succefully but in fact doesn't work and last line ( Item id) doesn't go his small name was really strange.
    For create i just doing this :
    Code:java
    1. @EventHandler(priority = EventPriority.NORMAL)
    2. public void WallListener(BlockDamageEvent event) {
    3. Block b = event.getBlock();
    4. b.setType(Material.WALL_SIGN);
    5. if(b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN_POST || b.getType() == Material.SIGN)
    6. {
    7. Sign c = (Sign)b.getState();
    8. c.setLine(0, "AdminShop");
    9. c.setLine(1, "64");
    10. c.setLine(2, "1:1");
    11. c.setLine(3, "1");
    12. Bukkit.getServer().getPluginManager().callEvent(new SignChangeEvent(b, event.getPlayer(), c.getLines()));
    13. }
    14.  
    15.  
    16.  
    17. }


    Anyone know why it doesn't work ?
     
  4. Offline

    lilacorn

    Craftbukkit 1.7.2 RO.2
    Chestshop 3.7.3
    Essentials 2.12.2
    Vault
    GroupManger

    My problem is when players buy something from the admin shop signs it does not appear in their inventory. I tested it and it has happened to me too.
     
  5. Offline

    Acrobot

    Amphioxys
    I'm not that experienced with PermissionsBukkit, however you can try opening ChestShop.jar with WinRAR/7Zip and editing plugin.yml file - change all "default: true" to "default: false".

    rafffel
    Hmm, looks fine to me. Is that all the code?

    lilacorn
    I'm sorry, but it might be possible that another plugin is conflicting OR the CraftBukkit version you installed is outdated. Try updating CraftBukkit.
     
  6. Offline

    lilacorn

    any idea what ones would conflict with CS?
    AutoSaveWorld
    Builder
    BungeeCord
    BungeePortals
    ChestShop
    Citizens
    Clearlag
    CombatLog
    Commandspy
    CraftBukkit
    DisguiseCraft
    ecoCreature
    EndlessEnchant
    Enjin Minecraft Plugin
    EndSwear
    Essentials
    FastCraft
    FirstJoinPlus
    GroupManager
    HeroChat
    HorseKeep
    IP-Check
    ItemRenamer
    JailWorker
    LimitedCreative
    Lockette
    MCBans
    MineResetLite
    MobArena
    MultiLogger
    MultiVerse-Core
    NoCheatPlus
    OnlyProxyJoin
    OpenInv
    PlayerVaults
    Prism
    ProtocolLib
    SimpleAutomessage
    Towny
    TreeAssist
    VanishNoPacket
    Vault
    WorldEdit
    WorldBorder
    WorldGuard
     
  7. Offline

    Acrobot

    lilacorn
    Ones that probably fit the most:
    - OpenInv
    - ProtocolLib
    - Clearlag
    - DisguiseCraft
    - VanishNoPacket
    - Fastcraft

    However, firstly, I would try updating to the latest CraftBukkit version.
     
  8. Offline

    lilacorn

    I downloaded the dev version of bukkit the latest one and redid admin shop signs, it works now... Dunno which one worked but it works now.
     
    Acrobot likes this.
  9. Offline

    rafffel

    That's all yes was very strange because when i try to edit with signedit for exemple it's close to same issue.
    I edit it's say you have creted a chest shop but sign doesn't change and in console signedit say edit aborted due to another plugin prevent it (not excatly that but in that).
    But now i'm thinking it's maybe LWC that protect that i will check that ty for you're answer

    i've just checked but seems not to be lwc the message of signedit was [SignEdit] [BLOCKED] Another plugin modified line 3: 1:1 to B 1:1 S
    but in reality nothing change on sign it was really understandable
     
  10. Offline

    Acrobot

    rafffel
    So it was SignEdit that blocked the event ._. Try turning it off.
     
  11. Offline

    Dutchy_

    I'm getting this error after I edited the config:
    http://pastebin.com/5zazrVkB
    -Edit-
    I have tried restoring the config to the old settings, but it still crashes the server.
     
  12. Offline

    Acrobot

    Dutchy_
    Which ChestShop version are you running? It doesn't seem like you're using the latest one.
     
  13. Offline

    jare1212

    - CraftBukkit version (type /version in chat) 1.7.2
    - ChestShop version (type /csversion in chat) 3.7.5
    - Your economy plugin (iConomy? BOSEconomy? other one?) Essentials (/bal)
    - Have you got any Permission plugin? Which one? Groupmanager
    Hey there! I am trying to make shop and when I do the sign, I try to sell something an it says ' You sold 1 Mob Spawner to Admin Shop for .' It won't give me the balance. Why?
    My sign set up:
    Admin Shop
    1
    B 1000:100 S
    52:29
    Please help! If you prefer Skype, then Skype me at jare1212
     
  14. Offline

    Acrobot

    jare1212
    You need to have Vault installed for EssentialsEco to work.
     
  15. Offline

    Jrud10

    I'm having some trouble with using hoppers in combination with the chest shops on the server I play on.

    CraftBukkit Version: git-Bukkit-1.7.2-R0.2-15-g2f3dbd3-b2992jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.3-SNAPSHOT)
    ChestShop Version: 3.7.2
    Economy Plugin: Essentials.Economy
    Permissions Plugin: LWC

    The problem is that as soon as I create the chest shop on a chest, it instantly prevents items from being taken from the store chest. I realize this is probably to prevent people from stealing from the shop, but there are other plugins that already prevent that for me, and I need a way to enable hoppers to work and pull items from the chest shop. Is there already, or could there potentially be, a command I could use on the shop to allow this?
     
  16. I don't even use this plugin and still found this in the config by just checking it quickly.
    Code:
    TURN_OFF_HOPPER_PROTECTION: false
    #Do you want to disable the hopper protection, which prevents the hoppers from taking items out of chests?
     
    Acrobot likes this.
  17. Offline

    Jrud10

    Ah, you're right, this was in the settings. I had the server admin switch it for me, but it didn't seem to have any effect. The items still won't leave the chest.

    I'm having him update the plugin to the latest version now, I won't know if it's actually fixed or not until tomorrow morning.

    ~~~~~~~~~~~~~~~~~~~~Update~~~~~~~~~~~~~~~~~

    Updating the plugin fixed the issue. It now works correctly.
     
    Sketaful likes this.
  18. Offline

    tombo29

    Hey, just wondering if there was any way to add a friend to your shop? In a form of a command or something you write on the sign maybe?
     
  19. Offline

    Acrobot

    tombo29

    Unfortunately, not really. You could turn off ChestShop's protection and rely on LWC - then you both should be able to access the chest.
     
  20. Offline

    Acrobot

    Mrchasez

    I'm sorry that you both had to fight about it, however yes, it is my fault. The auto-updater (which was written by Gravity) does not take the CraftBukkit version into account and it downloaded the incompatible version. I've temporarily removed it from the Files section so as not to force people to update to 1.7.8 yet.
     
  21. Offline

    galaxyfriend

    Hey,
    ChestShop (Version 3.7.2 up to 3.7.8) couldn't run on my Bukkit 1.7.2 R 2.0 Server. I have iConomy installed and I wrote everything right, but after I created a sign it doesn't change and no message is displayed. I tried the /chestshop command and it showed me the plugins version, like normal...

    I also created a local 1.7.2 Server (with R 2.0 and also with R 3.0) to check if it's only a problem on my server but surprisingly it didn't worked too. So after that I just wanted to check if it works with Bukkit 1.6.4 and it did perfectly.

    Are you having the same problem too?

    (Sry for my horrible English ;) )
     
  22. Offline

    Evandro

    Hello Acrobot, do you think you can make this plugin works with Fe Economy? I found it better than iConomy, with the same commands but it is more configurable and easy to translate, i'm having a lot of troubles with iConomy, such as only lower case in the Top players rank, errors in the translate file etc.
     
  23. Offline

    CraftBang

    Hey,
    Just a little tip for everyone, update to 3.7.8 or above!
    Since under those versions there is a TERRIBLE infinite item bug..
     
  24. Offline

    Acrobot

    Sorry for replying so late, I had been on vacations. Generally, it should work with all versions of CraftBukkit, so I'm not sure why it didn't work for you. Have you noticed any errors in the console? Chat?

    It already works, you just need to have Vault installed.

    +1
     
    CraftBang likes this.
  25. Offline

    Evandro

    Every time when i buy something, the shop owner loses his economy account, the same occurs if i try to buy something, my economy ccount gets deleted when using FE Economy. I'm using the last version of Vault, ChesShop, and Fe Build #42.

    I don't know if it is a ChestShop or Fe problem, i just can't use them togheter.
     
  26. Offline

    Acrobot

    Build #42? I tried to find it, however the latest dev build is the #27 - could you either update your Fe Economy to the latest dev one or the latest stable, 0.7?
     
  27. Offline

    ebear

    Err, the newest build on the BukkitDev doesn't respond when you right or left click shops...

    It says the shops were successfully created, but no buying or selling regardless of permissions and OP.
     
  28. Offline

    Acrobot

    Which CraftBukkit/Spigot version are you running?
     
  29. Acrobot

    Is the item dupe bug fixed in 3.7.5 with the E0000// thing?
    Or are you still working to patch it?
     
  30. Offline

    Acrobot

    Fixed, although in 3.7.8 - I just haven't updated this thread for a while.
     
  31. Offline

    galaxyfriend


    Nothing special...
    It just says

    15:07:16] [Server thread/INFO]: [ChestShop] Enabling ChestShop v3.7.8
    [15:07:16] [Server thread/INFO]: [ChestShop] LWC version 4.4.0 (b881) (July 11, 2013) loaded.
    [15:07:16] [Server thread/INFO]: [ChestShop] Vault loaded! Found an economy plugin!

    at booting and when I use the command /chestshop it says:

    [21:32:23] [Server thread/INFO]: galaxyfriend issued server command: /chestshop

    But it still doesn't react if I create a shop or an AdminShop sign...

    Try to run it on a local Bukkit Server, maybe you have the same problem :/

    (ChestShop Version 3.7.8)
     

Share This Page