[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

    MineralMC

    Sounds like BetterShop needs to update their aliases - the /shop stuff can be overridden by other plugins; not entirely sure how it works, but I believe it is on a 'priority' system. If your other plugin has given it's own aliases low priority, they won't take precedence over LocalShops.

    The 'true' LS command is /lshop (and similar), which has been aliased with /shop. Same with /buy and /sell. Speak to the developer of BetterShop and make sure his command aliases are set to take priority over other plugins (although to be honest, he should have a similar alias to /lshop; /bshop or the like - taking a general command like /shop as your own is incredibly bad practice).

    Cereal should be able to explain in a bit more detail, when he gets on.
     
  3. Offline

    cereal

    Based upon the name "BetterShop" the only thread I found was this and it is what I am basing my response from. If it is the wrong thread, let me know and I'll look further into it.

    First of all, recent versions of Bukkit have caused an issue with aliases and shop commands, this is a current Bukkit issue that you'll need to complain to them about. Secondly, BetterShop does not properly use aliases. They use "shop" with aliases to "bettershop". This is backwards. LocalShops provides the command "lshop" with an alias of "shop" to allow our users the ability to properly use our shop with other shops (but only if they're properly coded). Thirdly, if you have to make a choice of a plugin to drop, I would suggest to drop the inactive and out of date plugin, but that's just my instinct speaking.

    While I understand that your frustrated at LocalShops, please understand we did everything we could to allow use of both LocalShops and other shop plugins in the best possible way, however it isn't as simple as you can see given these specific instances were there are command overlapping in very similar plugins.

    The best chance of getting this resolved is talking to the plugin developer of BetterShop to update his plugin and then address this issue specifically.

    Oiy! That stinks and I'm sorry to hear that. However there is one small issue...I can't look into your problem without additional information to understand what really caused this issue. Could you zip the LocalShops folder you currently have and upload it to some website/server/etc ? You could message me directly if you don't want others to see your information (though its not very sensitive in any way).

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

    Kalais

    I like the idea of this plugin, however...
    Using /shop buy or /shop sell should bring up a list. It should NOT buy or sell an item if an item isn't specified! There are WAY too many accidental purchases this way. The way it currently is seems counter productive.

    Can this be changed please?

    For example, to simply add an item for your shop to purchase:

    "/shop add buy <item> <price>"
    - this only gets your item "ready" to be purchased -

    You then have to put:
    "/shop set buy <item> <price>"

    A bit redundant? Can you please remove one of these steps in both the buying and selling categories?
     
  5. Offline

    Meridias561

    And have to type two commands for every time you want to buy or sell something? Seems like alot more work than is needed. Though with the (and I hope I'm not remembering this wrong) addition of the in-progress chest/sign system for localshops, that should cut down on accidental buy/sell too.
     
  6. Offline

    jonathanyan

    My localshops doesn't work! It used to work but now there's some problem with it and i can'ttype any commands like /shop buy diamonds 64 (I have diamonds) and /shop sell etc.
    It used to work but now it doesn't!
     
  7. Offline

    Indyhouse

    Thanks. I zipped up the directory as it was the day I discovered the problem...

    http://www.sendspace.com/file/r5ok8j
     
  8. Offline

    cereal

    I loaded your shop files in Version 3.1.0 and they properly converted. Delete your shops folder, rename shops-converted to shops and give it another try using Version 3.1.0 and let us know how it goes.

    You did not provide us with enough information to allow us to help you fix the problem! While we would love to help, we also can't use our super human powers to look into the issue without any access! Please read the first post and specifically the section titled "Got Issues or Problems?".

    I'm not really certain what your talking about. The /shop add command states that it does the following:
    • /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.
    Am I missing something?

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

    Eugen

    How do you put a redstone repeater on sale?
    "/shop set sell redstone repeater 1" sets price for redstone ore
    "/shop set sell repeater 1" says "item was not found"

    CB 798
    LocalShops 3.1.0
    iConomy 5.0.1
    Permissions 2.7.4
     
  10. Offline

    FabianN

    Wounderful, thanks for the explination. I'll let the devs know.

    B-Shop is still quite active and does get updates on the github page, they just haven't updated the forum post in forever, so hopefully they'll put in a fix quick.

    I just really don't want to re-build the global shop again, but yea, I can't in good mind keep a poorly coded plugin if it's causing problems. Hopefully I won't have to and LocalShops will just be disabled for a couple days.

    And thanks a ton on the work you've done to keep this plugin up to date.
     
  11. Offline

    Kalais

    Type the following in:
    "/shop add buy Dirt 0.01"
    It literally makes you have to type it in again but in a different format:
    "/shop set buy Dirt 0.01"
    The same goes for selling. It's redundant. Can this be fixed?


    Also, something you must have missed from my post:
    "Using /shop buy or /shop sell should bring up a list. It should NOT buy or sell an item if an item isn't specified! There are WAY too many accidental purchases this way." - This really needs looked into for a more streamlined way of adding things to sell or buy, please.


     
  12. Offline

    cereal

    By design /shop add [itemname] <quantity> is the command and an example would be:
    /shop add Dirt 64
    This only adds 64 dirt to your inventory. I do not comprehend where you got the information you quoted in your post as it is not referenced in this thread as an available command, as such you are never setting the price for Dirt in the add command.

    The command /shop set buy Dirt 0.01 is the command to specify the purchase price of dirt for the specific shop and not adding a quantity of Dirt from your inventory.

    As far as /shop buy and /shop sell, it was always meant to be a convenience for our users who would likely have to type commands repeatedly. This is by desgin. I would suggest education as part of your efforts on the server. Our goal is to allow a limited number of refunds, but its a goal and there is no timeline.

    Please review the 1st post as it contains quite a bit of information that will greatly help you.
     
  13. Offline

    Sleaker

    Yah I've been working double time to get globalshop and dynamic prices into localshops for those of you that need a global option but still want players to have local access. Currently going through full testing after we've re-written a bunch of the code, so hopefully it'll be back to stable quickly.
     
  14. Offline

    xlilcasper

    Could you clean up the log file a little bit? It's really hard to parse the log file in the current format.
     
  15. Offline

    cereal

    The transactions.log file?
     
  16. Offline

    Jaker232

    I get an error..

    Show Spoiler

    2011-05-25 18:18:29 [WARNING] [LocalShops] FATAL: No economic plugins found, please refer to the documentation.
    2011-05-25 18:18:29 [INFO] [LocalShops] Saving All Shops
    2011-05-25 18:18:30 [INFO] [LocalShops] Version 3.1.0 is disabled!
    2011-05-25 18:18:30 [SEVERE] Error occurred while enabling LocalShops v3.1.0 (Is it up to date?): Plugin attempted to register PLUGIN_ENABLE while not enabled
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register PLUGIN_ENABLE while not enabled
    at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:346)
    at net.centerleft.localshops.modules.permission.plugins.Permission_Permissions.<init>(Permission_Permissions.java:29)
    at net.centerleft.localshops.modules.permission.PermissionManager.load(PermissionManager.java:28)
    at net.centerleft.localshops.LocalShops.onEnable(LocalShops.java:125)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:132)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:110)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:265)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-25 18:18:30


    I'm running with iConomy 5, so I guess that's out of date, too.

    SPEC:

    OS = Windows XP
    Bits = 64x
     
  17. Offline

    cereal

    Please attach server.log to your response so I can see what is going on. All I know is that the plugin says you aren't running economy plugins, unless I have a log I'd have to believe it.
     
  18. Offline

    Jaker232

    Ehh.. it's over 100kb, and full of server info. But, oh well, I'll get it up.
    EDIT: Scroll all the way to the bottom. You'll see the error.
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  19. Offline

    cereal

     
    Last edited by a moderator: Dec 14, 2016
  20. Offline

    Jaker232

    Wow, that caused it?
    I better get fixing. Thanks for helping me out!
     
  21. Offline

    Qanthelas

    EDIT: OK, I figured this out. Basically, if you set the bundle size to 0 it will error out (and the logs will show an error in java about "/ by zero".) Consider this post as something to help someone else who might run in to this error and hopefully they can find this post and figure it out :) Also, you might consider adding a check to see if the bundle size is set to 0 (and warn the user that this will cause an error or make them pick another number or something.)

    I've got a bug that has me stumped. In short, I can sell one item to a shop but not another item. Someone on my server set up a shop. He has Cobblestone and Seeds for sale, Cobblestone for 10 coins and Seeds for 0.25 coins. I can sell Cobblestone to his shop and everything works fine. When I try to sell Seeds to his shop, I get (in the chat area in game, in red text) "An internal error occurred while attempting to perform this command."

    He has Seeds for sale at 1 coin each and I can buy them without any problems. Here's some more info to help shed some light on this:

    Craftbukking version: 766
    Permissions version: 2.7.3
    LocalShops version: 3.1.0
    iConomy version: 5.01

    Here are the server logs. I rebooted my server (just to see if that would fix it) and then sold 1 Cobblestone then tried to sell some seeds.

    Code:
    2011-05-25 21:04:14 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-g5ee3f0f-b766jnks (MC: 1.5_02)
    2011-05-25 21:04:14 [INFO] Preparing level "PhoenixRealms"
    2011-05-25 21:04:14 [INFO] Preparing start region
    2011-05-25 21:04:15 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-05-25 21:04:15 [SEVERE] ebean.properties not found
    2011-05-25 21:04:15 [INFO] DataSourcePool [PreciousStones] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-05-25 21:04:15 [INFO] DatabasePlatform name:PreciousStones platform:mysql
    2011-05-25 21:04:16 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-05-25 21:04:18 [INFO] Entities enhanced[0] subclassed[6]
    2011-05-25 21:04:19 [INFO] CommandBook 1.5.1 enabled.
    2011-05-25 21:04:19 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-05-25 21:04:19 [INFO] CommandBook: 2 kit(s) loaded.
    2011-05-25 21:04:19 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-25 21:04:20 [INFO] [HeroChat] HeroChat version 4.10.3 enabled.
    2011-05-25 21:04:20 [INFO] [iConomy] Logging is currently disabled.
    2011-05-25 21:04:20 [INFO] [iConomy] v5.01 (Eruanna) loaded.
    2011-05-25 21:04:20 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-05-25 21:04:20 [INFO] [LocalShops] Loaded with 3 shop(s)
    2011-05-25 21:04:20 [INFO] [LocalShops] Version 3.1.0 is enabled: f764edab-ea77-4788-8fd3-09cc9a92cf2b
    2011-05-25 21:04:20 [INFO] [LocalShops] Starting NotificationThread with Timer of 300 seconds
    2011-05-25 21:04:20 [INFO] [LocalShops][Economy] BOSEconomy not found.
    2011-05-25 21:04:20 [INFO] [LocalShops][Economy] Essentials Economy not found.
    2011-05-25 21:04:20 [INFO] [LocalShops][Economy] iConomy 4 not found.
    2011-05-25 21:04:20 [INFO] [LocalShops][Economy] iConomy 5 hooked.
    2011-05-25 21:04:20 [INFO] [LocalShops][Economy] iConomy 5 found: Loaded
    2011-05-25 21:04:20 [INFO] [LocalShops][Permission] Permissions (Phoenix) found: Waiting
    2011-05-25 21:04:20 [INFO] [LocalShops][Permission] Local Fallback Permissions found: Loaded
    2011-05-25 21:04:20 [INFO] [mcMMO] Permissions enabled.
    2011-05-25 21:04:20 [INFO] mcMMO version 1.0.07 is enabled!
    2011-05-25 21:04:20 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    2011-05-25 21:04:20 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-25 21:04:20 [INFO] [HeroChat] Permissions 2.7.3 found.
    2011-05-25 21:04:20 [INFO] [iConomy] hooked into Permissions.
    2011-05-25 21:04:20 [INFO] [LocalShops][Permission] Permissions (Phoenix) hooked.
    2011-05-25 21:04:20 [INFO] [PreciousStones] version 4.2.1 loaded
    2011-05-25 21:04:21 [INFO] [PreciousStones] PhoenixRealms fields: 692
    2011-05-25 21:04:21 [INFO] [PreciousStones] PhoenixRealms unbreakables: 41
    2011-05-25 21:04:21 [INFO] [Runecraft] Rune blacklist with 13 runes loaded.
    2011-05-25 21:04:21 [INFO] [Runecraft] Loaded:
    2011-05-25 21:04:21 [INFO] [Runecraft]  - 20 waypoints, 26 teleporters
    2011-05-25 21:04:21 [INFO] [Runecraft]  - 2 position runes
    2011-05-25 21:04:21 [INFO] [Runecraft]  - 0 rune pads
    2011-05-25 21:04:21 [INFO] [Runecraft]  - 1 player data sets
    2011-05-25 21:04:21 [INFO] [Runecraft]  - 20 block runes
    2011-05-25 21:04:21 [INFO] [Runecraft] World 'PhoenixRealms': id 0.
    2011-05-25 21:04:21 [INFO] [Runecraft] Runecraft 2.5.2 initialized.
    2011-05-25 21:04:21 [INFO] Runecraft plugin version 0.3 is enabled!
    2011-05-25 21:04:21 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
    2011-05-25 21:04:21 [INFO] [Towny] Using: Permissions, iConomy
    2011-05-25 21:04:21 [INFO] [Towny] Version: 0.67 - Mod Enabled
    2011-05-25 21:04:21 [INFO] [VirtualChest] (version 3.7.2)
    2011-05-25 21:04:21 [INFO] [VirtualChest] Chests loaded !
    2011-05-25 21:04:21 [INFO] [VirtualChest] Successfully linked with Permissions.
    2011-05-25 21:04:21 [INFO] [VirtualChest] Successfully linked with iConomy.
    2011-05-25 21:04:21 [INFO] [VirtualChest] Successfully linked with mcMMO.
    2011-05-25 21:04:21 [INFO] Whitelist: Trying to load whitelist and settings...
    2011-05-25 21:04:21 [INFO] done.
    2011-05-25 21:04:21 [INFO] Whitelist version 2.7 is enabled!
    2011-05-25 21:04:21 [INFO] WorldEdit 4.4 enabled.
    2011-05-25 21:04:21 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-05-25 21:04:21 [INFO] Done (0.763s)! For help, type "help" or "?"
    2011-05-25 21:04:23 [INFO] Whitelist: Player Qanthelas is trying to join...
    2011-05-25 21:04:23 [INFO] allow!
    2011-05-25 21:04:23 [INFO] Qanthelas [IPWasHere] logged in with entity id 42
    2011-05-25 21:04:23 [INFO] CommandBook: No intro.mid; not playing intro song.
    2011-05-25 21:04:34 [INFO] [LocalShops] Qanthelas issued: sell cobblestone 1
    2011-05-25 21:04:34 [INFO] From: SegmentFault, To: Qanthelas, Cost: 10.000000
    2011-05-25 21:04:34 [INFO] PlayerFrom: SegmentFault balanceFrom: 270.0 PlayerTo: Qanthelas balanceTo: 1090.0 Cost: 10.0
    2011-05-25 21:04:38 [INFO] [LocalShops] Qanthelas issued: sell seeds 4
    2011-05-25 21:04:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'lshop' in plugin LocalShops v3.1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ArithmeticException: / by zero
        at net.centerleft.localshops.commands.CommandShopSell.shopSell(CommandShopSell.java:304)
        at net.centerleft.localshops.commands.CommandShopSell.process(CommandShopSell.java:225)
        at net.centerleft.localshops.commands.ShopCommandExecutor.onCommand(ShopCommandExecutor.java:92)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    2011-05-25 21:04:43 [INFO] [LocalShops] Qanthelas issued: sell seeds 4
    2011-05-25 21:04:43 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v3.1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ArithmeticException: / by zero
        at net.centerleft.localshops.commands.CommandShopSell.shopSell(CommandShopSell.java:304)
        at net.centerleft.localshops.commands.CommandShopSell.process(CommandShopSell.java:225)
        at net.centerleft.localshops.commands.ShopCommandExecutor.onCommand(ShopCommandExecutor.java:92)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    Note that I removed some IP address info from the log but otherwise that's what there is. As you can see, I tried the sell command with both /lshop and /shop but neither one worked. When I looked around on the Bukkit forums here for other issues that give the "An internal error occurred..." error, I found that often they had to do with a different java error (like having two commands trying to use the same /command name.) I could not find any others with this "Caused by: java.lang.ArithmeticException: / by zero" error in the log (and I think it is this one that is biting us.)

    Here is the .shop file for the shop in question:

    Code:
    #LocalShops Config Version 2.0
    #Wed May 25 21:07:08 CDT 2011
    282\:0=20.000000\:1,0.000000\:1,7\:0
    287\:0=10.000000\:1,0.000000\:1,1536\:0
    295\:0=1.000000\:1,0.250000\:0,884\:0
    297\:0=0.000000\:1,0.000000\:1,65\:0
    324\:0=0.000000\:1,0.000000\:1,5\:0
    351\:4=0.000000\:1,0.000000\:1,64\:0
    357\:0=0.000000\:1,0.000000\:1,80\:0
    35\:0=0.000000\:1,0.000000\:1,32\:0
    4\:0=10.000000\:1,10.000000\:1,61\:0
    86\:0=0.000000\:1,0.000000\:1,41\:0
    config-version=2.0
    creator=SegmentFault
    locationA=-1055, 70, -85
    locationB=-1045, 73, -75
    managers=
    min-balance=0.0
    name=SegFault's General Store
    notification=true
    owner=SegmentFault
    unlimited-money=false
    unlimited-stock=false
    uuid=b170c945-a140-4fcc-9675-58e9b33afcb4
    world=PhoenixRealms
    Thanks for keeping up this awesome plugin and let me know if there's any other info I can get for you on this little mystery bug :)

    EDIT: As I look at it, I've noticed something - the line for seeds "295\:0=1.000000\:1,0.250000\:0,884\:0" is the only one with a 0 in front of what I think is the stock number (in this case, 884) - all the others have a 1 there. What does that 0 mean? Is that the 0 that is giving the "/ by zero" error?
     
  22. Offline

    cereal

  23. Offline

    Samkio

    Just had to say great plugin. :)
    Installed it on my server and went down a treat my users love it!
    Keep up the great work.
    Many Thanks
    Samkio :D
     
  24. Offline

    cereal

    Don't worry, we've got plenty of features that you'll love in the coming versions!
     
    Samkio likes this.
  25. Offline

    Daniel Few

    @cereal
    Umm, am i doing something wrong?
    I've used
    Then when I use:
    It says:
    Do you know why this is?
    -DanJames

    EDIT: I'm admin with -'*'
     
  26. Offline

    Sleaker

    @Daniel Few

    /shop set is from shops perspective - /shop browse is from players. If you set a shop to BUY an item. then a player can see it with /shop browse SELL

    /shop browse buy/sell is going to get changed to show both prices with just /shop browse soon to alleviate some of this confusion.
     
  27. Offline

    Daniel Few

    @Sleaker
    Lol knew i was making a stupid mistake. Im selling not buying haha.
    Thanks alot!
    -DanJames
     
  28. Offline

    xlilcasper

    Yes, I'm trying to parse it using regex to throw it into a csv file so I can do filtering and such. 1 transaction takes up multiple lines. If a person buys/sells more then a stack of items it puts in lines for each stack (items: 63) instead of just showing the grand total of what they sold.

    Ideally 1 transaction would be 1 line in the log file. This makes it easy to read and to parse. Right now it's hard to make heads or tails of what is going on.
     
  29. Offline

    cereal

    While I agree with you entirely, I'm not certain we'll get it into the next version (we're trying to get out features finished lol). Please add this to our issues tracker! It helps having other people involved. https://github.com/MilkBukkit/LocalShops/issues
     
  30. Offline

    Geuthur

    I have a problem my english is bad but

    i Found a Bug for this Plugin

    When you have -1000 money and you buy on a shop you can buy at same you have +1000 money

    i hope this fix soon :)

    sry for my bad english
     
  31. Offline

    Sleaker

    How can you have -1000 money?
     
Thread Status:
Not open for further replies.

Share This Page