[INACTIVE][ECON] LocalShops v3.1.1 (Fifth Avenue) - Economy Based Player Shops [935]

Discussion in 'Inactive/Unsupported Plugins' started by cereal, May 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    cereal

    LocalShops
    Economy Based Player Shops

    Version: 3.1.1 (Fifth Avenue)

    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!
    Download LocalShops (JAR)
    Source Code
    Issue Tracker (Bug Reports & Feature Requests)

    Requirements:
    Got Issues or Problems?

    We're happy to help with any issues or problems you may have, but please help us as we make every effort to help you! If you're experiencing errors, or funkiness please do the following:
    1. Verify that your versions meet the requirements in the Requirements Section
    2. You can reproduce the bug
    3. Use kind words in your post!
    Awesome, now in the post please include the following information:

    • Version of Bukkit
    • Version of LocalShops
    • Version of Permissions
    • Which Economic Plugin you are using (and version number)
    • Description of issue, error, or shenanigan
    • Steps to reproduce issue, error, or shenanigan
    • Log files (as much as you can provide the better)
    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 :()

    Reporting:

    LocalShops reports minimal anonymous data to provide general usage tracking. No personal or server information is ever transmitted. The following data is provided:
    • Plugin Name (this will always be LocalShops)
    • Plugin Version
    • Bukkit Version (the full Bukkit version string)
    • Operating System
      • Name
      • Version
      • Architecture
    • Java Version
    This data helps us understand the environments in which LocalShops is used within, however you are more than welcome to disable it by setting "report-stats" in the configuration file to false.


    Internet Relay Chat:
    We idle on EsperNet! Come join us (along with pretty much the rest of the Bukkit crew).
    • Server: irc.esper.net
    • Port: 6667
    • Channel: #localshops
    Credits / LocalShops Team:
    Please do not send support messages directly to any of us. While we appreciate your desire to solve problems or get answers, it isn't appropriate and our answers could easily help others!
    Changelog:

    Version 3.1.1
    • Fix detection of BOSEconomy
    • Fix "/shop buy all" not properly functioning
    Version 3.1.0
    • Out of Beta!
    • Features:
      • Permissions updated, is not mandatory
        • Will only restrict admin commands to ops without Permissions
      • Sorting of /shop browse and /shop list
      • New command: /shop find
        • Used to find nearby shops that sell an item
      • Transaction notification for shop owners
    • Bug Fixes:
      • Economy sanity checks
      • /shop select Message clarify usage (bare hands)
      • Sanity checks on corrupt shop files
      • /shop sell all now sells all items instead of a single stack
      • Refactored Commands (now each in their own class)
      • Remove players from memory on PLAYER_KICK and PLAYER_QUIT events
      • Notification for insufficient funds
      • Owner & creator information is now shown in /shop info for all situations
      • Match criteria updated
        • Wool, Cactus Green, Cactus, Glowstone Dust
    Version 3.0.3-Beta
    • Fixed money exploit
    • Fix typo on selling or buying 0 items
    • Redstone Dust match criteria updated
    • Soul Sand match criteria updated
    View all changes here!

    Configuration File:
    The configuration file for LocalShops is located at plugins/LocalShops/localshops.properties and can easily be modified. See the following information about each variable and its purpose and valid values.
    • uuid=Random
      • Used for reporting.
    • debug=false
      • Value can be true or false. If true, logs verbose debugging information to console.
    • shops-per-player=-1
      • Maximum number of shops each player can have, unlimited is -1.
    • report-stats=true
      • Value can be true or false. If true, anonymous information will be collected, see Reporting section.
    • log-transactions=true
      • Value can be true or false. If true, logs transactions.
    • max-damage=35
      • Maximum damage percentage an item can have to be added to a shop (it will be sold repaired). Default is 35 (or, 65% or more of the 'health' of the item is remaining).
    • charge-for-shop=true
      • Enables charging for creating & moving shops.
    • shop-cost=100
      • Cost of creating a shop.
    • move-cost=100
      • Cost of moving a shop.
    • shop-height=3
      • Default shop height.
    • shop-width=10
      • Default shop width.
    • max-height=10
      • Maximum shop height.
    • max-width=30
      • Maximum shop width.
    • shop-notification=true
      • If true, shop transaction notices will occur. Note: this is a global configuration!
    • shop-notification-timer=300
      • Number of seconds between transaction notifications, default is 5 minutes.
    • shop-transaction-max-size=100
      • Maximum number of transactions that a store will store for notification purposes. Limited to 100 by default to prevent infinite memory usage.
    • search-max-distance=150
      • Maximum number of meters away from a player to include in shop find results (should be renamed to find-max-distance and will likely happen in the near future).
    BOSEconomy Support:
    BOSEconomy does not provide support for major or minor values and ONLY supports whole numbers. The result is that all orders are rounded up to the next whole number to ensure that the Shop Owners obtain the proper monetary value. Here are some examples:
    • Stone selling for 1.30 each...
      • A player purchases 1 and the total price is 1.30 and is thus rounded to 2 (we goto the next whole number, there is NO rounding down)
      • A player purchases 100 and the total price is 130 and thus there is no rounding to do.
    How to enable Debugging & Obtain the Logs:
    1. Locate the LocalShops properties file, it is located in the folder "plugins/LocalShops/" and is named "localshops.properties".
    2. Find the line that starts with "debug=" and set the value (portion after the equals) to true.
      1. You should now have "debug=true"
    3. Remove your old server logs (we will want a fresh slate to start with). The server log is "server.log", either delete it or move/rename it.
    4. Start the Bukkit, and perform the actions to cause the error.
    5. Stop Bukkit.
    6. Locate "server.log" in the Bukkit main directory and attach it to your forum post!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
    Thumbz, Mitsugaru, Stalker and 9 others like this.
  2. Offline

    tom

    This plugin is getting dropped?
     
  3. Offline

    kahlilnc

    IDK
     
  4. Offline

    XZeenon

    @cereal
    When I try to sell items, I get this error message. And in the chat log I get "An internal server error occured."
    Code:
    19:04:52 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop
    ' in plugin LocalShops v3.1.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    52)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:737)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
            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:89)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArithmeticException: / by zero
            at net.centerleft.localshops.commands.CommandShopSell.shopSell(CommandSh
    opSell.java:304)
            at net.centerleft.localshops.commands.CommandShopSell.process(CommandSho
    pSell.java:225)
            at net.centerleft.localshops.commands.ShopCommandExecutor.onCommand(Shop
    CommandExecutor.java:92)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    How do I fix that?
     
  5. Offline

    Buckethead

    workin in 1060?
     
  6. Offline

    m00t

    The option destroy the shop - can a person with this permission enabled destroy any shop or just their own? Also with add/remove items?
     
  7. Offline

    XZeenon

    I don't think this is working in 1060. I get a lot of NULL errors in the console when people try commands.
    THIS PLUGIN IS CURRENTLY OUTDATED.
     
  8. Offline

    cereal

    Really? You posted a single error and then put some caps lock love on the thread? Its more likely you have some fringe case that is causing the error. While inside the shop type "/shop debug", then buy something that will cause the error, then upload the FULL server log.

    Admins can destroy any shop, otherwise its only your own.

    No, but I've been busy.

    Post these on our Github Issues page please! It would be a shame if they got lost in the massive numbers of replies on this thread!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
    findyourexit likes this.
  9. Offline

    Boots01

    I just tried the issue tracker in the OP and it sent me to a 404 error.

    I love this plugin and so do my players, but we really need shears, pistons and sticky pistons added to it!

    Cheers adn keep up the good work!

    -Boots
     
  10. Offline

    Thomas Carlsen

    Maybe a option to make LocalShop stop updating ever single Shop file as it does now
    Code:
    -#Sun Aug 28 04:01:02 BST 2011
    +#Mon Aug 29 04:01:02 BST 2011
    I use github as a backup and ever single day the commit is "spammed" with localshop files change, and most of them is just a date change. is this really nessesary for the plugin?
    and option to turn this of would be lovely :) thx
     
  11. Offline

    cereal

    It will be extremely unlikely we will bother. You are more than welcome to submit a pull request on the LocalShops repository to fix this.
     
  12. Offline

    grandwazir

    Will there be the option to keep using slash commands in the new version? I really dislike sign solutions as they clutter up the game world.
     
    kahlilnc likes this.
  13. Offline

    AS1LV3RN1NJA

    One of my players just suggested being able to define and sell "kits" of items. Would this be possible?
     
  14. Offline

    kahlilnc

    There is a way to support it now :D that I have heard :D
     
  15. Offline

    ZenithV

    Is there a version for Craftbukkit 1060?
     
  16. Offline

    McAndze

    Removed by request.
     
  17. Offline

    Sleaker

    Please don't post alternative downloads to LocalShops/alternative versions. If you'd like to contribute please submit a pull request with the additions onto the MilkBowl repository. It's nothing against you, it's just so we can verify the code that's being added with our names on it and subsequently have to support.
     
  18. Offline

    McAndze

    No problem, I totally understand that. It was not really any effort either, so I don't think it's worthy for a submit. I'll just keep it to myself for now :)

    - McAndze
     
  19. Offline

    Stormbow

    Version of Bukkit: 1000
    Version of LocalShops: 3.1.1
    Version of Permissions: 3.1.5
    Which Economic Plugin you are using (and version number): Iconomy 5.01
    Description of issue, error, or shenanigan: When attempting to select a shop area, I always get "Problem with selection. Max size is __x__x__" after I select an area and type /shop create name. Even if 30x30x30 is the max size, my 8x5x8 shops can not be created.
    Steps to reproduce issue, error, or shenanigan:
    1. Type /shop select
    2. left clicked a corner of the shop on the ground
    3. right click the top corner opposite (catty corner) the ground mark
    4. type /shop create name
    5. error is produced, no shop is created.
    Log files (as much as you can provide the better): No errors in the server window, only shows in-game. Here's the config I was last trying to use. (Many, many, many settings changed as I was trying to find out why I can't make an 8x5x8 shop. (8 wide, 5 tall, 8 deep)

    Code:
    #Minecraft Properties File
    #Minecraft Properties File
    #Tue Sep 13 00:05:11 MST 2011
    uuid=68911ac6-34d1-4cc5-98e6-8c33985a39ae
    debug=false
    shops-per-player=1
    report-stats=true
    log-transactions=true
    max-damage=5
    charge-for-shop=true
    max-height=30
    search-max-distance=250
    shop-notification=true
    move-cost=10.0
    max-width=30
    shop-height=5
    shop-notification-timer=300
    shop-width=5
    shop-cost=50000.0
    shop-transaction-max-size=100

    Any ideas why this isn't working for me?
     
  20. Offline

    Saxburger

    Here's the config I was last trying to use. (Many, many, many settings changed as I was trying to find out why I can't make an 8x5x8 shop. (8 wide, 5 tall, 8 deep)

    Code:
    #Minecraft Properties File
    #Minecraft Properties File
    #Tue Sep 13 00:05:11 MST 2011
    uuid=68911ac6-34d1-4cc5-98e6-8c33985a39ae
    debug=false
    shops-per-player=1
    report-stats=true
    log-transactions=true
    max-damage=5
    charge-for-shop=true
    max-height=30
    search-max-distance=250
    shop-notification=true
    move-cost=10.0
    max-width=30
    shop-height=5
    shop-notification-timer=300
    shop-width=5
    [COLOR=rgb(255, 0, 0)]shop-width=5[/COLOR]
    shop-cost=50000.0
    shop-transaction-max-size=100

    Any ideas why this isn't working for me?

    8 Wide and 8 Deep shop, but config file has [shop-width=5]. I don't know for sure, but this looks like a place to start.

    I am working on an Excel spreadsheet that has a pre-configured pricing structure for shop items. It makes pricing easier and more realistic (for minecraft, not the real world). It creates a LocalShops config file (.shop) that can be read by LocalShops (stock all items in a snap :) ). It is NOT a plugin, but I saw an earlier post asking people not to upload alternative here, but said something about a "milk bowl repository"? Don't know what that is, or if any one is interested for that matter. Great plugin btw.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  21. Offline

    Stormbow

    When I had all of those values set to 30, it still gave me the error, claiming "Problem with selection. Max size is 30x30x30" even though I had only selected the 8x5x8 area.
     
  22. Offline

    Stormbow

    I guess this plugin just isn't compatible with 1000.

    =/
     
  23. Offline

    Saxburger

    Try altering the shop config file manually. Where (y=height):
    locationA=x, y, z
    locationB=x, y, z

    Set:
    Ax = Bx + 8
    Az = Bz + 8

    e.g.
    I wanted to have a shop that has height of 4, width and depth of 10. I did not get an error when tested, but it would not grant me the width and depth I was looking for (only a 5 x 5 square).
    The config file dimensions for my shop where:

    locationA=86, 63, -201 (this is where my left-mouse wooden shovel hit)
    locationB=90, 66, -197 (not even close)

    so, 90 - 86 = 5, -197 - -201 = 5 (hence, my 5x5 square)

    I changed the config file manually to:

    locationA=86, 63, -201
    locationB=95, 66, -192

    so, 95 - 86 = 10, -192 - -201 = 10 (a 10x10 square)

    Thinking that this should work, I immediately went to test this and... beta 1.7.3 updated to beta 1.8, and all of a sudden I had other things on my mind.

    When Bukkit 1.8 comes out, I'll give it a try myself. Until then...
     
  24. Offline

    astrorider1

    I found out you cant add pistons to a shop, or it it just the server im on?
     
  25. Offline

    Stormbow

    I'll try manually editing a shop.

    As for Pistons, with as outdated as this plugin is (and how long the dev has been absent), I'd say it's the plugin's fault pistons couldn't be added.
     
  26. Offline

    AndyFox42

    Doesn't seem to recognize iConomy 6
     
  27. Offline

    Saxburger

    Does not recognize:
    -pistons
    -sticky pistons
    -gold record
    -green record
    -map

    Found this out when my auto config writer for local shops generated errors for these items. Removed them from the config generator... and works nicely now.
     
  28. Offline

    ScottieBurke

    Sorry to be a bother, but when do you reckon the 1.8 items will be supported?
    For instance, Cooked chickens.
     
  29. Offline

    mixxit

  30. Offline

    Teddeh

    Well I'm running Bukkit 1.8 and its giving me internal error..
     
  31. Offline

    derJones

    Just nothing happens wenn i type /shop or /shop list or /shop create test...
    is there an upcoming update?
     
Thread Status:
Not open for further replies.

Share This Page