[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

    ahh, typo in the items.txt file then. You'll have to edit it yourself, or replace it with the items.txt file linked at the top of the page. (I've corrected it in the download file.)
     
  3. Offline

    SirAzor

    i would also like to be able to remove access to the change of ownership. here is a scenerio as to why.

    "Bob" creates a store, and sets it up to buy dirt at 10 money each.
    "Bob" then transfers the store to "Tom"
    "Bob" then sells as much dirt as he can to "Tom's" new store, that he didnt want.
    therefore draining "Tom's" bank account dry.

    so, can the change of ownership have its own permission so i can deny this command to my players?
     
  4. Offline

    Jonbas

    That's a thought.

    Do you want it to be it's own node, or just use the localshops.admin node?

    I'm going to use that node for being able to set unlimited stock or unlimited money for the shops.
     
  5. Offline

    Phantom Index

    Also be nice to transfer the owner to a town bank with Towny :) that'd be nice.
     
  6. Offline

    Jonbas

    I'm not familiar with Towny, but you can transfer the ownership of a shop to whomever you like (doesn't need to be a player). In my server I have the GeneralStore owned by something like ServerBank (not the actual name). And then admins can add and remove money from it using iConomy's commands.
     
  7. Offline

    Phantom Index

  8. Offline

    Mydnyte

    Is there a way for a shopkeep to remove an item from the stock if he's not selling that item?
    Scenario:
    Food guy has a shop. He's buying sugar via a shop, but doesn't want to sell it to customers.
    His buy price is set to 0.
    He has purchased 100 sugar from other players via the shop. Shop has 100 sugar in stock.

    Since his buy price is set at 0, so people can't buy his item, when he uses /shop buy sugar 100 it tells him that his shop is not selling sugar.

    I know he can get it if he removes sugar from the shop completely, but then he would have to set up sugar all over again.

    Is there currently a way for him to just remove some items from stock even though he's not selling it to customers?
     
  9. Offline

    blackielife

    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.6b
    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:619)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    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:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at net.centerleft.localshops.Commands.addItemShop(Commands.java:609)
    at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:167)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more



    anyone know whats wrong?
     
  10. Offline

    Jonbas

    Hmm... good point. There isn't at the moment. I'll add it to the next version.
    [MERGETIME="1299788849"][/MERGETIME]

    Please try updating to v1.8 and then try it again.
     
  11. Offline

    blackielife


    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.8b
    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:619)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    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:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at net.centerleft.localshops.Commands.addItemShop(Commands.java:661)
    at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:167)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  12. what builds does this work on?
     
  13. Offline

    SirAzor

    whatever works easiest for you, its own node would be the easiest, but having it in admin wouldent be bad either.

    so long as the general riff-raff coming into my game dont abuse it.
     
  14. Offline

    SplenectomY

    @Jonbas: I think I found the cause. I get this same error when someone tries selling an item to a shop that doesn't carry it.

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.7b
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:177)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:638)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:601)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:595)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:349)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:264)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
        at net.centerleft.localshops.Shop$Item.access$4(Shop.java:58)
        at net.centerleft.localshops.Shop.itemSellAmount(Shop.java:242)
        at net.centerleft.localshops.Commands.sellItemShop(Commands.java:420)
        at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:165)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
        ... 12 more
     
  15. Offline

    Jonbas

    Do you know what command is causing this error?
    [MERGETIME="1299795656"][/MERGETIME]
    @SplenectomY okay, thanks. I'll add it to the list.
    [MERGETIME="1299795723"][/MERGETIME]
    works on recommended build 493. haven't tested with the new one yet.

    (FYI, the thread title [493] is standard we use for saying last tested build number)
     
  16. Offline

    Lookatmego

    love being ignored:) thanks man
     
  17. Offline

    Jonbas

    Lots of things have been asked and answered. Sorry if I missed any. If you haven't seen your question answered by reading back a few pages, please ask again.
     
  18. Offline

    Lookatmego

    alright thanks well my question was what format does the items in a shop save? i saw it in the file and i dont wanna manually add every single item and its prices from ingame from file would be easier...also i see you put a max option not sure if that means i can make infinite of 1 item for sale and buy or not..is that what it is?if not can i make an item infinite for buy and sell/
     
  19. Offline

    Jonbas

    The shop format looks like this now:

    Code:
    itemID:Data=buy:bundle,sell:bundle,stock:max
    35:3=10:1,5:1,100:35
    35:3 is the item type. In this case, wool with the color of LightBlue.

    10:1 is the buy price and size (/shop buy LightBlueWool)
    5:1 is the sell price and size (/shop sell LightBlueWool)
    100:35 is the stock and max stock. (100 currently in shop, and the shop will buy more wool if people buy enough so that the stock falls below 35)

    If you change the bundle size of the buy or sell item, you can change how many items a user gets for that price. So, if I had 10:64 instead, if a player did /shop buy LightBlueWool 64 it would still only charge them 10 coins.

    Currently there is no way to let a shop have unlimited stock but it is coming soon. (As I've mentioned a few times in the last couple pages)
     
  20. Offline

    Lookatmego

    THANK YOU! thats all i ever needed thank you awesome plugin using it at the moment and everyone loves it!
    [MERGETIME="1299810414"][/MERGETIME]
    hey dude i just ran into a quick problem i manually added the format from the file:
    #SpawnShop shop file
    #Thu Mar 10 19:50:25 EST 2011
    world=WORLD
    owner=lookAtMeGo
    managers=
    creator=lookAtMeGo
    position=-130,72,281,
    unlimited=false
    1:2:1:1:1:2304:0
    2:64:1:64:1:2304:0
    3:1:1:1:0:2304:0
    4:1:1:1:0:2304:0
    5:0:1:1:1:0:2304:0
    17:1:3:1:2:1:2304:0
    17:2:4:1:4:1:2304:0
    6:1:1:1:0:2304:0
    8:50:1:50:1:2304:0
    9:100:1:100:1:2304:0
    10:100:1:100:1:2304:0
    11:100:1:100:1:2304:0
    12:1:0:0:1:2304:0
    13:1:1:0:1:2304:0
    14:30:1:30:1:2304:0
    15:20:1:20:1:2304:0
    16:2:1:2:1:2304:0
    now thats just half but do u see any problems????because it says my shop isnt even tehre...and that i gotto be in 1 but the file is there
    [MERGETIME="1299810848"][/MERGETIME]
    21:33:46 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v1.8b
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:33)
    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:619)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    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:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NullPointerException
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:198)
    at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:161)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:31)
    ... 12 more


    thats also error i get when i do /shop reload
     
  21. Offline

    Fritz2d

    Is there any way to buy colored Items by ID?
    I've tried ist with e.g. /shop sell buy 17,0 17.0 17:0 17/0 17\0 17:0 170 17-0 and so on...
    (This was wood - after adding to items.txt Also don't work with leaves, wool...)

    Or is it only possible to buy such items by names how they appear in items.txt?

    Ah, Plugin works great until now ;)
     
  22. Offline

    Jonbas

    you have to do it by name.
    [MERGETIME="1299811781"][/MERGETIME]

    I think you probably have the world named wrong.

    Have you tried using the command /shop create ShopName? You'll probably have more luck if you do that one time and then compare the format to what you are trying to do.

    Edit: never mind. You totally ignored my explanation of the format. back that up, create a new shop, and try adding some items through the game to see what you did wrong.
     
  23. Offline

    Lookatmego

    hmm ok i guess
    [MERGETIME="1299812453"][/MERGETIME]
    well i did what u said i added 1 from ingame and then manually added 1:

    58:0=0:1,0:1,1:0
    1:0=2:1:1:1,1:35

    the top 1 is the ingame added 1 bottom 1 is the manual 1 i added i dont see whats wrong...but it still says its wrong
     
  24. Offline

    Jonbas

    count your commas.
     
  25. Offline

    Lookatmego

    AH i see it works now thanks jonbas:)
     
  26. when users are attempting to sell an item (such as /shop sell Diamond ), it returns an unhanded exception error in the console (for command /shop ), and outputs an "Internal error occurred" for the client.
    CB 493
     
  27. Offline

    Jonbas

    Is that when the shop has that item, or not? does the command /money work?
    [MERGETIME="1299819211"][/MERGETIME]
    Sorry about so many changes coming out so quickly on this.

    Just released v1.9b that fixes a crashing bug if you try to sell something to a shop that the shop isn't accepting already. Also, plugin will create items.txt file if it doesn't already exist.
    [MERGETIME="1299823446"][/MERGETIME]
    I just added this to version 1.9b for you. If you are a shop owner or manager you can use the command /shop buy itemName # to remove stock of any item in the shop. Use /shop add to add stock.
     
  28. Offline

    LucidCraft


    There's a lot of shop plugins out there, but I've got my eye on this one. I think your approach is great and your hard work is appreciated. Primarilly, I'm concerned about using this plugin, in case somebody might "Pull a Bob". lol.

    I suppose I could have missed it in the changelog, but was curious if you had implemented this yet. If not, no worries. Maintaining a plugin is a lot of hard and tedious work. I'll just keep a close eye on your development. : )

    Thank you!
     
  29. Offline

    Jonbas

    I appreciate the kind words. The communities support on this has gone a long way to keeping me going.

    This hasn't been implemented yet. I'll probably get this in tomorrow with the option to turn on transaction logs.
     
  30. Offline

    blackielife

    normaly i only get it when some one types /shop add
    and they get an internal error
     
  31. Offline

    Jonbas

    Okay, I've fixed one bug that would have caused that. Please let me know if it comes up again.

    Oh, i know what it probably is. Check your items.txt file. Has it been created in your plugin/LocalShops/ directory?
     

Share This Page