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

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

  1. Offline


    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.

    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!
    Show Spoiler
    To activate stock open up the .settings file and locate use-stock=false set it to true.
    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
    • 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
    • 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


    well i figured out how to solve the crash problem remove the whole simpleshop plugin + database then reinstall and create the txt file he said then it works
  3. Offline


    what is excactly this "stock" feature?
  4. Offline

    Robert White

    I am still having some problems setting up shops for different dyes as well in the latest version (1.3).

    In my items.db I have this:

    When I type "/shop add RedDye:1 2 2", it returns "Invalid Item." Thoughts?
  5. Offline


    I have the same problem. Isthere any solution yet?
  6. Offline


    What permissions did you use to allow players to use the /shop commands? The default groups has:
    iConomy.payment, iConomy.rank, iConomy.list, simpleshop.buy, simpleshop.sell

    They can type /shop to view commands, but can not sure /shop sell or /shop buy commands. Any help?
  7. Offline


    It is a feature that keeps track of the amount of inventory the shop has so that you can only buy things that are currently in stock. You can add stock to the shop either by selling the shop that item or by manually adding it via commands.
  8. Offline

    Nathan C

    Took about 1 hour to add 100 items to the shop, and now it says that "there is no items available for sale".

    Also I seem to get frequent server crashing do to this plugin.

    Also for everyone that asks............stock does NOT work at all.
  9. Offline


    Yeah stock is broke bad, dont know about the rest
  10. I get the same problem every time :(

    [iConomy] version [2.2] (Aime) loaded
    [Permissions] version [2.0] (Handler) loaded
    [SimpleShop] version [1.3] (Yen) loaded
    [SimpleShop] Update to version 1.3 required.
    - Updating SQLITE for 1.3
    x Update failed : sqlite: java.sql.SQLException: duplicate column name: stock

    i can see the commands:

    but no add
    and when i try /shop add 1:64 10 2 nothing happens.

    What to do?
    i have mac os x
  11. Offline


    There is a significant problem with my install, i'm using sqlite, dl direct off the OP link,
    i added a bunch of items to the shop and anytime anyone types /shop list 2 they get kicked with an "index out of bounds"

    help, plz?
  12. Offline


    Setting some items, such as diamond, at a buy price of 0 and a sell price of 10,000 allowed players to buy diamond for 1,000. Same for any other item with a buy price of 0. Just had the market flood with diamonds due to this.
  13. Offline


    When i try to sell stuff on the shop i get this error :

    Feb 9, 2011 10:09:45 PM 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$5.execute(JavaPluginLoader.java:144)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:214)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:602)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:575)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:315)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:230)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-09 22:09:45 [INFO] thunderbug issued server command: shop sell 3 64
    This on various versions of bukkit and i use a mysql connection. (i didn't added the data in-game but directly in the database can this be a problem ?)
  14. Offline

    Nathan C

    Ok, I am posting this for everyone.

    This plugin does NOT work.

    Even if you get it to work, you will either get errors, glitches or server crashes.

    Just wait until he updates it.
  15. Offline


    I just got so excited about the stock feature............. and then this =(

    All I want, is for people to be able to mine/trade/sell their items to one another.
    Anything before that is just pointless to me.
  16. Offline


    How do i make such as /shop add 5:64 2 1, how do i make the 5 the name Wooden Plank? cause when people try to but it, it just says unknown and they dont know what is is
  17. Offline


    it's further broken. You cant go to page to one the shop list lol. wow
  18. Offline


    Hey Nijikokun,
    Much respect for all your plugins and hard work =D

    Do you have plans to release 1.4? Currently I'm using your shop plugin, and I always have, even from from hMod.

    I LOVE the Idea of shop stock, but I can't seem to get it to work.

    A shop that just hands out cobblestone (for example) all day long to anyone with enough gil..... generaly ends up with me doing a rollback on the HUGE square cobble "block" someones make out of it. If I knew that someone had actually spent time and energy to mine all that cobble, and then someone paid to use it~ I'd feel much better.

    Please let us know your plans, and keep up the great work!
    --- merged: Feb 11, 2011 9:27 AM ---
    This is what I'll get After doing the following:

    /shop add stone:64 32 32 64


    /shop check stone
    (I'll see the buy and sell price, but not the stock)


    /shop buy stone
    After typing that, I get the error message below in the console. I'll also get nothing ingame.

  19. Offline


    i cant sell anything it says you do not have enough of that item when i do /sell and when i do /shop sell 2 10 nothing happens
  20. Offline


    everything works for us except /shop to check items wont work since update to shop 1.3 and /shop list will crash any one who tries, and a quick tip to any one spending hours to turn there old hmod global shop to the new sqllite format i used navcat premium to xport the new shop.db to give me an empty table then i xported it to a txt file seperated fields by a comma after manualy entering one then i re arranged my old flat file to look like what it exported putting a 99999 where i didnt want people to buy and a 0 for sell using the replace in MSword then i imported and everything seem to be good, when she updated i used MSword to replace "99999" with "-1" and ",0," with ",-1," and everything works fine except i have yet to try to use stock. no weird free stuff or not taking items away but i don't allow people to buy stone or cobble only sell.
    this is the error i get from the console when using shop list
  21. Offline


    I got this installed and it's all working beautifully. I'm just curious... Is there a way to either list the item IDs when people type "/shop list", or a way to make items purchasable by their names?
  22. Offline


    Can you add dyes to shop? if so can i get a few command examples like the blue.... red... pink. All of them would be nice xD
  23. Offline



    Your Warp Gate Plugin and this one Crash Minecraft whenever you use a list command. So /shop list and /wg list
    I am running the latest craftbukkit as of now - (About build 304 I think)

    Here is the error report:

          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.
    --- BEGIN ERROR REPORT a1dce528 --------
    Generated 12/02/11 11:03 PM
    Minecraft: Minecraft Beta 1.2_02
    OS: Windows 7 (x86) version 6.1
    Java: 1.6.0_22, Sun Microsystems Inc.
    VM: Java HotSpot(TM) Client VM (mixed mode), Sun Microsystems Inc.
    LWJGL: 2.4.2
    OpenGL: GeForce 9400M/PCI/SSE2 version 3.1 NVIDIA 188.61, NVIDIA Corporation
    java.lang.StringIndexOutOfBoundsException: String index out of range: 93
        at java.lang.String.charAt(Unknown Source)
        at nh.a(SourceFile:152)
        at nh.a(SourceFile:119)
        at pe.a(SourceFile:238)
        at ll.b(SourceFile:346)
        at net.minecraft.client.Minecraft.run(SourceFile:668)
        at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT 557fb44f ----------
  24. Offline


    Aint you working or supporting on your plugins anymore?
  25. Offline


    Like the rest of us, he has to sleep occasionally.
    bLazem and unya like this.
  26. Offline


    Well adding -1 at the last line on items, if you don't use stocks (which is borked anyway) will crash the client when someone does /shop list. Also I'm having the problem that only page 1 shows up. This seems to be a MySQL problem. The items get added to the DB just fine, but seems there is a problem between the DB and the java.
  27. Offline


    Is there any way to change the (YEN) when i type /shop? I want to to show to proper Currency we use. But I dont know how to change it and its not in the Simpleshop settings that i can see
  28. Offline


    It's 2:45AM here and I'll post the error log probably tomorrow (tired...), but this plugin was causing all my other plugins to not want to work at all, despite even loading (b321)
  29. Offline


    I'm using 322 with a plethora of other plugins and it all works perfect.
    --- merged: Feb 13, 2011 8:59 AM ---
    "YEN" is what the plugins build-name is... It changes every time Niji updates.
  30. Offline


    I think I check this thread once a day hoping for a bugfixin' update :(
  31. Offline


    I'm assuming it's conflicting plugins, because once I removed SimpleShop everything started working once again.

Share This Page