[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

    Killie01

  3. Offline

    specialspam

    Hi, Im running localshops with iconomy, it was working fine, but since minecraft 1.6 when players sell items they dont get paid for it. I realise its probably to do with 1.6 but could it be a simple fix? the error users see is: Error listener already listening.

    Thanks for an awesome plugin though!
     
  4. Offline

    vasil7112

    Can we sell items for gold with that?
    Or only money?
     
  5. Offline

    Sleaker

    @vasil7112 - it interfaces with whatever economy plugin you have running.

    @specialspam - we haven't done any testing on 1.6 as it has not bukkit RB yet. because of all the changes from the current 3.1 to what we have in progress it's not really possible to just put up a quick fix for 1.6.
     
  6. Offline

    CoolJosh3k

    Quick question:

    Does LocalShops handle damage value blocks?

    For example can coloured dyes be bought and sold?
    Another example: if you attempt to buy an Iron Pick while holding a already damaged one, do you get a new one or a second damaged one?
     
  7. Offline

    Killie01

    yes, and a new one
     
  8. Offline

    cereal

    There is a maximum allowed damage configuration setting to limit or disable abuse.
     
  9. Offline

    CoolJosh3k

    Not sure what you mean...
     
  10. Offline

    Dabbu

    I am having a problem getting localshops to detect the BOSEconomy mod we are using. It looks like localshops is loading and failing before BOSEconomy finishes loading. See my attached logs.

    We are still using the 1.5 Minecraft and bukkit wrapper 803.

    Thanks,
    Dabbu
     
  11. Offline

    thepackett

    will this be updated for 1.6?
     
  12. Offline

    Dabbu

    Ok, I loaded the XPM mod which lets me reload plugins. And when I reload the LocalShops plugin, it fails to detect the BOSEconomy plugin. I know the BOSEconomy is installed and working correctly, all the /econ commands work. And the other econ plugins that use the economy are working correctly. I am using BosEconomy 0.6.2, the last updated version of it.
     
  13. Offline

    cereal

    Yes, when there is a recommended build it will absolutely be ready for 1.6, there should be no bukkit changes that will affect LocalShops between 1.5 and 1.6 so any issues your seeing are likely not with LocalShops but a larger problem.

    While loading LocalShops attempts to load the libraries (which if provided are within the class path and as such are able to be loaded). Because of some way that XPM mod is loading LocalShops it seems to be causing a limitation of the available libraries to the plugin. We'll look into it but we cannot guarantee that the XPM mod (which I've never personally used) is even properly loading or not. What has the author of XPM mod said?

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

    Dabbu

    No, it's not XPM. I used that just load the LocalShops plugin after the server started and I knew the BOSEconomy plugin was fully loaded and working. I think the problem is the LocalShops can't detect that I have the BOSeconomy plugin. It does the exact same error on startup as it does when i try to reload it by itself after the server is running. See my first post above for the server logs and error messages.
     
  15. Offline

    cereal

    My bad, please download Version 3.1.1 which contains a fix for this. Apparently your the only one who noticed!

    Released Version 3.1.1 that addresses both a few small bugs! Please see the changelog for additional details! If you like LocalShops Version 3.1.1, link our posts as a sign of gratitude!

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

    Dabbu

    I don't think the JAR download link is pointed to the new 3.1.1 version, i'm still getting the 3.1.0 version from the link.
     
  17. Offline

    Elvis

    I cant figure what max damage is for i read your post still cant understand it
     
  18. Offline

    Sleaker

    He meant that you can make it so people can't put items up that are overly damaged (such as picks that are more than half damaged etc) - other than that all items are available (except 1.6 items)
     
  19. Offline

    cereal

    Others have downloaded it already so I'm not sure what's going on. Try downloading again and if it still doesn't work clear all you browser cache objects or use another computer.
     
  20. Offline

    Elvis

    thanks
     
  21. Offline

    Dabbu

    Awesome, thanks for all the help. I was able to download the 3.1.1 version and install it on my server. It does detect the BOSEconomy now and is working great. I spent a few days playing around with the mod and letting my players bang on it. And everyone is happy it works, this really helps a player economy evolve.

    One question, is there any future plan to add the ability to force save the shop config file, and then allow for a reload of it. This would let me manually edit the shop config file and reload it back into the game with the new settings. Why do we want to do this? I have placed some server owned shops that have a specific price list of what they buy and sell. FOr setup and changes to them, it would be nice to just use cut and paste to the config file instead of manually typing in all the items and prices in game.
     
  22. Offline

    CoolJosh3k

    Considering moving from icShop to this plugin.

    2 quick things:

    a. How soon will the global shop feature be implemented? This is a must. I presume it will be in the next release, so far from what I have read.

    b. Is there an easy way to migrate from the icShop database files, or does one have to start the shops anew?
     
  23. Offline

    Darkenvy

    IS this a normal name for a shop? It used to be called "armor.shop" or a variant of that
    6c4de945-90a2-4c23-b07a-4905089610f8.shop

    oh also is this normal?
    http://pastebin.com/CnfBtCMn
    I edit my shops in the text editor. Its just 1m times easier for me but now all these decimals and slashes. It looks like an error of some sort but I'm probably wrong. I gotta be honest i'm a little intimidated. lol

    Oh also do each individual store now have a balance? I've been using my account as the money holder for our entire economy. Is this phased out?

    Oh more importantly, I noticed I get alerted on every transaction. Its not fun having my screen filled with these logs ><. So much change at once I feel like I jumped into another country here.

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

    CoolJosh3k

    Looks normal to me, at least as far as I would expect from a txt database file.

    That string of hex digits would be the shop id.
     
  25. Offline

    Oppus

    Hi,
    I just upgraded to v3, and am having a problem with the locations of the upgraded shops being off by one on the z axis. For instance, a shop with these coords in the .shop file:
    locationA=246, 63, -84
    locationB=248, 66, -82

    is actually active for these coords:
    A: 246, 63, -83
    B=248, 66, -81
     
  26. Offline

    Darkenvy

    I noticed that too oppus. I didn't know why I couldn't go as deep in my shop and the door threshold was a part of the shop. We use commandsigns to use localshops so a good part of the store became unusable.

    @CoolJosh3k
    why change the names to shop IDs? And not it seems that I'm being pushed to use the in game commands to list all the items. Okay okay fair enough but.... "3200.000000" do we need that many decimal places for an item price? I think 3 would suffice for even dirt cheap items. (in 1000 increment spending)
     
  27. Offline

    MeinerHosen

    Adding to the list of repetitive questions, what's keeping localshops from having 818 in the title?

    Such a great plugin must be available immediately ;)
     
  28. Offline

    OrtwinS

    If that is indeed the case for LocalShops 3.1.1 I humbly suggest you put [766&818] in the thread title.
    I do read comments to keep up with the details, but I know many people dont.
    Call them whatever you like, but your title IS your plugin 'promotional banner' in the plugin list.

    If you build good plugins that dont break with every bukkit update its not to much to show that :D
     
  29. Offline

    deadlock989

    Hi, I persuaded the server I'm playing on to switch to this plug-in and we've never looked back, it's just vastly superior to what we had before.

    The most requested feature is a way to check the stock level and prices of a particular item without wading through 6 pages looking for it ... something like /shop stocklevel obsidian or /shop item obsidian?

    Also, we'd love to see a way of checking recent transactions, to see who bought what while we were offline.

    Thanks and keep up the brilliant work!
     
    TheBarkingFrog and AS1LV3RN1NJA like this.
  30. Offline

    Darkenvy

    I want to know if we can get some 'veteran' options in the plugin settings. I know this can be a lot to ask for but stabilizability is what I love about my plugins. :)

    Also shop-notification=true wont turn to false after reloading plugins or rebooting the server. It just switches to true...

    Ide actually like to say that no matter how much I try, I cannot get a setting to take. It just magically switches back to the old setting. Some sort of default lock.

    Also like to add: "/shop sell 268 1" returns "You added 0 Wooden Sword to the shop"
    but: "/shop sell woodensword" or ""/shop sell" returns a successful sale.

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

    TheBarkingFrog

    I second this. For checking stock could be /shop stocklevel (id) as deadlock said, and possibly /shop price (id) for checking prices.
     
Thread Status:
Not open for further replies.

Share This Page