Saren-Arterius / minecraft-server-launcher

A Minecraft server(s) launcher written in Python
2 stars 1 forks source link

Could this potentially have Lilypad-[Connect|Proxy] support? #1

Closed Leopere closed 1 year ago

Leopere commented 9 years ago

For those of us who are allergic to the bungee variety of network.

Saren-Arterius commented 9 years ago

I think it's possible since the launcher just starts and wraps the jar executable. Also, in order to terminate the servers gracefully, the wrapper just do the following things:

screen.send_commands("stop") # This is to terminate a bukkit/spigot/etc minecraft server instance
screen.send_commands("end") # This is to terminate a bungeecord

If you want to use other proxy, you can just add your terminate command after these lines.

Leopere commented 9 years ago

I will have to brush up on my python I really never put it into practice at all if I'm going to code anything.

Saren-Arterius commented 9 years ago

Adding another stop command doesn't require you to screw with python. For example, if your proxy uses "terminate" as stop command, just add a screen.send_commands("terminate") after those two commands.

Leopere commented 9 years ago

I believe that Golilypad-Proxy and Golilypad-Connect use "end" so it would likely be. screen.send_commands("end")