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!
@Ackoco
Works here! Do you have vault installed? or bukkitSQL?
@BlockCat using stockcraft for my tekkit launcher. stockcraft v0.5 minecraft 1.2.5
not working :(
@BlockCat
maybe its a plugin conflict
@SQ10
I can't seem to reproduce this .
@Ackoco
After updating?
I get the exact same error as SPUK1. I am running version 1.2.5. is there something i am missing?
I have this error (im running java 7)
java.lang.NullPointerException at StockCraft.StockCraft.onEnable(StockCraft.java:43) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
THX :)
@SPUK1
Fixed it.
I have these error:
2012-08-25 23:00:09 [INFO] [StockCraft] Enabling StockCraft v0.3 2012-08-25 23:00:09 [SEVERE] Error occurred while enabling StockCraft v0.3 (Is it up to date?) java.lang.ClassCastException: org.anjocaido.groupmanager.GroupManager cannot be cast to net.milkbowl.vault.permission.Permission at StockCraft.StockCraftPermissions.initialize(StockCraftPermissions.java:27) at StockCraft.StockCraft.onEnable(StockCraft.java:66) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
@imilkywayz
It's open source! Do whatever you want.
@SPUK1
Under the files tab
Great, but where's the Donwload?
Someone have me an idea sort of like this awhile ago but I never bothered to go through with it. However if your looking for some help, I may be able to contribute some code assuming it's open source and license :P
Thanks!
old king returns..
There was lag in old plugin to listing stocks..
I think you have good idea for it.