suspiciousRaccoon / python-minecraft-commandline-server-script

A simple python script to manage a minecraft server from the command-line.
MIT License
1 stars 0 forks source link

Execute command #1

Open bihkoo opened 5 months ago

bihkoo commented 5 months ago

I tried it, and this is only work with vanilla server. how to make this work with spigot sever?

suspiciousRaccoon commented 4 months ago

Hey. Sorry for answering so late.

I made this small script while I was learning how the subprocess lib worked. What it does is send all the commands to the stdin of the minecraft server. I'm not sure what spigot changes, but I assume it changes the ability to write to the stdin of the process.

The script is also extremely simple, it only works for a single server, the script must be running in the shell at all times, and while Popen will leave the server running it won't try to find the server again if you restart the script, so you'd end with multiple instances of the server running.

I'm not sure what is your use case, but MCDReforged might be more useful.