This is a small utility that prints Minecraft server information to stdout.
It can print any of the follwing information for servers running 1.4 or newer:
- Server version
- Server MOTD (message of the day)
- Players currently online
- Player slots available
- None
- Make sure
gccand all dependencies are installed - Run the included
buildscript
mc-server [OPTIONS...] server_ip
Options:
f FORMATFormat string, see belowhPrint help text and exiti SECSServer query interval in seconds (default: 10)mKeep running and print after every server queryp PORTServer port (default is 25565)
Format specifiers:
%%: a literal%%p: players online%s: slots available%v: server version%m: message of the day
- Only print if the received information has changed from the previous query