LocalShops Economy Based Player Shops Version: 3.1.0 Source Updated V2 (edited by Bruceweed - me) Download LocalShops Updated for 1.8.1 (JAR) For CB 1240 Download LocalShops Updated for 1.8.1 V2 (JAR) For CB 1317 Download LocalShops Updated for 1.8.1 V3 (Iconomy6 attempt) (JAR) For CB 1317 (this one is a test to see if iConomy6 support works.) LocalShops allows players to create and manage physical shops - literal player-defined cuboids - in which they can directly participate in a server economy! Version 3 includes masses of bug fixes, tweaks and improvements, including a brand new item search engine, allowing players to use, manage and create shops with more ease that ever before. Features: Player owned and operated physical shops! Shops can be managed by multiple players. Create a Free Market in which the players directly control economic values of items! Requirements: CraftBukkit Recommended Build 1317 (as not sure how it will run with 1240) Permissions (optional) PermissionsEX Economic (use one of the following) iConomy v5 Essentials Economy v2.6.2 BOSE_economy Commands: [required] <optional> /shop Displays a list of player commands /shop select Select a cuboid area for a shop to occupy. Used in conjunction with both the create and move commands. Using the select command a second time will cancel the selection process. /shop create [shop name] Creates a shop of the default sized (specified in the configuration file) at your location. If used after the select command - assuming the player didn’t cancel the selection process, possess enough money to create a shop (also specified in the configuration file) and the selection is smaller than the maximum allowed area (again, specified in the configuration file) - a shop will be created that fills the specified area. Remember, shops are created in a 3D space - selecting two blocks on the floor will likely result in the creation of a shop that is a single block tall, which isn’t particularly useful to anyone. Any characters may be used for a shop name, including spaces and punctuation. /shop info <id> Used while standing in a shop, this command will return information about that specific shop. If a shop ID is added to the end, it will return information about another shop without the player needing to be physically in it. Use either this command or list to get shop IDs. /shop browse <buy|sell> Shows a list of items currently in the shop and if provided either buy or sell as an argument it will only show those for to buy or sell (from the players perspective). /shop find [item name|id] Finds nearby shops that either buy or sell the item sorted by distance with the cost per item. /shop list Lists all shops in the current world that the player owns, along with their unique IDs and names. /shop move [id] Moves the specified shop to a new location. The select command can be used prior to this command, allowing the shop to be moved to a new cuboid specified by the player. Both list and info will return shop IDs, in addition to other information. /shop destroy Destroys the shop the player is currently standing inside. The owner of the shop will receive anything that was left in stock, inventory space permitting. /shop add <item name> Used without an item name on the end, adds the stack of items that the player is currently holding. If an item name is specified, that item will be added to the shop, with a stock of 0. /shop remove <item name> Used without an item name, removes the item that the player is currently holding from the shop, and returns all remaining stock to the owner. If an item name is specified, it works in the same way, but for the specified item instead of the held item. In order to remove a certain amount of items from a shop (and not stop the shop from stocking the item), the player must use the buy command. Owners and managers of a shop are not charged for removing items in this manner. /shop buy [item name] <amount> /buy [item name] <amount> Purchases a specified item from a shop. If the player uses ‘all’ in place of an amount, the shop will attempt to fill the player’s inventory with the specified item, money (and item stock) permitting. /shop sell <item name> <amount> /sell <item name> <amount> Used without an item name and amount defined, sells the stack of items the player is currently holding. With an item name defined, a specific item (a single item) is sold to the shop. If the player uses ‘all’ in place of an amount, all instances of that item in his inventory will be sold. /shop set Help page - displays a list of set commands. /shop set buy [item name] [price] <bundle size> Used to set the price and bundle size of items that the shop will be able to buy or purchased from customers. Both this command and the set sell command below are set from the perspective of the shop, not the customer; in contrast the buy and sell commands are always from the perspective of the customer. /shop set sell [item name] [price] <bundle size> Sets the price and bundle size of items that can be sold to the customer. /shop set manager +/-[player name] ex: /shop set manager -cerealk +Mineral Adds or removes managers from the player’s shop. A manage is able to add/remove items, set prices and set maximum amounts. He cannot move the shop, destroy the shop, nor add/remove managers. /shop set minbalance [amount] Sets a shops minimum balance that must remain in the account at all times. Helps prevent players from selling to a shop and completely bankrupting the owner. /shop set max [item name] [max amount] Used to set a maximum stock limit for a specified item. Note that the owner of the shop will still be able to add items above the maximum stock level, but the shop will not buy items from players if the current stock level is higher than the maximum specified amount. /shop set notification Toggles if the shop owner is to receive periodic transaction notifications via chat. /shop set owner [player name] Changes the shop owner to another player. /shop set unlimited money Requires a special permission node: localshops.admin Sets the shop to have unlimited money - useful for a server shop buying items from players. The money from items sold to the shop while this is toggled on will go to whoever is set as the shop owner. If the owner is set to a player that doesn’t exist (ServerBank, for example) the creator of the shop won’t get the money from item sales. /shop set unlimited stock Requires a special permission node: localshops.admin Sets a shop to have an unlimited amount of all stocked items - keep in mind that items still need to be added to the shop for them to appear in the shop’s inventory. Permissions: A word of caution with Permissions, Managers by default cannot use shops! Managers should have both the manager and user permissions, similar with Admins. localshops.user.* Users can buy and sell to shops but not make or manage them. Sub nodes are: localshops.user.buy localshops.user.sell localshops.user.browse localshops.manager.* Owners and Managers can create, move or destroy shops and manage shops (using the set commands) Sub nodes are: localshops.manager.add localshops.manager.create localshops.manager.destroy localshops.manager.move localshops.manager.remove localshops.manager.select localshops.manager.set localshops.manager.set.owner localshops.admin Allows administrative access to override manager permissions. localshops.free.create Removes the cost associated with creating a shop. localshops.free.move Removes the cost associated with moving a shop. Configuration File: See this post for the configuration file! Example/Instruction Videos: See this post for the example & instruction videos! Third Party Tools & Utilities: ShopEditor - The GUI for Editing Shops (Windows only ) Credits / LocalShops Team: Please do not send support messages directly to any of These developers. These are the original coders of the plugin. HOWEVER, all I did was added all the new items from 1.8.1 into the shops and updated it. This way everything can be added into shops. Except maps for some odd reason... cereal MineralMC Sleaker Jonbas Changelog: Oct 18th - Fixed the issue with bose economy not being called. be sure to use V3 for this. Also still looking into issue with the Iconomy 6 error that was reported. If anyone else has problems with iCon6 please post an error log for me so I know where to start lol. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Problems: After Downloading it shows: [LocalShops] Version 3.1.0 is enabled: 3180a9e3-884b-44eb-88fd-1eb6b90e53ea Why 3.1.0 when the version 935 is 3.1.1? And the glizer plugin wont run anymore: 14:51:02 [SCHWERWIEGEND] Error occurred while enabling glizer v1.3.0.0 (Is it up to date?): null java.lang.NullPointerException at com.beecub.glizer.glizer.serverLogin(glizer.java:178) at com.beecub.glizer.glizer.onEnable(glizer.java:80) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156) at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) After disabling this Version of localshops the server run like a charm. Second Problem: The previous version (935) can't load new shops after add an item: 2011-10-08 14:51:01 [INFO] [LocalShops] Error loading Shop file "plugins/LocalShops/shops/90488828-a8c4-4167-bf91-c3a56627010c.shop", ignored. 2011-10-08 14:51:01 [WARNING] [LocalShops] Failed to load Shop file: "90488828-a8c4-4167-bf91-c3a56627010c.shop" This is the Shop file: #LocalShops Config Version 2.0 #Sat Oct 08 14:24:24 CEST 2011 266\:0=1100,000000\:1,1000,000000\:1,0\:0 config-version=2.0 creator=Blacki2k2 locationA=188, 68, 615 locationB=192, 71, 621 managers= min-balance=0.0 name=Bankschalter1 notification=true owner=Blacki2k2 unlimited-money=true unlimited-stock=true uuid=90488828-a8c4-4167-bf91-c3a56627010c world=world It`s line 3. Without that line the shop loads... but without any items. I have now my server opening and the shops dont run... great :-( The error with the shop files is for this version also present. After adding a item to the shop destroy the shop file.... EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You do realize someone already updated localshops, and renamed it CommandShop so he wouldn't step on the original authors feet.
I run this on my server with absolutely no problems. I didn't like having to use register.jar with commandshops, and all the extras. This gives me no problems. Plus the problem was Error occurred while enabling glizer v1.3.0.0 (Is it up to date?): null That is a problem with that plugin not the one I put up here. It may just be an incompatibility issue. As I've said the only thing I did to the plugin was added in the 1.8.1 items.
I took out the support for bose_economy, as well as iconomy4. I guess you could say I simplified it a little. LOL
on save or server stop, the item price would be saved with comma instead of point!!!! After Server stop, shops dont load #LocalShops Config Version 2.0 #Sat Oct 08 14:24:24 CEST 2011 266\:0=1100,000000\:1,1000,000000\:1,0\:0 config-version=2.0 creator=Blacki2k2 locationA=188, 68, 615 locationB=192, 71, 621 managers= min-balance=0.0 name=Bankschalter1 notification=true owner=Blacki2k2 unlimited-money=true unlimited-stock=true uuid=90488828-a8c4-4167-bf91-c3a56627010c world=world with this: #LocalShops Config Version 2.0 #Sat Oct 08 14:24:24 CEST 2011 266\:0=1100.000000\:1,1000.000000\:1,0\:0 config-version=2.0 creator=Blacki2k2 locationA=188, 68, 615 locationB=192, 71, 621 managers= min-balance=0.0 name=Bankschalter1 notification=true owner=Blacki2k2 unlimited-money=true unlimited-stock=true uuid=90488828-a8c4-4167-bf91-c3a56627010c world=world all fine. Can you resolve this?
@Eminam Take another look at - Plugin Guidelines - Version needs adding - "Econ" needs changing to "ECON" in the title
That's interesting. It never did that to me. I'll see if I can recreate. I'm not sure why it did that. As I said Only thing I did was added the items (map still doesn't want to go in) and removed Icon 4 and bose econ support. (long story) No sorry. Might look into adding it in later. Going to take awhile for me to get the iCo6 system to work with this lol. I'm a bit new to the coding of plugins so bare with me. I'm just going off what I can remember. It's been a LONG time since I've coded. I plan on putting bose support back in though. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thanks in advanced for the future BOSEconomy support because I do not want to switch economy plugins or stop ussing LocalShops. It is the best shop plugin for an economy/RPG server so I can wait.
I added BOSE support back in. I hope things run smoothly. it should, there weren't any errors in coding so it should be fine. On a side note - As far as ICO6 support goes..... I'm having an issue trying to figure out 3 errors. All dealing with the economy.getAccount string. Added in my first attempt to get iConomy 6 support. If you are willing to test it out and see if it works let me know. I'm not promising anything lol, as I said its an ATTEMPT to support it. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hmm.... not sure why it's doing that. But, I'll look into it sometime tomorrow/friday and see if I cant find the problem. Are anything else after that? A stack trace would be nice to know what lines are producing this error.
@Eminam I have been testing LocalShops.jar 1.81 V2 and V3 but neither have recognized BOSEconomy. 2011-10-12 23:48:32 [INFO] BOSEconomy v0.7.2 enabled. 2011-10-12 23:48:32 [INFO] [LocalShops] Loaded with 0 shop(s) 2011-10-12 23:48:32 [INFO] [LocalShops] Version 3.1.0 is enabled: 8793ace8-daa9-4159-8a01-50c6b2555b1c 2011-10-12 23:48:32 [INFO] [LocalShops][Economy] Essentials Economy not found. 2011-10-12 23:48:32 [INFO] [LocalShops][Economy] iConomy 5 not found. 2011-10-12 23:48:32 [INFO] [LocalShops][Economy] iConomy 6 not found. 2011-10-12 23:48:32 [WARNING] [LocalShops] FATAL: No economic plugins found, please refer to the documentation. 2011-10-12 23:48:33 [INFO] [LocalShops] Starting NotificationThread with Timer of 300 seconds 2011-10-12 23:48:33 [INFO] [LocalShops] Saving All Shops 2011-10-12 23:48:34 [INFO] [LocalShops] Version 3.1.0 is disabled! 2011-10-12 23:48:34 [INFO] [LocalShops][Permission] Permissions (Phoenix) not found. 2011-10-12 23:48:34 [INFO] [LocalShops][Permission] Local Fallback Permissions found: Loaded What do you think?
Hmmm interesting... It's not picking up on bose.... one thing I did notice, is it didn't even say "Bose not found" which leads me to believe I forgot a part of the coding in the class files that does the call to see which one you use. Lemme look into it and I'll see if I can work something out. Edit: yeap that exactly what it was. I forgot to add the call into the economymanager class file >.< my bad. Alright BOSEconomy should be good to go now I believe. I ended up forgetting piece of coding in a class file. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
What permissions system are you using? The reason I ask is I'm using Pex 1.15 and it works just fine.
It was not working but I fiddled around with the modules folder and got it working. Download link for the working jar file: http://dl.dropbox.com/u/38850923/Downloads/LocalShops.jar
I can't get the plugin to work. Every time I type /shop create, select and etc, it says "An internal error has occurred". Running Bukkit 1337 (Though I tried with 1317, save problem). Using PEX for permissions and iConomy 6. Got WorldEdit and ModifyWorld. This is whatever my console prints. Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler 24.10 01:58:22 [Server] SEVERE null 24.10 01:58:22 [Server] INFO [LocalShops] krtshv issued: select 24.10 01:58:19 [Server] INFO ... 13 more 24.10 01:58:19 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 24.10 01:58:19 [Server] INFO at net.centerleft.localshops.commands.ShopCommandExecutor.onCommand(ShopCommandExecutor.java:92) 24.10 01:58:19 [Server] INFO at net.centerleft.localshops.commands.CommandShopCreate.process(CommandShopCreate.java:43) 24.10 01:58:19 [Server] INFO at net.centerleft.localshops.commands.Command.canCreateShop(Command.java:118) 24.10 01:58:19 [Server] INFO at net.centerleft.localshops.commands.Command.canUseCommand(Command.java:100)
not sure why everyone forked LS3. the LS4-dev source still works and builds on our repo btw (I just need to update the cb dl link) - and has been working on 1.8 since Sept.
Seem to be getting this error, running build 1368, on 1.8. at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) 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) Caused by: java.lang.IncompatibleClassChangeError: Expecting non-static method ru.tehkode.permissions.bukkit.PermissionsEx.has(Lorg/bukkit/entity/Player;Ljava/lang/StringZ at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.playerHas(Permission_PermissionsEx.java:86) at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.has(Permission_PermissionsEx.java:81) at net.milkbowl.localshops.commands.Command.canUseCommand(Command.java:103) at net.milkbowl.localshops.commands.CommandShopHelp.process(CommandShopHelp.java:42) at net.milkbowl.localshops.commands.ShopCommandExecutor.onCommand(ShopCommandExecutor.java:109) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 13 more
@WalkerCrouse - this is actually an unsupported project that does not have permission to be released (Would need to get it from cereal) as it's not based on the GPL version of LS4 - on top of that it also uses the same name without permissions. http://dev.bukkit.org/server-mods/localshops for the official version.