This is a pretty old project of mine, but shows you how to wrap arround a seperate process thread in this case a java process.
We can stream the input/output using the "RedirectStandardInput" and "RedirectStandardOutput" handlers.
And assign the event handlers
[img]http://s10.postimg.org/veo4i9li1/mc_x.jpg[/img]
You could totally make your own Minecraft Server Controller with this, such as giving remote commands or login and all those things.
Good luck and enjoy!
p.s. If your gonna use my code, you must give me credits for my work.
Download Link
We can stream the input/output using the "RedirectStandardInput" and "RedirectStandardOutput" handlers.
Code
...
StartInfo.RedirectStandardInput = True
StartInfo.RedirectStandardOutput = True
StartInfo.RedirectStandardError = True
...And assign the event handlers
Code
...
AddHandler Process.OutputDataReceived, AddressOf OutputDataHandler
AddHandler Process.ErrorDataReceived, AddressOf ErrorDataReceived
AddHandler Process.Exited, AddressOf ProcessHasExited
...[img]http://s10.postimg.org/veo4i9li1/mc_x.jpg[/img]
You could totally make your own Minecraft Server Controller with this, such as giving remote commands or login and all those things.
Good luck and enjoy!
p.s. If your gonna use my code, you must give me credits for my work.
Download Link
