[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

    Amin Azman

    hello, i got problem with some shop that when i try to buy, it says: Input problem, use /shop buy [itemname] [#] , before the upgrade i can buy from the shop using normal command like /shop buy 4 64 without any problem.. but i got some shops working without any problem.
     
  3. Offline

    Jonbas

    does the command /shop buy cobble 64 work?

    I've thought about adding a hard limit to the number of shops each player can own. But I hadn't thought of an increasing price scale. That could be interesting, let me think about it for a while.

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

    Bilbo_248

    Really Good Work ! Thanks !

    I hope you maintain your work !
     
  5. Offline

    GhostToast

    is there a way to use this plugin to buy/sell infinite amounts of items, where the money earned from the shop is not tied to a player, but just "general"?
    i basically want BetterShop but in local format. A global market, not player-owned. A physical store though.
     
  6. Offline

    Jonbas

    Setup a new shop and use the following commands:

    /shop set unlimited money
    /shop set unlimited stock
    /shop set owner ServerBank

    where ServerBank is the name of whatever account you want the money to go to.
     
  7. Offline

    GhostToast

    oh cool thanks. i'll give it a try
     
  8. Offline

    Rilly

    Hi!
    For some reason, when people do /shop list buy, its only listing maximum of 3 items? but shop list has all 6 that I have. I've set a price for all 6 of them, yet still only the first 3 I added appear in the /shop list buy menu
    Using 531 version


    EDIT: heh nevermind.. i set the sell price, not the buy price................... :)
     
  9. Offline

    Amin Azman

    nope, my ground floor shop selling the exact same blocks, and the command works.

    only the newlycreated shop got this problem..
     
  10. Offline

    Jonbas

    That's... odd.

    Can you tell me exactly what the stock, buy and sell price are for the shops that work? Try recreating those same prices in the shop that is having trouble. Also, what is the exact command that you are using? What are you holding in your hand while you do it?

    Have a look at /shop list buy in the shops that are having trouble, what does that show you?
     
  11. Offline

    Michael Briggs

    Not sure if this is a known issue or not, but I tried placing a shop with a low balance and I got the error message stating that I needed 1000 copper pieces. Then the next line was the creation of the shop, followed by me entering the shop. It appears that it's doing the check, but not stopping the process when it encounters insufficient funds.
     
  12. Offline

    Amin Azman


    ok, just a few shop affected, tried to create new shop and no problem.. maybe shop files error..
     
  13. Offline

    Andreas Brisner

    Number of blocks a shop is is still wrong! 8 turns out as 9.
    This is still annoying as its the last puzzle of my server before I can start building spawn.
     
  14. Offline

    gnftoxic

    Hi,

    I'm looking for some information on your layout of the .shop files.
    Is this correct?

    Code:
    //args may be in one of two formats now:
    //buyPrice:buyStackSize sellPrice:sellStackSize stock
    //or
    //dataValue buyPrice:buyStackSize sellPrice:sellStackSize stock
    I found it in your net/centerleft/localshops/ShopData.java file, so I'm assuming it's correct.

    Thanks,
    gnftoxic
     
  15. Offline

    uncovery

    GREAT plugin! I really like it!

    do you think it would be possible to restrict what shops can sell?
    I want to make a shop where I as admin/creator can input a list of items that cannot be changed by the owner of the shops. only those items can be sold there. This should be specific for that shop only, not for all shops.

    thanks!
     
  16. Offline

    Spiritax

    When i create a shop with a normal user, and don't have enough money, it say that i don't have enough money and create the shop.
     
  17. Offline

    Cubic Meter

    So I set up the permissions to allow for normal users to create their own shops, but every time someone besides an absolute admin tries to use any /lshop command the console spits this out
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'lshop' in plugin LocalShops v1.12b
            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:125)
            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
    
    
     
  18. Offline

    Jonbas


    That's for the right side of the equals. The full format is:

    ItemNum:Color=buyPrice:StackSize,sellPrice:StackSize,stock:maxStock

    @Spiritax

    Can you both please do the command /shop reload in game and show me the version that gets printed out on the console? This was a bug with previous versions, but should be fixed in the latest.

    Which version of the plugin are you using?

    There would be two ways to do this currently:
    1. Don't set anyone on the server to be the shop owner, only admins then can set prices and add items to the shops
    2. Setup the shops, set the ownership to the player, but make sure the players don't have the group: localshops.manage this way they would get the money from the shop, and could add or remove stock using buy/sell. but they wouldn't be able to change prices or items.

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

    Cubic Meter

    Okay, so I did some more observation and I was getting a load of grief from GroupManager so I switched back to Permissions. Now when someone tries just /lshop they get an error that says something along the lines of "the available commands are" and then the next line they get "an internal error occurred while attempting to preform this command" or something like that. When this happens the console says:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'lshop' in plugin LocalShops v1.12b
            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.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
            at com.nijiko.permissions.Control.load(Control.java:231)
            at com.nijiko.permissions.Control.loadWorld(Control.java:108)
            at com.nijiko.permissions.Control.permission(Control.java:307)
            at com.nijiko.permissions.Control.has(Control.java:269)
            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
    
    And when another player tries to add a item to already added items in a shop (for example, adding more eggs to a shop) they get a list of items in a shop starting with (example item Egg) and a couple other items (not the entire stock) and get a message "could not add the item to the shop".

    However, if I (with Admin permissions) try any of this it functions properly with no console errors.

    EDIT: Now after a server restart I still get errors when people use commands but they function properly now. The strangest part is, I didn't change anything before the last restart and I didn't get any errors/lack of errors on startup.
     
  20. Offline

    Spiritax

    16:56:59 [INFO] LocalShops: version 1.14b is enabled!
    [​IMG]
    [​IMG]
     
  21. Offline

    Jonbas

    Okay, found the bug. Please re-download.

    @Cubic Meter

    Try downloading again. There was an error with plugin startup order that I may have forgot to apply to your /lshops branch. I've updated the file properly this time.
     
  22. Offline

    Cubic Meter

    Thanks for the speedy reply. I loaded up the new version and didn't get any errors on startup but when someone tried to use a /lshop command it crashed the server with this:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'lshop' in plugin LocalShops v1.12b
            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.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
            at com.nijiko.permissions.Control.load(Control.java:231)
            at com.nijiko.permissions.Control.loadWorld(Control.java:108)
            at com.nijiko.permissions.Control.permission(Control.java:307)
            at com.nijiko.permissions.Control.has(Control.java:269)
            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
     
  23. Offline

    Jonbas

    What version of permissions are you using?
     
  24. Offline

    Cubic Meter

    Version 2.5.4

    EDIT: Once again, I restarted my server and I am error free no matter what I do.
    Honestly, it's almost random whether or not it works.
     
  25. Offline

    Spiritax

    Suggestions :
    - shop move command, with a configurable price by example.
    - shop limitation by player (option)
     
  26. Offline

    Phantom Index

    Can you add the ability for mods to be able to destroy any shop? Even if another person owns it?
     
  27. Offline

    cherryghost

    Great plugin, just one issue.

    Removing redstone from the shop crashes the server :(
     
  28. Offline

    Jonbas

    the localshops.admin gives you the ability to do that.

    Can you give the error log? Works fine on my test server.

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

    Phantom Index

    hmm odd didn't work. I'll see whats causing this to not work
     
  30. Offline

    Jotschie

    I found a new "issue":
    My shopowners can't see shop commands like /shop add or /shop set if they type in /shop.
    But I gave them the localshops.manage.* and localshops.buysell permissions, so I am wondering why they can't see the commands.
    They are able to use them though, but it would be nice if they could see them.
     
  31. Offline

    Jonbas

    What do you mean see them?
     

Share This Page