[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

    Jorrdan

    can you make it so instead of having to type the data code, they could type what it shows in the shop???? I know lots of people on my server dont know how to look up the data values for items. ex. instead of typing /shop buy 4:2 they could type /shop buy COBBLESTONE:2
     
  3. Offline

    Syver

    My friend and I are trying to make our perfect server but we keep getting the following error
    2011-03-16 17:46:27 [INFO] ChatBukkit v0.0.1 is enabled!
    2011-03-16 17:46:27 [INFO] [iConomy] Logging enabled.
    2011-03-16 17:46:27 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    2011-03-16 17:46:27 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-03-16 17:46:27 [INFO] [SimpleShop] Permission system not enabled. Disabling plugin.
    2011-03-16 17:46:27 [INFO] [SimpleShop] version [1.41] (Sen) disabled
    2011-03-16 17:46:27 [INFO] [SimpleShop] version [1.41] (Sen) loaded
    2011-03-16 17:46:27 [INFO] [SimpleShop] hooked into iConomy.
    2011-03-16 17:46:27 [INFO] Done (0.106s)! For help, type "help" or "?"
    2011-03-16 17:50:26 [INFO] Starting minecraft server version Beta 1.3
    2011-03-16 17:50:26 [INFO] Loading properties
    2011-03-16 17:50:26 [INFO] Starting Minecraft server on *:25565
    2011-03-16 17:50:26 [INFO] Preparing level "world"
    2011-03-16 17:50:26 [INFO] Preparing start region
    2011-03-16 17:50:27 [INFO] Done (705877792ns)! For help, type "help" or "?"
    2011-03-16 17:50:31 [INFO] Stopping server
    2011-03-16 17:50:31 [INFO] Saving chunks
    2011-03-16 17:50:37 [INFO] Starting minecraft server version Beta 1.3
    2011-03-16 17:50:37 [INFO] Loading properties
    2011-03-16 17:50:37 [INFO] Starting Minecraft server on *:25565
    2011-03-16 17:50:37 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    2011-03-16 17:50:37 [INFO] Preparing level "world"
    2011-03-16 17:50:37 [INFO] Preparing start region
    2011-03-16 17:50:38 [SEVERE] Could not load plugins\mysql-connector-java-bin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    2011-03-16 17:50:38 [SEVERE] Could not load plugins\sqlitejdbc-v056.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    2011-03-16 17:50:38 [INFO] ChatBukkit v0.0.1 is enabled!
    2011-03-16 17:50:38 [INFO] [iConomy] Logging enabled.
    2011-03-16 17:50:38 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    2011-03-16 17:50:38 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-03-16 17:50:38 [INFO] Done (0.107s)! For help, type "help" or "?"
    2011-03-16 17:51:40 [INFO] CONSOLE: Stopping the server..
    2011-03-16 17:51:40 [INFO] Stopping server
    2011-03-16 17:51:40 [INFO] [iConomy] All un-saved account data has been saved, plugin is now disabling.
    2011-03-16 17:51:40 [INFO] Saving chunks
    2011-03-16 17:51:53 [INFO] Starting minecraft server version Beta 1.3
    2011-03-16 17:51:53 [INFO] Loading properties
    2011-03-16 17:51:53 [INFO] Starting Minecraft server on *:25565
    2011-03-16 17:51:53 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    2011-03-16 17:51:53 [INFO] Preparing level "world"
    2011-03-16 17:51:53 [INFO] Preparing start region
    2011-03-16 17:51:53 [SEVERE] Could not load plugins\mysql-connector-java-bin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    2011-03-16 17:51:53 [SEVERE] Could not load plugins\sqlitejdbc-v056.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    2011-03-16 17:51:53 [INFO] ChatBukkit v0.0.1 is enabled!
    2011-03-16 17:51:54 [INFO] [iConomy] Logging enabled.
    2011-03-16 17:51:54 [INFO] [iConomy] v4.4 (Arcadia) loaded.
    2011-03-16 17:51:54 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-03-16 17:51:54 [INFO] Done (0.095s)! For help, type "help" or "?"
    2011-03-16 17:55:39 [INFO] Unknown console command. Type "help" for help.
    2011-03-16 17:55:41 [INFO] Unknown console command. Type "help" for help.
    2011-03-16 17:55:52 [INFO] Starting minecraft server version Beta 1.3
    2011-03-16 17:55:52 [INFO] Loading properties
    2011-03-16 17:55:52 [INFO] Starting Minecraft server on *:25565
    2011-03-16 17:55:52 [INFO] Preparing level "world"
    2011-03-16 17:55:52 [INFO] Preparing start region
    2011-03-16 17:55:53 [INFO] Done (699489576ns)! For help, type "help" or "?"
    2011-03-16 17:56:04 [INFO] Stopping server
    2011-03-16 17:56:04 [INFO] Saving chunks
    2011-03-16 17:56:10 [INFO] Starting minecraft server version Beta 1.3
    2011-03-16 17:56:10 [INFO] Loading properties
    2011-03-16 17:56:10 [INFO] Starting Minecraft server on *:25565
    2011-03-16 17:56:10 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-gdf87bb3-b531jnks (MC: 1.3)
    2011-03-16 17:56:10 [INFO] Preparing level "world"
    2011-03-16 17:56:10 [INFO] Preparing start region
    2011-03-16 17:56:11 [SEVERE] Could not load plugins\mysql-connector-java-bin.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    2011-03-16 17:56:11 [SEVERE] Could not load plugins\sqlitejdbc-v056.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:159)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:107)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  4. Offline

    nukem2000

    jorrdan it allready does that...
     
  5. Offline

    EagleRock

    I found the issue I was having with items.db not loading. Maybe this will help other users. I was using a rather old items.db file format that was incompatible with SimpleShop. Make sure you download a fresh items.db file if you're having this problem!
     
  6. Offline

    Subleak

    I'm having the same issue. I put the dependencies in the ./plugins folder. Tried only mysql-connector-java-bin.jar or both.

    Shop interface works I can add items to the MySQL database. More errors occur (server side) when I attempt to buy or sell any items. These same errors occur whether using MySQL or SQLite. You can only buy or sell using ID number of items. Item names don't seem to work, though I'm uncertain if they ever did.

    Great mod by the way, haven't used it since hMod days.
     
  7. Offline

    Runelynx

    Hi can you possibly upload your items.db so I can use it too... and tell me where to put it?
     
  8. Offline

    kaotic

    Love the idea behind this however I'm having one slight problem, I'm able to add items to the shop but I'm unable to guy or sell.

    When I try to buy ingame nothing happens and I get the followign errors on the console:

    Code:
    16:26:25 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 5
    16:26:25 [SEVERE]       at com.nijiko.simpleshop.iListen.onPlayerCommand(iListen.java:234)
    16:26:25 [SEVERE]       at com.nijiko.simpleshop.SimpleShop.onCommand(SimpleShop.java:106)
    16:26:25 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    16:26:25 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
    16:26:25 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
    16:26:25 [SEVERE]       at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
    16:26:25 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    16:26:25 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    16:26:25 [SEVERE]       at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    16:26:25 [SEVERE]       at net.minecraft.server.NetworkManager.a(SourceFile:230)
    16:26:25 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
    16:26:25 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    16:26:25 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    16:26:25 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    16:26:25 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    Any advice would be greatly appreciated.
     
  9. Offline

    EniGmA1987

    When your inventory is full, and you try to buy something the sale goes through but you dont get the item. Is it possible to add in a simple check for if the player inventory is full, it dumps the item on the ground instead? or maybe just cancel the sale with an error message about inventory full?
     
  10. Offline

    Runelynx

    I cant get any item names to work, and when starting the plugin I get a "flatfile unable to load item list" error.

    Where does the item list go... and where can I find the file? There's nothing in this thread !!

    anyone? :(

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

    NikkyyyHD

    Can someone give me a simple tutorial? Im not very great with this stuff but i need it badly on my server!
     
  12. Offline

    topcat5665

    I get this error:

    20:33:57 [SEVERE] [SimpleShop]: Table check for mysql Failed: com.mysql.jdbc.exc
    eptions.jdbc4.CommunicationsException: Communications link failure

    Last packet sent to the server was 0 ms ago.
    20:33:57 [INFO] [SimpleShop] Creating database.
    20:33:59 [SEVERE] [SimpleShop]: Could not create table for mysql: com.mysql.jdbc
    .exceptions.jdbc4.CommunicationsException: Communications link failure

    If anyone can help that would be great! Thanks.
     
  13. Offline

    ben1996123

    Um... I downloaded it, but in permissions, only admins can buy stuff. If I set default to admins, people can buy, but they can also change the price of stuff as well... how do I fix it?
     
  14. Offline

    Regerk5

    I am having this exact error and I'd love a fix. Thank you in advance!
     
  15. Offline

    Frogger4

    Has anyone successfully used simpleshop with 556?
     
  16. Offline

    Joshy7153

    I'm having trouble whenever I go like shop buy 1:64 or something it says over shop amount or if I do shop buy 1:1 it says it again? and /shop buy 1 didn't work?
     
  17. Offline

    Jorrdan

    Anyone having errors with CB 556 or 560 (the ones i used this plugin with) probably just configured it wrong. It works just fine.. Also this plugin neeeeeeds to get updated for 600+ It's a huge part of my server! Would very much appreciate it!
     
  18. Offline

    ben1996123

    Using build 529, it was working fine, but now, i cant add anything to the list. I'm trying /shop add 7:1 40 1
     
  19. Offline

    ats1080

    2011-04-01 14:33:20 [SEVERE] Nag author: 'Nijikokun' of 'SimpleShop' about the f
    ollowing: onPluginEnable has been replaced with a new signature, (PluginEnableEv
    ent)

    i keep getting this in the log. i suppose im supposed to nag you?
     
  20. Offline

    Spazmic

    Please make it compatible with latest RB :p
     
  21. Offline

    JDD

    [INFO] No source for SimpleShop.jar ask the Author to give me one.

    I know you have iConomy and iChat setup to work with CraftBukkitUpToDate, was wondering if we could get this wonderful little guy setup to auto-update as well.
     
  22. Offline

    TAT

    UNOFFICIAL V.1.42 - Tested working on #617

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 15, 2016
    unachemaxwell likes this.
  23. Offline

    Steve Member

    Clean install doesnt seem to like the upgrade path:
    Code:
    02:05:19 [INFO] [SimpleShop] Creating database.
    02:05:19 [SEVERE] [SimpleShop]: Could not create table for sqlite: java.sql.SQLException: no such table: main.balances
    02:05:19 [INFO] [SimpleShop] Database Created.
    02:05:19 [INFO] [SimpleShop] Update to version 1.41 required.
    02:05:19 [INFO]  - Updating SQLITE for 1.3
    02:05:19 [SEVERE]  x Update failed : sqlite: java.sql.SQLException: duplicate column name: stock
    02:05:19 [INFO] [SimpleShop] hooked into Permissions.
    02:05:19 [INFO] [SimpleShop] version [1.41] (Sen) loaded
    
     
  24. Offline

    unachemaxwell

     
    Last edited by a moderator: Dec 15, 2016
  25. Offline

    Jorrdan

     
    Last edited by a moderator: Dec 15, 2016
  26. Offline

    Runelynx

    Where can I get an items.db for this?
     
  27. Offline

    TAT

    Please download the default content of folder SimpleShop here: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 15, 2016
  28. Offline

    Steve Member

    Also noticed:
    Code:
    23:23:25 [SEVERE] Nag author: 'Nijikokun' of 'SimpleShop' about the following: onPluginEnable has been replaced with a new signature, (PluginEnableEvent)
     
  29. Offline

    pvtv3ga

    When I type "/shop add 1:64 10 2" it says 'What is 1:64?" I have Permissions set up correctly and I am an admin.
     
  30. Offline

    TheDeejay

    I had assumed that if I set the buy price to zero that an item would only be sellable and not buyable. However, when I do that the shop just gives people items for free. Luckily a friend caught it, or people would just be spawning unlimited golden apples. How do I make an item unbuyable, but sellable?

    Also, in a similar respect, how do I make an item unsellable? I know that as of current we have sell prices set to zero, but is there any way to prevent an item from being sold as to prevent accidental item sales for 0 profit?
     
  31. Offline

    Nachocuban

    set -1 as the buy value to make it unbuyable, and just keep it at 0 for selling. Setting sell values to -1 has caused the server to crash for me.
     
    TheDeejay likes this.

Share This Page