[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

    Giant

    Attached Files:

  3. Offline

    Runelynx

    Do you tihnk itll work with 432 as well?
    --- merged: Mar 1, 2011 10:14 PM ---
    And THANK YOU!!! this is a great shop plugin, so nice and simple! No crazy crap... :)
     
  4. Offline

    Giant

    I don't know if it'll work,
    try it I'd say? :)

    Edit:
    Just tried on 432, seems to work like a charm :)
     
  5. Offline

    DerET

    Doesn't work with build 450+ or Permissions 4.0
    My complete shop list is useless -.-
    --- merged: Mar 2, 2011 5:54 AM ---
    Nice try but could you update it to build 450+ ?
     
  6. Offline

    Olat

    Thanks for the effort, but I get massive errors when im using iCon 4.1, and this unofficial SimpleShop.
     
  7. Offline

    Giant

    Well, without any errors, I can't fix anything.......

    I can try to :)
    No promises though
     
  8. Offline

    DerET

    I hope it won't take much (of your free) time :)

    Are there any alternatives? I could try to convert my table...
     
  9. Offline

    Giant

    I just find out:
    My local build works with:
    CB #455
    iCo #4.1
    Perm #2.4

    it's still a little in development stage though, trying to put itemtypes into it, so you can use the items like the half steps and dyes too. :p
    Also: command structure is changed a bit, AND Help V0.1 support is added!! :)
    --- merged: Mar 2, 2011 6:31 PM ---
    Ok here is the new build :)

    Changelog:
    V1.4.1
    - Changed from PLAYER_COMMAND to PLAYER_COMMAND_PREPROCESS
    - Modified command structure, now is:
    /shop [buy|sell] [id] (amount)
    /shop [add|update] [id] (amount) (buy) (sell) (stock)
    - Added Help V0.1 support
    - Added setting "broadcast-buy" if set to true, will sent a global message about buy event. Set to false to disable!
    - "Fixed" player balance showing after buy

    tested with:
    CB #432, #448 and #455
    iConomy #4.1
    Permissions #2.4
     

    Attached Files:

  10. Offline

    DerET

    [​IMG]
    Thank you Giant, it seems to work fine...
    --- merged: Mar 2, 2011 8:10 PM ---
    It automatically shows which player bought which item. How to disable it?
     
  11. Offline

    Giant

    Aah, that :p
    I'll put a setting in for that :)
    --- merged: Mar 2, 2011 9:12 PM ---
    Re-download

    set broadcast-buy to false in simpleshop.settings :)
    --- merged: Mar 4, 2011 12:09 AM ---
    Yay,
    I just finished item type support :)

    So now you can put items like half wooden steps into shop :)

    Also, if you think something should be added, or find a bug, let me know :)

    tested with:
    CB #448, #455 and #493
    iConomy #4.x
    Permissions #2.4 and #2.5

    Changelog:
    V1.4.2
    - Added item type support
    - Fixed 2 commands not showing in Help V0.1

    Commands:
    /shop buy [id]([:type]) (amount)
    /shop sell [id]([:type]) (amount)
    /shop add [id]([:type]) [amount per bundle] [sell] [buy] (stock)
    /shop update [id]([:type]) [amount per bundle] [buy] [sell] (stock) (old type)
    /shop remove [id]([:type])
     

    Attached Files:

  12. Offline

    DerET

    iConomy 4.3.1 is out and SimpleShop seems to be broken again :(
    ---
    [​IMG]
     
  13. Offline

    Giant

    hmmmmmm,
    Thanks for calling it in, I'll look into it! :)

    Edit,

    seems like it can't find your MySQL connector...... :(
     
  14. Offline

    DerET

    It's placed in my server root directory. I replaced simpleshop folder and jar only so I thought it's a problem with simpleshop and new iconomy version :(
     
  15. Offline

    Giant

    :(
    It works fine for me on SQLite and 4.3.2....
    try restoring the old simpleshop folder, only the jar is required after the first time :)
    That folder is there to make it easier for first timers, because it only contains VERSION.txt.
    (Maybe I should've been more clear about that, srry. :()
     
  16. Offline

    DerET

    Deleted the error completly -.-' I'm an idiot :D
    I will try to install it again with a empty table...

    Edit: Works with a empty MySQL table... The only thing I have to do now is to add every item again...
     
  17. Offline

    Giant

    haha, or just restore the old table? :)
     
  18. Offline

    Queepo

    Same error here not sure how you guys fixed it. I'm on CB 493.

    Thanks
     
  19. Offline

    DerET

    Also deleted, but I've added every thing last evening. Thx to Lucas Bennington - he made a nearly completete table in MS Excel. --- merged: Mar 5, 2011 10:29 AM ---
    I deleted my table completly and it worked ;)
     
  20. Offline

    ryanshawty

    I have the MySQL connector setup right, other plugins work with it, but this plugins can't find the connector class, any help ?
     
  21. Offline

    Giant

    read above....
    it's been said a couple times now I think......
    also: DO NOT replace the folder if you already use simpleshop, it is ONLY included for when you first set it up.
     
  22. Offline

    TE5LA

    I get errors. I can't get any economy functions to work except one in the basic iConomy plugin. I can type /money and get "30 Coin". Do the other commands like /buy and /sell require additional plugins? Maybe you can make sense out of this:

    Code:
    11:45:29 [INFO] Starting minecraft server version Beta 1.3
    11:45:29 [INFO] Loading properties
    11:45:29 [INFO] Starting Minecraft server on *:25565
    11:45:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-493-
    g8b5496e-b493jnks (MC: 1.3)
    11:45:29 [INFO] Preparing level "world"
    11:45:29 [INFO] Preparing start region
    11:45:30 [INFO] [Permissions] version [2.5] (Phoenix) was Initialized.
    11:45:30 [SEVERE] Could not load plugins\SimpleShop.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            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.lang.NoSuchMethodException: com.nijikokun.bukkit.SimpleShop.Simp
    leShop.<init>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
            ... 8 more
    11:45:30 [INFO] ChatBukkit v0.0.1 is enabled!
    11:45:30 [INFO] ÂșeLoaded Essentials build 243 maintained by Zenexer, ementalo, A
    elux, and Brettflan
    11:45:30 [INFO] Loaded EssentialsBan build 243 by Zenexer, ementalo, Eris, and E
    ggRoll
    11:45:30 [INFO] Loaded EssentialsChat build 246 by Zenexer, ementalo, Aelux, and
     Brettflan
    11:45:30 [INFO] Loaded EssentialsGod build 243 by Zenexer, ementalo, Eris, and E
    ggRoll
    11:45:30 [INFO] Loaded EssentialsHelp build 246 by Zenexer, ementalo, Eris, and
    EggRoll
    11:45:30 [INFO] Loaded EssentialsHome build 243 by Zenexer, ementalo, Aelux, and
     Brettflan
    11:45:30 [INFO] Loaded EssentialsProtect build 246 maintained by Zenexer, ementa
    lo, Aelux, and Brettflan
    11:45:31 [INFO] Loaded EssentialsSpawn build 243 maintained by Zenexer, ementalo
    , Aelux, and Brettflan
    11:45:31 [INFO] Loaded EssentialsTele build 246 by Zenexer, ementalo, Aelux, and
     Brettflan
    11:45:31 [INFO] Loaded EssentialsWarp build 246 by Zenexer, ementalo, Aelux, and
     Brettflan
    11:45:31 [INFO] [iConomy] Logging is currently disabled.
    11:45:31 [INFO] [iConomy] v4.1 (Kristen) loaded.
    11:45:31 [INFO] [iConomy] Developed by: [Nijikokun, Coelho] (Coelho is Smexier)
    11:45:31 [INFO] [Permissions] version [2.5] (Phoenix)  loaded
    11:45:31 [INFO] [iConomy] Successfully linked with Permissions.
    11:45:31 [INFO] [Reader] Mod Enabled - Version: 1.3
    11:45:31 [INFO] [Reader] Added: []
    11:45:31 [INFO] Rune blacklist with 0 runes loaded.
    11:45:31 [INFO] Loaded 19 waypoints, 23 teleporters, 2 position runes, 1 player
    data sets.
    11:45:31 [INFO] Loaded 12 block runes.
    11:45:31 [INFO] Runecraft 2.4.4 initialized.
    11:45:31 [INFO] Runecraft plugin version 0.1 is enabled!
    11:45:31 [INFO] ScrapBukkit version 0.2.1 is enabled!
    11:45:31 [INFO] Done (0.209s)! For help, type "help" or "?"
    >
    >
     
  23. Offline

    Giant

    wich version are you running?
    Does not seem like my unofficial build.
    The official build of nijiko is no longer supported :(
     
  24. Offline

    Queepo

    Tried deleting it but no file is created on restart, i've also tried blank db files with no success.
    --- merged: Mar 5, 2011 10:56 PM ---
    12:55:04 [SEVERE] [SimpleShop]: Database connector not found for sqlite: java.lang.ClassNotFoundException: org.sqlite.JDBC
    It's in the server root. I'm sure im doing something really stupid...

    Thanks
     
  25. Offline

    Giant

    hmm, that's odd, what build are you on queepo? and what sqlite version?
    Also, is VERSION.txt present?
    containing just "1.3" or "1.4"
     
  26. Offline

    Queepo

    CB 293
    sqlite 056
    and I have version.txt that says 1.4

    Thanks
     
  27. Offline

    TE5LA

    Of what? iConomy? I used the only one I could find that would actually start without errors. These plugins are getting out of hand :) A gazillion versions everywhere. If there's another, please give me a link.
     
  28. Offline

    Queepo

    What version of simple shop. You need to download from post #341.
     
  29. Offline

    Giant

  30. Offline

    Queepo

    I have only had the official builds working on much older CB's. This is a new server and fresh install. I tried that as well with similar errors. Heres my full error report.

    Code:
    15:27:10 [SEVERE] [SimpleShop]: Database connector not found for sqlite: java.lang.ClassNotFoundException: org.sqlite.JDBC
    15:27:10 [INFO] [SimpleShop] Creating database.
    15:27:10 [SEVERE] [SimpleShop]: Database connector not found for sqlite: java.lang.ClassNotFoundException: org.sqlite.JDBC
    15:27:10 [INFO] [SimpleShop] Database Created.
    15:27:10 [INFO] [SimpleShop] Update to version 1.4 required.
    15:27:10 [SEVERE]  x Database connector not found for sqlite: java.lang.ClassNotFoundException: org.sqlite.JDBC
    15:27:10 [SEVERE] com/nijiko/coelho/iConomy/system/Bank loading SimpleShop v1.4 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/system/Bank
        at com.nijikokun.SimpleShop.SimpleShop.setupCurrency(SimpleShop.java:211)
        at com.nijikokun.SimpleShop.SimpleShop.onEnable(SimpleShop.java:124)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
        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.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.system.Bank
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 12 more
    
    --- merged: Mar 6, 2011 2:56 AM ---
    I configured it to work with mysql with no errors except the large "is it up to date" one.
    --- merged: Mar 6, 2011 5:45 AM ---
    Just realized I have iConomy 4.3.3, does it work for it? Or is it still just me :/
     
  31. Offline

    Giant

    The thing I find strange is that I am unable to replicate the error :S
    Do you have the sql library located in your root?
    (sqlitejdbc-v056.jar)

    Could you give me a full list of your plugins?
    Maybe I can find out what's wrong then.
     

Share This Page