[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

    Plop

    Have a problem : impossible to sell more than 1104 items in all. Why, and how can i fix it ? Thanks
     
  3. Offline

    Psycho Robot

    Actually the name "wood" is used by wood planks. It'd have to be log.
     
  4. Offline

    jjplay175

    Hi im on 617 using iconomy And it lets me make shops But i have a problem when it comes to adding things in the shop.. example i add 1 axe to shop then i use list and it says 1/0 pages i think and nothing is there :/ i clearly put an axe in.. so i spawned 50 sand tryed that and same thing >.>

    Any idea's why its not working?
     
  5. Offline

    MineralMC

    Don't think it's ever been "wood" for wood planks, actually. :) Check the original items.txt.
     
  6. Offline

    Psycho Robot

    Oh whoops. I got confused because my item-giving plugin calls wood "logs" and wooden planks "wood" and I forgot that's not how the game itself does it.
     
  7. Offline

    MineralMC

    Yeah, they usually have a few different aliases assigned to each item type, makes it easier to accommodate everyone. I use searchIDs in conjunction with commandbook, incase I can't get the right combination of words for the 'name' of an item. That way I can look it up with /search, then just enter the item ID into commandbook.
     
  8. Offline

    grizzlymann

    Does this support decimal prices? I converted my price list from RealShop and now it give this error repeatedly upon load.



    Code:
    23:27:26 [INFO] LocalShops: Error - Problem with item data in grizzlymann.shop
    23:27:26 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'shop' in plugin LocalShops v2.2.1
    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:254)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NullPointerException
    at java.util.Arrays.mergeSort(Arrays.java:1144)
    at java.util.Arrays.mergeSort(Arrays.java:1155)
    at java.util.Arrays.mergeSort(Arrays.java:1155)
    at java.util.Arrays.sort(Arrays.java:1079)
    at java.util.Collections.sort(Collections.java:117)
    at net.centerleft.localshops.Shop.getItems(Shop.java:234)
    at net.centerleft.localshops.ShopData.saveShop(ShopData.java:391)
    at net.centerleft.localshops.ShopData.LoadShops(ShopData.java:341)
    at net.centerleft.localshops.LocalShops.onEnable(LocalShops.java:130)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at net.centerleft.localshops.LocalShops.onCommand(LocalShops.java:183)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    
    Edit: I did some testing and I guess it errors out if you add an item that isn't in the items.txt file. Is there anyway to override that?

    My friend and I wrote a quick perl script to convert RealShop prices to LocalShop prices. All you have to do is specify your RealShop price list and it outputs LocalShop.txt in the directory you ran it from.

    It only works for the items that are listed in items.txt by default as of the LocalShops version at this time.

    Code:
    @items = ("1:0","2:0","3:0","4:0","5:0","5:1","5:2","6:0","7:0","8:0","9:0","10:0","11:0","12:0","13:0","14:0","15:0","16:0","17:0","18:0","18:1","18:2","19:0","20:0","21:0","22:0","23:0","24:0","25:0","35:0","35:1","35:2","35:3","35:4","35:5","35:6","35:7","35:8","35:9","35:10","35:11","35:12","35:13","35:14","35:15","37:0","38:0","39:0","40:0","41:0","42:0","43:0","44:0","44:1","44:2","44:3","45:0","46:0","47:0","48:0","49:0","50:0","52:0","53:0","54:0","56:0","57:0","58:0","59:0","60:0","61:0","65:0","66:0","67:0","69:0","70:0","72:0","73:0","74:0","76:0","77:0","78:0","79:0","80:0","81:0","82:0","84:0","85:0","86:0","87:0","88:0","89:0","90:0","91:0","92:0","256:0","257:0","258:0","259:0","260:0","261:0","262:0","263:0","263:1","264:0","265:0","266:0","267:0","268:0","269:0","270:0","271:0","272:0","273:0","274:0","275:0","276:0","277:0","278:0","279:0","280:0","281:0","282:0","283:0","284:0","285:0","286:0","287:0","288:0","289:0","290:0","291:0","292:0","293:0","294:0","295:0","296:0","297:0","298:0","299:0","300:0","301:0","302:0","303:0","304:0","305:0","306:0","307:0","308:0","309:0","310:0","311:0","312:0","313:0","314:0","315:0","316:0","317:0","318:0","319:0","320:0","321:0","322:0","323:0","324:0","325:0","326:0","327:0","328:0","329:0","330:0","331:0","332:0","333:0","334:0","335:0","336:0","337:0","338:0","339:0","340:0","341:0","342:0","343:0","344:0","345:0","346:0","347:0","348:0","349:0","350:0","351:0","351:1","351:2","351:3","351:4","351:5","351:6","351:7","351:8","351:9","351:10","351:11","351:12","351:13","351:14","351:15","352:0","353:0","354:0","355:0","356:0","357:0","2256:0","2257:0");
    
    open PRICE, "@ARGV"or die "OMGWTFBBQ!";
    open OUT, ">output";
    
    for $line (<PRICE>)
    {
        next if ($line =~m/^#.+/);
        chomp($line);
        $line =~ /^(.+);(.+);(.+);.+/;
    
        $ID = "$1";
        $BUY = "$2";
        $SELL = "$3";
    
        $ID = "$ID".":0" if ($ID =~m/^\d+?$/);
        $BUY = $1 if ($BUY=~m/(\d+)\.\d+/);
        $SELL = $1 if ($SELL=~m/(\d+)\.\d+/);
    
        $fin = "$ID=$BUY:1,$SELL:1,0:0";
    
        for $test (@items)
        {
            if ($test eq $ID)
            {
                print OUT "$fin\n" ;
                last;
            }
        }
    }
    Feel free to use, modify and redistribute.

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

    Strumpetplaya

    I haven't read the whole thread so I don't know if this has already been suggested, but I have one very important (in my opinion) suggestion:

    If possible, make it so you cannot place items which are damaged into a shop. Being able to put an item in the shop and then take it back out to repair it kinda defeats the whole purpose of trying to sell items in the first place! :-D

    Oh another quick suggestion, this one's probably been suggested, but whatever. XD Put a notification message whenever sombody buys items from your shop (or sells them to your shop).

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

    DaanSterk

    I have reports of people that say they can't set up a shop even though the max size is big enough.
    And yes, I downloaded your latest .jar.
     
  11. Offline

    MineralMC

    Known bug. Use /shop create without the /shop select stuff for the time being.
     
  12. Offline

    DaanSterk

    Thanks.
     
  13. Offline

    Darasu2

    It doesnt let me use any command. it says "Unknown console command type "help" or ? for help. " how can i fix this?
     
  14. Offline

    mutiny

    all users still able to move shops for 0 coin cost
     
  15. Offline

    Joelyyyy

    Hey Jonbas, your plugin works absolutely perfectly on our server :)
    I was wondering if I could suggest a new feature for a future update, would it be possible to have a way to link your shop to a BankAccount account (http://forums.bukkit.org/threads/ec...nts-617-using-iconomy.7095/page-9#post-197702)
    This would allow for multiple users to own a single shop, or create an account that could be specifically for the shop.

    Thanks
     
  16. Offline

    zorphon

    Does anyone want to give me their list of prices per items? I'm bad at setting the prices for all these things and keeping the price true to value...
     
  17. Offline

    darthsiddious

    you give them the proper permission? are you getting any sevear warning in the command window?

    also, boseconomy? i really need a shop plugin as chest shops really fell apart on me. thanks, i cant wait!
     
  18. Offline

    riuthamus

    Amen!! BetterShop is working on a working BOSEcon system but they are still working with me on specifics. Thanks to the coder if they do decide to give BOSEcon support.
     
    darthsiddious likes this.
  19. Offline

    darthsiddious

    sweet. cant wait!
     
  20. Offline

    Darasu2

    • localshops.buysell (general buying and selling in the shop)
      • localshops.manage (manage a shop with set commands)
        • localshops.manage.owner (be able to use command /shop set owner)
          • localshops.create (create new shops)
            • localshops.create.free (shops don't cost money for this group)
              • localshops.move (move a shop)
                • localshops.move.free (shops don't cost money to move for this group)
                  • localshops.destroy (destroy existing shops)
                    • localshops.reload (use /shop reload command)
                      • localshops.admin (gives group permission to change anything in a shop)


                    • I gave these permissions.
     
  21. is there annyway to add all of the items at once to the generalstore ?
     
  22. Offline

    l3ouncinGx

    hi
    i was wondering for this plugin does it have to be at the 670 update to work on the craftbukkit 670
    or can localshops(617) work with craftbukkit (670) ???
     
  23. Offline

    darthsiddious


    hmmm should work then from what i can tell.
     
  24. Offline

    PhantomTrout

    The server I play on recently added this plug-in, and it seems very easy, and effective!

    Trouble is, whenever I try to set up the size specifications for my shop, it keeps giving me an error, and telling me what the maximum size for a custom store is, even though my selection is far below the max. I've tried it in every corner, in every possible combination, but I get the exact same error. I've done everything I could possibly think of, and even consulted the head administrator. He was just as stumped. Setting up a shop with the default size works just fine though (I also tried making a shop with the default size, and increasing it. Still no luck).

    Here's a screenshot detailing the various tries, and the message I keep getting: http://img695.imageshack.us/img695/183/shopproblem.png
     
  25. Offline

    MineralMC

    Known bug, it's being worked on. For the time being, just do a /shop create name without a custom size - should be fixed soon.
     
  26. Offline

    Ratte

    why can't i add cookies to the store? is it possible for me to add it manually? and how do i increase the number of entries per /shop list page?
     
  27. Offline

    MineralMC

    Very similar to my Wood fix above. Open items.txt and change the following:

    Bed=355
    RedstoneRepeater=356
    GoldMusicDisc=2256
    GreenMusicDisc=2257

    Needs to be:
    Bed=355
    RedstoneRepeater=356
    Cookie=357
    GoldMusicDisc=2256
    GreenMusicDisc=2257
     
  28. Offline

    grandwazir

    Having tried several shop plugins I think this one is the best.

    That said I am a bit confused to how it stores transactions. I was expecting the plugin to log transactions in the relevant iConomy table rather than in a flat file.

    Would this be possible? It would be much easier to see how money is moving around the server then.
     
  29. Offline

    Matt Phillips

    i am having issues creating a shop, when i try to select the tiles to create a shop, i am able to successfully create a shop in those tile BUT it does not say i have entered/exited the shop. the shop shoes up in the shops plugins/localshops/shops folder. but when i stand on the tiles that i JUST selected, nothing happens. and i cannot remove the shop, because i have to be in the shop...
    any ideas?

    EDIT: when i try to create another custom/default shop at the same spot, it says that there is already a shop present...not sure if that helps
    EDIT(again): i am able to create default shops just fine, it appears that when selecting the tiles is when i have issues, thanks!
     
  30. Offline

    Ratte

    You have not only to select the ground of the shop but the height, too. You may notice that if you now break one floor-block and fall into it, it will say that you entered the shop.

    Select the following edges: (side view)
    . . . . roof
    || . . . . . . . . . . . . . || <<- this
    || . . . . . . . . . . . . . ||
    ||___________||
    ^ . . . .floor here
    ^
    and this

    always use the opposite corner of course!

    Thanks! I figured that out already but was too lazy to edit my post because it still holds another question. but thank you anyway for your quick response!
     
  31. Offline

    Qanthelas

    First, thanks so much for this great plugin! I've read enough plugin threads to know that people don't say "Thank you!" nearly enough to plugin developers!

    Second, I'm not much of a programmer but I want to do what I can do to help. I'm decent as a documenter so I offer my services as such :) With this in mind, two things 1) Would you like any tutorial videos made for your plugin? I have FRAPS and a decent computer so I wouldn't mind making some sort of tutorial video for this plugin if you want :) Just quote part of this message or send me a PM or something if you do! 2) I'd like to share the configuration of my working server to help answer others' questions.

    I have several plug ins, including this one, up and running and (so far as I can tell) they are all getting along and working. I know when I go looking for new plugins I'm always curious if somehow the new plugin will 'break' my current plugins so I'm posting this info for each of the plugins that I use. People always post in a plugin's thread when things don't work so I want to post something that does work for comparisson :) Currently I have one 'admin shop' set up called GeneralStore.

    Basically, I just want people to know that yes, you can run this plugin and all these other ones without breaking the world.

    Pastebin of localshops.properties: http://pastebin.com/T5UyptG2

    Current Bukkit Version: 670

    Plug Ins

    CommandBook 1.2.1
    HeroChat 4.10.1
    iConomy 4.6.5
    LocalShops 2.2.1
    mcMMO 0.9.27
    Permissions 2.6
    PreciousStones 3.2
    Runecraft 2.5.1
    Towny v61Fuzzev5_CB670 (semi-officially forked version) (Note the semi-official fork now has a semi-official bukkit thread here.)
    VirtualChest aka GiftPost 3.3.1
    WorldEdit 4.3

    Pastebin of server.log on restarting the server: http://pastebin.com/n4yqxWSG

    Pastebin of my Permissions file (since I currently only have one world and that world is called PhoenixRealms, the file is called PhoenixRealms.yml): http://pastebin.com/4ySk7qD9
     

Share This Page