[INACTIVE][ECON] LocalShops - Please Close this Thread

Discussion in 'Inactive/Unsupported Plugins' started by Jonbas, Mar 1, 2011.

  1. Offline

    Jonbas

    LocalShops has moved to a new thread. Please go here.

    Thank you for all of your support and feedback.

    -Jonbas
     
  2. Offline

    Jonbas

    I don't really know what I want to do with this. The bukkit devs have put in place a system that forces me into defining my commands when the plugin is compiled. It has some benefits for the future, where when you choose your plugins, you'll be able to see any compatibility problems.

    But, that still leaves us today with 3 or 4 (or more) plugins currently using the command /shop.

    So far, I've had 2 people request the change. And yourself and me personally not wanting it to change. So, I'd be happy to take feedback on this.
    [MERGETIME="1299905373"][/MERGETIME]
    i completely agree that yaml has its place. That plugin is a great example of the power and simplicity that it can provide.
     
  3. Offline

    Codisimus

    how can this be used to create a server shop so noone gets any money from sales?
    [MERGETIME="1299909767"][/MERGETIME]
    well i figured it out on my own, i set the owner to "Server" so i wouldn't receive any money, and then i set the manager to "Server" so i could remove myself as a manager. that way i couldn't buy for free (and get money from selling to the shop). This worked accept that i get an error, most likely from trying to find a player (Server) that doesn't exsist. no complaints though. hope this helps anyone trying to do the same thing
     
  4. Offline

    Jonbas

    What error are you getting? There shouldn't be any.
     
  5. Offline

    Codisimus

    [​IMG]
     
  6. Offline

    Jonbas

    Ahh, I see what it's doing. Please re-download the plugin when you have time. I just fixed it.
     
  7. Offline

    Codisimus

    thanks that did it, but i came across another issue. when selling an item to the shop i forgot to put how many to sell, its said sumthing like "GoldBlock could not be sold to the shop." it took me a little bit to figure out why. maybe change the message to be more similar to wut it says when you forget to add the amount when buying
     
  8. Offline

    Jonbas

    What was the command that you used? /shop sell can do a few different things. It helps if I know exactly so that I can make it more user friendly.

    While holding the block you want to sell:
    /shop sell
    /shop sell <#>
    /shop sell all

    or you can do:
    /shop sell itemName <#>
    /shop sell itemName all

    Edit: If you get a message that says "Sorry, ShopName is not buying ItemName right now." it could be cased by a few different reasons:

    • the sell price is set to 0
    • the item is not added to the shop yet
    • the shop already has more items than the max stock level
     
  9. Offline

    Mydnyte

    00:46:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.10b
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    at net.centerleft.localshops.Commands.canUseCommand(Commands.java:117)
    at net.centerleft.localshops.Commands.createShop(Commands.java:27)
    at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:159)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    CB 531 / GroupManager 1.0-alpha-5 / Essentials 286 / Just downloaded LocalShops 1.10b
    If you need anything else let me know.

    This error occurs when anybody on the server (including admin) tries any /shop command.

    Edit: Going to try to re-download. :)
    Edit2: Same error. Getting jar from http://dl.dropbox.com/u/16369585/LocalShops/LocalShops.jar
     
  10. Offline

    Codisimus

    /shop list sell
    outputs
    "The shop Cash4Gold is buying: (Page 1 of 1)
    GoldBlock [2500 Coin] [Stock:3]
    GoldIngot [250 Coin] [Stock:0]
    To sell an item on the list type /shop sell ItemName [ammount]"

    /shop sell block
    outputs
    "[Shop] Item GOLD_BLOCK can not be sold to the shop."

    /shop sell
    outputs
    "[Shop] Item GOLD_BLOCK can not be sold to the shop."



    /shop sell block 1
    outputs
    "You sold 1 GoldBlock and gained 2500 Coin"

    EDIT:
    /shop buy block
    outputs
    "Input problem. The format is /shop buy <itemName> <# to buy>"

    This output is much more helpful
     
  11. Offline

    Tathar

    Yeah, I'm curious about this change as well. Wouldn't someone only use one of the plugins that use /shop? For that matter, if it's that essential, why not /store instead?
     
  12. Offline

    unv_annihlator

    I went ahead and made a LocalShops that uses /lshop instead. I sent the Jar and Source files to Jonbas. If you want a copy of it incase Jonbas doesn't use it then just PM me. This SHOULD allow use of other plugins using the same command (Like DynamicMarket). Don't quote me on this though, didn't do much testing.
     
  13. Offline

    _Zw_

    Im doing this, but i just got:

    "item CACTUS can not be sold
    and
    if i do sell Cactus 1

    "You sold 0 Cactus for 0 Coins
     
  14. Offline

    Mydnyte

    Code:
    08:45:27 [INFO] Starting Minecraft server on *:25565
    08:45:27 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    08:45:27 [INFO] Preparing level "world"
    08:45:27 [INFO] Preparing start region
    08:45:28 [INFO] LWC     Loading shared objects
    08:45:28 [INFO] LWC     Native library: plugins/LWC/lib/native/Linux/amd64/libsqlitejdbc.so
    08:45:28 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    08:45:28 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    08:45:28 [INFO] [iConomy] Configuration Integrity Start:
    08:45:28 [INFO]     - System.Database.Cache is null or missing, Defaulting to: true
    08:45:28 [INFO] [iConomy] Configuration Integrity End.
    08:45:29 [INFO] [iConomy] Logging is currently disabled.
    08:45:29 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    08:45:29 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    08:45:29 [INFO] [mcMMO] Permissions enabled.
    08:45:29 [INFO] mcMMO version 0.8.21 is enabled!
    08:45:29 [INFO] §eLoaded Essentials build 2.0.286 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    08:45:29 [INFO] Loaded EssentialsChat build 2.0.286 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    08:45:29 [INFO] LocalShops: iConomy found.
    08:45:29 [INFO] LocalShops: Loading shop TNT-World
    08:45:29 [INFO] LocalShops: Loading shop CommunityChest
    08:45:29 [INFO] LocalShops: Loading shop The-Galley
    08:45:29 [INFO] LocalShops: Loading shop Fizengard-Lumber
    08:45:29 [INFO] LocalShops: Loaded 4 shop(s).
    08:45:29 [INFO] LocalShops: version 1.10b is enabled!
    08:45:29 [INFO] [BackupPlugin]  BackupPlugin version 0.8.7 is enabled!
    08:45:29 [INFO] [BackupPlugin]  Permissions plugin found, using Permission config
    08:45:29 [WARNING] [BackupPlugin]  Disabled MapperUnit, mapper_path invalid: mcmap/mcmap.exe
    08:45:29 [INFO] [BackupPlugin]  Finished setting up a thread: BackupUnit Next run in: 44 minutes.
    08:45:29 [INFO] Fake Permissions version 2.5.1 is enabled!
    08:45:29 [INFO] [iConomy] Successfully linked with Permissions.
    08:45:29 [INFO] LocalShops: Attached to Permissions
    08:45:29 [INFO] LWC     Using Nijikokun's permissions plugin for permissions
    08:45:29 [INFO] LWC     Loading SQLite
    08:45:29 [INFO] SQLite  Using: Native
    08:45:29 [INFO] LWC     At version: v1.63
    08:45:29 [INFO] Done (0.205s)! For help, type "help" or "?"
    08:45:36 [INFO] 143 recipes
    08:45:36 [INFO] mydnyte [/192.168.0.3:57413] logged in with entity id 203
    08:45:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.10b
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
            at net.centerleft.localshops.Commands.canUseCommand(Commands.java:117)
            at net.centerleft.localshops.Commands.printHelp(Commands.java:179)
            at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:198)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >
    
    There's the entire startup script for more information on the error.

    Does anybody still have a copy of 1.9b I can use until this is sorted out? (I didn't make a backup... I know, fail.)
     
  15. Offline

    Jonbas

    That error is coming from talking to GroupManager... hmm... Can you check if you updated FakePermissions.jar when up updated to 1.0 alpha5?

    http://dl.dropbox.com/u/16369585/LocalShops/19/LocalShops.jar (v1.9b)
     
  16. Offline

    Mydnyte

    I just re-downloaded GroupManager alpha5 and I'm still getting the error. :(

    Edit: 1.9b works like a champ for me though.
     
  17. Offline

    _Zw_

    I did that, still:

    "You have purcased 0 wood for 0 coins"
     
  18. Offline

    Mydnyte

    This is usually a stack size problem. Try /shop buy wood 1 or whatever you set the stack size to.
    Also, make sure you have enough stock in the shop before trying. :p
     
  19. Offline

    _Zw_

    Did so, tried every singel way with 100 test shops.
    Also unlimited stack, and 1 stack etc. But still the same..
     
  20. Offline

    Jonbas


    Excellent bug report. Thank you very much.

    I've just updated v1.11 that fixes this problem.
    [MERGETIME="1299947281"][/MERGETIME]
    Found the bug. Please re-download 1.11 and it should work.
    [MERGETIME="1299948269"][/MERGETIME]
    Alright, i just updated it to give better feedback when it's processing a purchase. It should tell you if the shop doesn't have enough money to pay you now.
     
  21. Offline

    Codisimus

    unless you just recently fixed this,

    i used /shop add all on cobblestone slab 44:3 and it just changed it to stone slab 44:0 when adding to the shop
     
  22. Offline

    Jonbas

    Okay, i'll try to keep this as uptodate as the main branch: http://dl.dropbox.com/u/16369585/LocalShops/lshop/LocalShops.jar
    it's exactly the same but uses /lshop instead of /shop
    [MERGETIME="1299950150"][/MERGETIME]
    Hmm... interesting. I'll look into it.
     
  23. Offline

    Codisimus

    do wools currently work? bc it seems like it would be the same issue (id rather not lose my colored wools testing it)
     
  24. Offline

    Jonbas

    I've been testing on wool for a while and it works.
     
  25. Offline

    Codisimus

    works fine when i use /shop add cobblestoneslab 1
    but /shop add 1 adds stone slab instead of cobblestone slab. hope that helps
     
  26. Offline

    Jonbas

    Alright, I just uploaded a version that has that fixed.
     
  27. Offline

    Codisimus

    works perfectly!
    great solution to the /lshop issue too.
     
  28. Offline

    blinghung

    I'mma rush u to finish Custom shop sizes
     
  29. +1!!!

    Use WorldEdit like WorldGuard does? Maybe? I know it's the same author though, so dunno if you can >.<
     
    blinghung likes this.
  30. Offline

    Jonbas

    it's a pretty simple problem to do. what's tricky is figuring out how to make sure shops don't overlap without testing every single point in the cube.
    [MERGETIME="1299972349"][/MERGETIME]
    Okay, looks like when I fixed colors I broke selling weapons, tools and armor. I'll fix it in the next update.
     
  31. Offline

    sjmiller85

    I'm currently working on completing a script that's parsing the individual shop files, referencing the items.txt file to gather information about the various shops so that I can place them into a MySQL database. The goal is to generate a web interface using FLEX that shows the statistics of shops in a RIA that allows users to browse through shops inventories, determining which stores sell items the cheapest, who has what, etc, in an effort to gain more attraction to the mod, as well as influence competitive prices.

    My question is, before I go much further (I'm already two days in considering I was going to go with XML instead of MySQL), I'm curious as to whether or not incorporating MySQL was a consideration for this mod. I had read earlier that you planned on creating audit logs to show who's purchased/sold what, I was just wondering if there were any plans to incorporate such a feature?
     

Share This Page