Inactive [ECON] StockCraft 0.3 - When minecraft players care about economy crisis [818]

Discussion in 'Inactive/Unsupported Plugins' started by henning77, Apr 18, 2011.

  1. Offline

    henning77

    StockCraft - Trade real stocks in Minecraft
    Version: v0.3

    Features:
    • Buy and sell real stocks in Minecraft (courses from finance.yahoo.com)
    • Compare profit with other players
    Downloads:
    Requirements:
    • MYSQL Database
    • iConomy
    • Permissions
    How to install:
    • Install MYSQL Database if not available
    • Install the missing plugins (iConomy,Permissions)
    • Download the rar archieve
    • Extract it to plugins
    • Modify StockCraft.cfg -> /plugins/StockCraft/StockCraft.cfg for connection to the Database
    • Add Stocks with /addid or load example list with /addidlist examplelist
    Config File:
    Edit your config file to access your database and to activate some functions!
    • url=//localhost:3306/minecraft -> change "minecraft" to the name of your database
    • user=root -> change "root" to your database user
    • password= -> Add password of your database
    • detailedpermissions=false -> change to true if you want to activate more permissions, if false you don't need to change permissions if admin rights are "*"
    • shorten=false -> change to true if you want to activate shorting (Check Wiki!)
    • iConomy5=true -> change to false if you want to use an old iConomy Version
    • fee=0 -> If you want a trading fee, you can set one here. (percentage of money paid for stocks!)
    • minimumfee=0 -> Here you can set a minimum fee! (You can leave fee=0 and set a static fee!)
    Commands:
    • /stockhelp -> Help
    • /ids [page]-> Shows the stocks that are available
      • /ids symbol [page]-> Shows the symbols of the stocks that are available
      • /ids s [page]-> Shows the symbols of the stocks that are available
    • /course [id] -> Shows the course of the stock
    • /stocks -> Shows your stocks if you have some
    • /stockbuy [id] [amount] -> to buy stocks
    • /stocksell [id] [amount] -> to sell stocks
    • /stocktop -> Top 10 with the highest profit
    • /addid [id] [symbol] -> adds a new stock to the id list (you can find the symbol on finance.yahoo.com!)
    • /addidlist [name] -> adds new stocks from a file (examplelist: /addidlist examplelist) in /plugins/StockCraft/
    • /removeid [id] -> removes stock from the id list
    Permissions:
    • stockcraft.addid -> add this to permissions plugin to allow admins or mods to add stocks
    • stockcraft.removeid -> to allow admins or mods to remove stocks
    • stockcraft.commands.* (only needed if you set detailedpermissions = true in stockcraft.cfg)
      • stockcraft.commands.course
      • stockcraft.commands.stockbuy
      • stockcraft.commands.stocksell
      • stockcraft.commands.stocktop
      • stockcraft.commands.stocks
      • stockcraft.commands.ids
      • stockcraft.commands.stockhelp
    Examples for stocks (with symbols):
    BMW BMW.DE
    DeutscheBank DBK.DE
    Lufthansa LHA.DE
    Commerzbank CBK.DE
    Telekom DTE.DE
    Infineon IFX.DE
    SAP SAP.DE
    Siemens SIE.DE
    SONY SON1.F
    ACER ACX.MC
    Oil CLK11.NYM
    Gold GCJ11.CMX
    Gas NGK11.NYM

    Example:
    /addid BMW BMW.DE

    Get new stocks:
    If you want to add new stocks go to finance.yahoo.com and check the id

    [​IMG]

    after that add the id in Minecraft:
    /addid BMW BMW.DE


    Changelog:

    Version 0.3
    • Added support for iConomy5 (you can still use old versions if you set iConomy5=false!)
    • Added pages to /ids -> /ids [page]
    • Added symbol optiion to /ids -> /ids symbol [page] or /ids s [page]
    • Added option to set trading fee
    • Fixed some bugs
    Version 0.2
    • Added the option shorten (you can sell stocks which you don't have and buy them later! -> (Check Wiki!) To activate set shorten=true in StockCraft.cfg
    • Added new permissions -> To activate set detailedpermissions=true in StockCraft.cfg
    • Added some error messages
    • You can load stocklists now! Look at /plugins/StockCraft/examplelist.txt! Load the list with /addidlist examplelist or load your own list!
    • Getting courses (/ids and /stocks) is now speeded up!
    Version 0.1
    • First Release
    Donate:
    If you want to support me
    Donate
     
  2. Offline

    alfskan

    Hi!
    I love this plug in and wanna use it! but..
    I dont know how to set the mysql table..
    It`s my first time using mysql.
    Searched and learned from web. Finally success to set database.
    but table is not.
    Im using mysql query browser.
    please can you help me?
    can you give me a example table for this plugin?
    or anyone help me please! lol
    If I succeed to run this plugin, I`ll donate of course!
     
  3. Offline

    alfskan

    Finally I solved it.
    open the source and made table myself.
    and it works.
    It didnt make the table automaticaly.
     
  4. Offline

    c_dric

    Edit : nvm, fixed. It was a firewall problem.

    Is it possible to use an external mysql db with this plugin ?

    I tried this in my config.cfg :

    url=//mysql.server.org:3306/dbname

    Code:
    [INFO] java.sql.SQLException: Access denied for user 'dbuser'@'(localhost_ip_here)' (using password: YES)
    It looks like my external mysql server is ignored and it tries localhost.
     
  5. Offline

    Muffindude

    Just got this plugin to work.:)
    Turns out that this plugin requires you to create your own tables for the database.
    Here is a dump of my database for anyone who wants it:
    Code:
    DROP TABLE IF EXISTS idtable;
    CREATE TABLE idtable (
      shortid varchar(10) DEFAULT NULL,
      longid varchar(50) DEFAULT NULL
    );
     
    DROP TABLE IF EXISTS stocks;
    CREATE TABLE stocks (
      name varchar(30) DEFAULT NULL,
      stockname varchar(50) DEFAULT NULL,
      amount int(11) DEFAULT NULL,
      sumpaid float DEFAULT NULL
    );
     
    DROP TABLE IF EXISTS stockstats;
    CREATE TABLE stockstats (
      name varchar(30) DEFAULT NULL,
      profit varchar(50) DEFAULT NULL
    );
    
     
  6. Offline

    minecraftworlds

    So one of my players is able to dupe this plugin :confused: he does /stockbuy <stockname> -<amount>. By putting the amount as a negative he gets all the money the stock would get him if he were to sell them if he owned them and he also gets the shares. so if someone does /stockbuy AAPL -10000 it will give them the amount of money 10,000 shares of apple are worth and give them the shares. Just a heads up and I hope you can fix this soon
     
  7. Offline

    SpawnSC

    Please update this plugin to 953
     
  8. Offline

    Kardocraft

    Is thi sgoing to be updated :(.
     
  9. Offline

    andrewkm

  10. Offline

    goldseed

    no update yet?
     
  11. Offline

    Clucky

    What is this?

    Code:
    13:28:03 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to StockCraft
    java.lang.NullPointerException
        at StockCraft.StockCraftCommands.infosystem(StockCraftCommands.java:366)
        at StockCraft.StockCraftPlayerListener.onPlayerCommandPreprocess(StockCraftPlayerListener.java:28)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:730)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    13:28:12 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to StockCraft
    java.lang.NullPointerException
        at StockCraft.StockCraftCommands.infosystem(StockCraftCommands.java:366)
        at StockCraft.StockCraftPlayerListener.onPlayerCommandPreprocess(StockCraftPlayerListener.java:28)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:730)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:435)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
    
    It happened when a player typed: /stocktop

    @henning77 When will this plugin be updated to 1060???

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

    henning77

    Sorry guys, I don't work on this anymore... I don't have time for it. But the source code is open so everybody can work on it.
     
  13. Offline

    Hayden06

    Please Update this plugin!!
     
  14. henning77
    Do you mind if i continue this plugin?
    I have made a little update on this plugin.
    <Edit by Moderator: Redacted mediafire url>
    It now uses vault.
     
    Last edited by a moderator: Dec 14, 2016
  15. This plugin receives way to less attention!
     
  16. Offline

    static829

    I want this plugin to work... beyond your imagining. Unfortunately I've installed it on multiple occasions and none of them has it ever worked; even Zino's supposed patch... tis' depressing.

    I realize it hasn't been updated... but I'm more curious as to why not :(
     
  17. Do you have mysql?
     
  18. Offline

    static829

    Problem is, it won't write to my database. Tried again tonight, and this seems to be a major part of the problem. :\

    and yes... MySQL
     
  19. Offline

    robot56

    I really doubt that this plugin will get updated as its been a couple of months with no word. Sadly, I don't think the devoloper plans on comming back due to the inactivity. Its about time that someone takes over and development of the plugin :) Zino
     
  20. Okay, then I will update this plugin.
     
  21. Offline

    TheFallenGod

    Zino Do you have a page for the update that you made an did all the perms/commands stay the same?
     
  22. Uhu, yes
     
  23. Offline

    transcrafter99

    For some reason, I can't get it to work (none of the commands work). I'm assuming it's because the plugin is out of date, is there a way I can fix this or will the author have to update it?​
     
  24. Offline

    Happyday887101

    Zino Does that still work for 1.2.5 R5?
     
  25. No, I will take a look into it soon.
     
  26. Offline

    Happyday887101

    If you would, I would love you.
     
  27. Happyday887101 transcrafter99 TheFallenGod specialy for you.
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Dec 14, 2016
  28. Offline

    Happyday887101

    [quote uid=36964 name="Zino" post=1246555]Happyday887101 transcrafter99 TheFallenGod specialy for you.
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    Thank you so much!

    [quote uid=36964 name="Zino" post=1246555]Happyday887101 transcrafter99 TheFallenGod specialy for you.
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    Wait, What do I do with BukkitSql? God I'm a noob.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 14, 2016
  29. Install it just like the rest. and you can configure the MySQL in the bukkitSQL folder.
     
  30. Offline

    Happyday887101

    But there is no Jar. Do I have to compile it myself?
     

Share This Page