Wait, you're making a server manager? You shouldn't need to deal with access tokens for servers.
For a server, it should just be:
Code:java -jar {minecraft server jar} -server -Xms{min memory}M -Xmx{max memory}M nogui
See, that's what I was thinking. I wonder if Unity is what's giving OP problems, but I really don't know much about this.
I'm very sorry if this is confusing to anyone. Maybe I need to rephrase myself to make it clear.
I'm making a server manager. In Unity3d. What it will do is download, install, and run these servers. The user chooses what MC version the server will use.
One of the features that it will have is launching the full game as well as the server. It will launch the version of Minecraft that the server is running. This is to help make the server-making process a little more automated and make it easier for n00bs to play with friends.
Launching a server from command line is relatively easy. This has already been implemented into my project; what I was missing was launching the game itself.
I don't know much about Unity, but since it's C#, hopefully it has all the OP needs: System.Diagnostics.Process
Yes; this is how I launch the server, and probably how I am going to launch the game itself as well.
Wait, Unity is just C#? That makes it seem rather overly glorified, but I have a personal animosity against .NET languages.
Unity is C# and Java. It used to support Boo - idk what ever happened to that though.