I'm currently working on a Minecraft Server Manager by myself, which should be able to handle all kinds of Minecraft Servers...
I've managed to get it working with a normal (Bukkit) Server with both redirecting the Input and the Output of the server...
But I found out, while testing, that I got some issues working with BungeeCord Servers (Minecraft Proxy Servers)... It seems, that the StandardInput of the Process is not working... Although I don't get any Exceptions on the UI Process and on the ErrorOutput, it looks like that my commands I'm trying to use were not executed on the server....
What I have tried:
I tried to use
StandardInput.Write("command")
, as well as
StandardInput.Flush()
for making sure that the server may get the commands, but both didn't change anything....
I also made some researches, but it looks like, that most people just used a normal bukkit server, which is already working with my code...
My code is based on a snippet I've found on the net, with only some small changes like changing the stop command to "end" because this is set as a default for BungeeCord Servers
This is the link of the snippet:
https://gist.github.com/NoobTaco/4a597d3fd2b34f2af10e