[INACTIVE][ECON] SimpleShop [1.41] - An iConomy Shop [493-531]

Discussion in 'Inactive/Unsupported Plugins' started by Nijikokun, Jan 23, 2011.

  1. Offline

    Nijikokun

    SimpleShop (1.41) (iConomy 4.4+ & Permissions or Op(s).txt)(Donate)
    Download the latest release. (Jar)

    What is SimpleShop?
    Simple shop is... well a simple global shop that allows you to add, update, and reload in game.
    Natively supporting MySQL & SQLite.

    Install:
    1. You need iConomy & Permissions to use this plugin.
    2. Download the archive, extract the files to your base craftbukkit directory.
      1. SQL Dependencies Required:
        1. SQLite Dependency
        2. MySQL Dependency
      2. The dependency must be located in the craftbukkit plugin directory!
    3. Go to plugins/SimpleShop/ and modify the .settings file to your likings.
    4. Restart server and enjoy!
    Stock
    Show Spoiler
    To activate stock open up the .settings file and locate use-stock=false set it to true.
    Commands:
    Show Spoiler
    /shop check [id] - Show item information
    /shop list (page)
    /shop buy [id]([:amount])
    /shop sell [id]([:amount])
    /shop add [id]:[amount per bundle] [buy] [sell] (stock)
    /shop update [id]:[amount per bundle] [buy] [sell] (stock)
    /shop remove [id]
    /shop reload
    Examples:
    • Getting Started.. We are going to add stone, in bundles of 64 to purchase for 10, and sell for 2.
      • /shop add 1:64 10 2
      • For Stock:
        • /shop add 1:64 10 2 64
    • Lets test it:
      • /shop buy 1
    • Now lets update it.. it was bit expensive and nobody was really gaining money.
      • /shop update 1:64 8 5
      • For Stock:
        • /shop update 1:64 8 5 64
    • Now lets test again:
      • /shop sell 1
    • The end.
    Permission Nodes:
    Show Spoiler
    simpleshop.buy
    simpleshop.buy.gift
    simpleshop.sell
    simpleshop.items.remove
    simpleshop.items.reload
    simpleshop.items.add
    simpleshop.items.update
    Changelog:
    • Version 1.41
      • Rewrote chunks of the coding.
      • Added support for "gifting"
        • /buy [item]( : amount) [who]
    • Version 1.4
      • Fixed connection issues.
      • Fixed plugin hook issues.
      • Added Dependency download support.
      • Default file loading support like in iConomy.
      • Fixed up some CLI issues.
    • Version 1.3
      • Added support for stock
        • Modifies database! Backup before restarting!
      • Fixed some bugs revolving around listing pages.
      • Fixed issues with not being able to set non-sellable / buyable items.
        • Now use -1 for either buy / sell to disable that feature:
        • /shop add 1:64 -1 15
          • Stone is sellable but not purchasable!
    • Version 1.2
      • Commands are now CLI parsed.
        • Causes /shop [id] to become /shop check [id]
      • Shop list is now paginated (Untested)
    • Version 1.1
      • Fully working with selling items.
     
    dojopunk and TonyMcDanza like this.
  2. Offline

    Queepo

    It doesn't seem to be a conflicting plugin as I even tried with just iConomy and Simpleshop. I switched back to sqlite and no matter where I place the sqlite dependancy it can't find it.
     
  3. Offline

    Giant

    the thing I find odd is that it works perfectly fine for me, I can install it and everything......
    and it loads too.
    So I have not even the slightest clue where it is coming from :(
     
  4. Offline

    Queepo

    I doubt it's the plugins fault. I'm just getting a bit frustrated :/ I'm running linux so if anyone can tell me where they placed their sqlite dependancy that would be great.

    Thanks
    --- merged: Mar 6, 2011 8:33 PM ---
    Oh also is there any way to get this working on flatfile if all else fails?
     
  5. Offline

    Wolfy9247

    Is this plugin outdated? I haven't tested it with the latest iConomy, but seeing at this plugin dev hasn't updated any of his other plugins I'm assuming this one isn't working either.
     
  6. Offline

    Giant

    See my unofficial build in post 431. :)

    Aaaah, there might be the cause, I am testing on windows.
    Wich distro are you using for the server?
    And if other plugins work, it should also work for SimpleShop.

    For flatfile try setting:
    database-type to flatfile.
    --- merged: Mar 7, 2011 12:52 AM ---
    Wait,
    I just figured out am using flatfile for testing O__o
    Let me try it on SQLite.

    Edit:
    Nop on SQLite: No errors either.....
     
  7. Offline

    Queepo

    Switching to flatfile gives me similar errors, it's still looking for SQlite
     
  8. Offline

    Nijikokun

    Released 1.4

    Yay.
     
  9. Offline

    Giant

    Oh cool :)
    So my unofficial build is no longer needed?
     
  10. Offline

    ckecker89

    Hello,
    i got this error, please help
     

    Attached Files:

  11. Offline

    Nijikokun

    Needs permissions
    --- merged: Mar 7, 2011 6:09 PM ---
    yeh
     
  12. Offline

    unachemaxwell

    Ok, I was using the unofficial build, completely deleted and re-setup the shop with the new official release. Looked good and was working 100%. Began using /shop update to tweak pricing and my page 4 disappeared from the shop list and cannot be utilized from the list. Checked database, all items are there, checked the /shop check command and items respond to these commands, however, /shop list is not usable after page 3.

    Plugins include: iconomy 4.4 (Arcadia), GroupManager 1.0(pre-alpha-3), stats and achievements both 0.7, backupplugin 0.8.6, Fake Permissions 2.5, MCDocs 5.2.2, Findme 1.2.4, ichat 2.07, an unofficial iMonster, and of course Multiverse 1.5...

    any help would be appreciated! Been loving your work and plugins!
     
  13. Offline

    Eckhart

    Thanks for the plugin update!

    I was wondering if you had any intention of adding, or would consider adding, a spreadsheet import function like is present in DynamicMarket, which can import the shop.db from a .csv file?

    Having to add things to the database by hand, using /commands instead of excel, is the one thing keeping me from dropping the slowly-dying DynamicMarket plugin in favor of SimpleShop.
     
  14. Offline

    ryanshawty

    I could try that but I would be only be able to make it in PHP.
    Can I get a copy of a .csv shop file to do this ? thanks
     
  15. Offline

    Nijikokun

    Pm me your database file, mediafile would work for hosting so I can test this.
     
  16. Offline

    Eckhart

    Sure. Here's the example provided on the dynamicmarket page: http://dl.dropbox.com/u/20248143/DynamicMarketDocs/shopDB.csv

    Clearly, the extra columns such as the price ceiling and floor wouldn't be needed for simpleshop, as its prices do not change.

    Also, dynamicmarket does have one more feature that I'd love to see on SimpleShop - When you use /shop list followed by a text string, it'll search the price list and return all items which have the string in their name. For instance, "/shop list stone" would return the prices for stone, cobblestone, mossy cobblestone, sandstone, etc.

    So, in summary, I'd love to see spreadsheet import and list searching added to SimpleShop!
     
  17. Offline

    daveGeiss

    I'm getting an error when I run the server. Do you need the latest version of iConomy? I'm still using 2.2 because it's really confusing updating to 4.0+
     
  18. Offline

    Nijikokun

    Released 1.41

    Hopefully it works, Download iConomy 4.4.5 !
     
  19. Offline

    zehkaiser

    Am I the only one that can't use a command such as "/shop buy stone:4"? I have to use "/shop buy 1:4". Makes my shop useless, as very few people know the IDs of all items in the game...
     
  20. Offline

    Widget

    Any chance of a /shop balance?

    Edit: It's /money, any chance of an default alias for that?
     
  21. Offline

    Nijikokun

    It should work, that's odd.
    [MERGETIME="1299576848"][/MERGETIME]
    iConomy does money what do you mean?
     
  22. Offline

    EagleRock

    I can confirm the friendly shop names don't work with items.db, either. I can also confirm the items.db file is present in the root minecraft directory.

    Using Bukkit 493, iConomy 4.4.5, SimpleShop 1.41. I did see this error when loading the plugin:

    Code:
    05:01:14 [INFO] [SimpleShop Flatfile] could not grab item list!
    05:01:14 [INFO] [SimpleShop] hooked into Permissions.
    05:01:14 [INFO] [SimpleShop] version [1.41] (Sen) loaded
    
    Note that I am not using flatfile, but sqlite. Here's my config:

    Code:
    #Minecraft Properties File
    #Mon Mar 07 20:50:09 EST 2011
    mysql-pass=pass
    mysql-db=jdbc\:mysql\://localhost\:3306/minecraft
    use-stock=false
    shop-tag=&d[&fShop&d]&f
    max-items-per-sale=64
    mysql-user=root
    max-items-per-purchase=64
    database-type=sqlite
    
    Thanks for updating this plugin! I've been waiting for a good iConomy shop since I migrated from hMod and iCShop. Your hard work is as always appreciated!
     
  23. Offline

    ckecker89

    Where can i download permission?
     
  24. Offline

    Axrael999

    getting this error only when people buy and sell from the shop. cb493 permissions 2.5 iConomy 4.2

    Edit: updating my iConomy; after updating still getting that same error.
     
  25. Offline

    Subcode

    im getting a strange bug with simpleshop, when i buy an item that is 10, it actually removes 10% of my credits.
    i had 10,000 after buying the item that was 10 i had 1,000 after that 100 and 10 and 1.
    how can i fix this ?
     
  26. Offline

    chainsol

    2011-03-09 23:35:01 [SEVERE] java.lang.NullPointerException
    2011-03-09 23:35:01 [SEVERE] at com.nijiko.simpleshop.iListen.onPlayerCommand(iListen.java:202)
    2011-03-09 23:35:01 [SEVERE] at com.nijiko.simpleshop.SimpleShop.onCommand(SimpleShop.java:106)
    2011-03-09 23:35:01 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-03-09 23:35:01 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    2011-03-09 23:35:01 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:183)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:643)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:606)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:600)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    2011-03-09 23:35:01 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)


    For some reason my server is throwing this command at me whenever i try to use the /buy command or the /shop add command. anyone know why?
     
  27. Offline

    Ben Balentine

    I can confirm that with simpleshop 1.41, iconomy 4.4.6, CB531, CLI isn't working for data values. An older version of simpleshop 1.4, iconomy 4.2, and CB493, does have CLI functionality.
     
  28. Offline

    kuzmic

    23:46:13 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 5
    23:46:13 [SEVERE] at com.nijiko.simpleshop.iListen.onPlayerCommand(iListen
    .java:234)
    23:46:13 [SEVERE] at com.nijiko.simpleshop.SimpleShop.onCommand(SimpleShop
    .java:106)
    23:46:13 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:31)
    23:46:13 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:80)
    23:46:13 [SEVERE] at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:183)
    23:46:13 [SEVERE] at net.minecraft.server.NetServerHandler.c(NetServerHand
    ler.java:619)
    23:46:13 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:582)
    23:46:13 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:576)
    23:46:13 [SEVERE] at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    23:46:13 [SEVERE] at net.minecraft.server.NetworkManager.a(SourceFile:230)

    23:46:13 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:75)
    23:46:13 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    23:46:13 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    23:46:13 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    23:46:13 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
    >

    Same can't /shop sell /shop buy it was working before... CB 497 iConomy 4.4 Perm 2.5.2
     
  29. Offline

    DerET

    How to offer colored wool?
     
  30. Offline

    Sparx

    May I suggest adding an option to give discounts to user groups? I would like to give half price to my VIPs and mods
     
  31. Offline

    nukem2000

    hey all ive created a quite good database implimenter for simple shop in excel, i was just wondering if it would be usefull for any one?

    it works by having basic items set per the user , so say the administrator says that cobble is worth .2 dollars each and coal is worth .5 , the program will then calculate how much it would cost to buy the 2 items separately at the shop and craft it yourself, but also adds a "commission fee" set buy the admin to every action partaken ie smelting or crafting on the workbench ( smelting also takes into account the cost of the coal to smelt it)
    so for the above smooth stone per peice would be worth .

    0.2 for the cobble + 1/8 * 0.5 for the coal used in that process + the user set commission (defult 0.5)

    so therefore smooth stone costs 0.7625 each

    then the sale price is calculated as 1/3 of the selling price, (which can be changed by the user)

    it has EVERY single item in game , and the user only needs to change a max of 40 items to change the prices of every item in game.

    another useful item is the rarity tester, the higher the number the rarer the item is in game, this way when you make changes you can comparably compare them to see that a rare item is not worthless and common items are worth too much .

    any way some screenshots of it ...

    [​IMG]
    [​IMG]

    the simple green columns let you know what u have to type so for example

    /shop add 54:2 2 1
    making it easy to set up a simple shop database

    any way if Enough people shop some interest in it i will upload it for you =D

    thanks all :D

    reply on http://www.minecraftforum.net/viewtopic.php?f=10&t=225684 thanks
     

Share This Page