[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

    2Bucks

    For the next update, perhaps let people set a limit for the amount people can buy/sell each Minecraft day? Either by # of items or total revenue/expense
     
  3. Offline

    Nijikokun

    Hard to determine since there are many time changing plugins.
     
  4. Offline

    2Bucks

    Maybe just based on time then, like every "x" seconds, which can be saved in properties.

    On my server there are some people who do nothing else but try to get as much money as possible, and I just don't feel like that's how Minecraft was meant to be payed. This simple (sounding) option for server runners can solve the problem.
     
  5. You can't complain about people not reading the changelog when the plugin itself tells you to use the wrong command. That's what I was trying to say. Type '/shop' and the help info you receive is out of date.
     
  6. Offline

    Blunt

    it lets me add items but then doesnt list them says no items for sale under the /shop list

    also I cant get it to let me set the bundles like your tutorial at the top of the page. I do have permissions set correctly and im using bukkit build #210

    Edit forgot to mention i did add your mysql and the other jar file this time and they are in the same folder as craftbukkit.jar
     
  7. Offline

    MinehubGaming

    What version of craftbukkit is this currently compatible with?
     
  8. Offline

    daveGeiss

    Help!
    Whenever I start I get a class not found exception. The class is definitely there too. The shop still comes up but you can't add items and such.

    Error:
    Database connector not found for sqlite: java.lang.ClassNotFoundException: org.sqlite.JDBC
     
  9. Offline

    Nijikokun

    Read the topic title.

    @above: you need the sqlite jar file.

    @Guy 3 posts above:
    Re-download the jar file.
     
  10. Offline

    daveGeiss

    I have both .jar files in the same folder as craftbukkit and it still gives me the same error
     
  11. Offline

    DJ411

    Wondering if theres a way to setup a Package... Like Diamond Tools.. Diamond Armor. Basically multiple items in one shopping item.

    Also you can't add multiple items.

    For example i want to add Stone as one item and make it a full stack of 64. Then i want to make another stack of Stone half the amount. Half the Price... I can add each item. But you can't purchase the second one.

    Maybe have a way to add Names to Each Item in the Shop.
     
  12. Offline

    nomoarjewz

    i get an error in the console
    2011-02-05 04:57:51 [SEVERE] [SimpleShop]: Database connector not found for sqli
    te: java.lang.ClassNotFoundException: org.sqlite.JDBC
    2011-02-05 04:57:51 [INFO] [SimpleShop] Creating database.
    2011-02-05 04:57:51 [SEVERE] [SimpleShop]: Database connector not found for sqli
    te: java.lang.ClassNotFoundException: org.sqlite.JDBC
    2011-02-05 04:57:51 [INFO] [SimpleShop] Database Created.
    i dont know what to do :p
     
  13. Offline

    daveGeiss

    That's the same one I got
     
  14. Offline

    nomoarjewz

    i have iconomy working fine its this plugin in i can add stuff to the shop but when i go to buy it or sell it it says its not for sale or doesnt exist in the shop or somthing
     
  15. Offline

    DJ411

    you have to install sqlite or w/e its called read the install. it says u need SQL Dependencies Required:
     
  16. Offline

    nomoarjewz

    --- merged: Feb 5, 2011 5:35 AM ---
    sorry to bother you again but how do i install sqlite to work with the simple shop im a complete noob at this so dumb it down please:p.
     
  17. Offline

    DJ411

    Place the jar file in the same folder as the Crafbukkit.jar file
     
  18. Offline

    nomoarjewz

    i had that done since the start i still get the error
     
  19. Offline

    Nijikokun

    1.3 Released!

    Read changelog!~
    --- merged: Feb 5, 2011 5:58 AM ---
    Next version I will see what I can do.
     
  20. Offline

    nomoarjewz

    Thank you so much for this update it fixed my problem but i thought i may mention that i get an error in the console i think it has to do with stock but i have it false so i dont think it affects me
    2011-02-05 06:09:16 [INFO] [SimpleShop] Update to version 1.3 required.
    2011-02-05 06:09:16 [INFO] - Updating SQLITE for 1.3
    2011-02-05 06:09:16 [SEVERE] x Update failed : sqlite: java.sql.SQLException:
    uplicate column name: stock
     
  21. Offline

    Nijikokun

    You just re-installed it and generated a new database then that is fine.

    Just installing for the first time?

    If this is your first install (Not update!!!) create a file named VERSION.txt in your Plugins/SimpleShop/ directory with the following text inside and nothing else:
    Code:
    1.3
     
  22. Offline

    nomoarjewz

    Thank you so much for this, helps alot thanks again
    and just wondering is there an easier way to add blocks to the store or do i have to do them in-game?
     
  23. Offline

    silentdojo

    I use mysql and just use phpmyadmin to add to the database...

    Nijikokun you rock!
     
  24. Offline

    cloudafloat

    I get this error when I try to interact with shop.

    http://screensnapr.com/v/J4qqMp.png

    Using build 241.


    Note: I got this error with 1.2 as well was hoping an update would fix it.
     
  25. Offline

    Edward

    i get this whenever i try to issue any kind of command with shop and i have added myself to admins still not working

    2011-02-05 01:43:59 [INFO] brownbie issued server command: shop add 1:64 10 8
    2011-02-05 01:43:59 [INFO] Unknown console command. Type "help" for help.
     
  26. Offline

    Nijikokun

    When you don't report it, it can't be fixed. You need iConomy in your plugins folder for this to work, if it doesn't exist... well this shop doesn't exist basically.

    That's not an error.
     
  27. Offline

    MIKUiqnw0

    Build #246 - Setting stock to true generates the following error when attempting to buy or sell
    Code:
    Feb 6, 2011 12:12:14 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to SimpleShop
    java.lang.ArrayIndexOutOfBoundsException: 5
            at com.nijikokun.bukkit.SimpleShop.iListen.onPlayerCommand(iListen.java:
    245)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.ja
    va:133)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    /shop : 3
    2011-02-06 00:12:14 [INFO] MIKUiqnw0 issued server command: shop buy stone
    2011-02-06 00:12:14 [INFO] Unknown console command. Type "help" for help.
    
     
  28. Offline

    alexgeek

    I can add shop items and remove them but can't buy or sell:
    I've got iconomy set up with mysql (not flatfile).
    What's going on exactly?
    Latest versions of everything, ta

    Code:
    05-Feb-2011 16:20:36 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to SimpleShop
    java.lang.ArrayIndexOutOfBoundsException: 5
            at com.nijikokun.bukkit.SimpleShop.iListen.onPlayerCommand(iListen.java:
    318)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.ja
    va:133)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  29. Offline

    shadydeath999

    how can i make items only sellable or only buyable?
     
  30. Offline

    mrtankjump

    Plugin is awesome, running into an issue though. I can make items not purchasable, but sellable by using
    Code:
    /shop add 266 -1 10
    But if I do the reverse, make it buyable, but not sellable
    Code:
    /shop add 89 10 -1
    minecraft client crashes on /shop list
    Code:
    
          Minecraft has crashed!
          ----------------------
    
    Minecraft has stopped running because it encountered a problem.
    
    If you wish to report this, please copy this entire text and email it to [email protected].
    Please include a description of what you did when the error occured.
    
    Mods loaded:
    ModLoader Beta 1.2_02v2
    mod_automap 3
    
    --- BEGIN ERROR REPORT bfd418a --------
    Generated 2/5/11 4:10 PM
    
    Minecraft: Minecraft Beta 1.2_02
    OS: Windows 7 (amd64) version 6.1
    Java: 1.6.0_21, Sun Microsystems Inc.
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
    LWJGL: 2.4.2
    OpenGL: ATI Radeon HD 5700 Series version 4.1.10428 Compatibility Profile Context, ATI Technologies Inc.
    
    java.lang.StringIndexOutOfBoundsException: String index out of range: 51
        at java.lang.String.charAt(Unknown Source)
        at nh.a(nh.java:147)
        at nh.a(nh.java:114)
        at pe.a(pe.java:199)
        at SMGUI.a(SMGUI.java:68)
        at ll.b(SourceFile:346)
        at net.minecraft.client.Minecraft.run(SourceFile:668)
        at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT a6716fb1 ----------
    
    
    Thanks!
     
  31. Offline

    Penorzilla

    when I do /shop list 4 (there is 4 pages) It crashes the client and than froze my server.
     

Share This Page