StockCraft
StockCraft - Trade real stocks in Minecraft
Stock api updated,
- Looking up stocks now goes faster!
- 15 minute delay from Yahoo again.
This is the continuation of the original StockCraft made by @henning77 But I couldn't reach him for 15 months... And the plugin has not been updated since, untill now!
Features:
- Buy and sell real stocks in Minecraft (courses from finance.google.com)
- Compare profit with other players
- More
Requirements:
- MYSQL Database
- economy plugin
- Permissions
- Vault
How to install:
- Install MYSQL Database if not available
- Install the missing plugins (iConomy,Permissions, Vault)
- Download the rar archieve
- Extract it to plugins
- 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!
- shorten=false -> change to true if you want to activate shorting (Check Wiki!)
- Vault=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!)
database:
- host: localhost
- port: '3306'
- database: stockcraft
- username: root
- password: ''
Commands:
- /stock help -> Help
- /stock ids [page]-> Shows the stocks that are available
- /stock ids symbol [page]-> Shows the symbols of the stocks that are available
- /stock ids s [page]-> Shows the symbols of the stocks that are available
- /stock course [id] -> Shows the course of the stock
- /stock list -> Shows your stocks if you have some
- /stock buy [id] [amount] -> to buy stocks
- /stock sell [id] [amount] -> to sell stocks
- /stock top -> Top 10 with the highest profit
- /stock add [id] [symbol] -> adds a new stock to the id list (you can find the symbol on finance.yahoo.com!)
- /stock addlist [name] -> adds new stocks from a file (examplelist: /addidlist examplelist) in /plugins/StockCraft/
- /stock remove [id] -> removes stock from the id list
Permissions: default to op.
- 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:
- /stock add BMW BMW.DE
Get new stocks:
If you want to add new stocks go to finance.yahoo.com and check the id
after that add the id in Minecraft:
- /stock add BMW BMW.DE
Donate:
Donate if you like this plugin!
@simpsda It costs google too much to manage hundreds of millions of processor heavy API functions per month. For new similar API support look to Microsoft Azure
I thought you were using Yahoo!'s finance API?
I wonder why Google is sun setting a lot of their API's...
Gah that really sucks :(
Thanks for updating, shame it's now back to being super exploitable, didn't know Google would kill such a cool API.
@Joymo
This is because the Google finance API stopped on 1 November... Now I have to find a new one D:
Getting critical errors from this plugin since recently:
http://pastie.org/pastes/8451956/text?key=wcvgdeuvmv8ohrnmxwpq
@Clinot
you may want to create a ticket also it might help if you include your server log and version plus any other relevant information.
All the commands says Unknown command.
Cant get this to work at all.
Im using EssentialsEco and i have a working database set up and running 1.5.2
I keep getting an unknown command error whenever I try to use a command from this plugin, I am getting this error on start up: 11:12:40 AM StockCraft: Enabling StockCraft v1.0 11:12:42 AM StockCraft: Couldn't get connection, wrong login? 11:12:42 AM CONSOLE: [SEVERE] Error occurred while enabling StockCraft v1.0 (Is it up to date?)
Hey you said check the wiki for information on the shorten=false... i dont see the link to the wiki?
@mobilephone2003
This is the problem of the delay, the google finance Api has a small delay.
Big glaring problem with this plugin, Google Finance shows stocks in real-time.
Unless this can constantly poll Finance, anybody can cheat this to oblivion.
If a stock on Server shows 20, and Google Finance shows 22, I'm going to buy 500 of those because I know the server is going to go up 2 on next update.
Guaranteed Profit.
Plugin working great for me now. Has anyone managed to put together like a complete list of Stocks?
@BlockCat
It is not just that, but it is trying to individually add stocks too. Much less making a list. Also Reloading StockCraft gives me issues.
@mohawkguy360
Do you have a valid list of stocks? there is no need to put .txt behind it.
@mohawkguy360
Every time I try to add: Wrong Usage?
/addidlist [list] Says unknown command?
/stock addlist [list] Nothing shows up? Nothing happens?
@Joymo
How can I recreate this error?
We're seeing some erratic stock changes:
http://oi36.tinypic.com/bwlye.jpg
That was in the course of seconds, the actual course when checked on Google Finance didn't fluctuate like that at all.
Jenkins died? :<
@toffse
Wrong java version, this uses java 7