Minecraft Server Status thingy
I was previously using Dinnerbone's mcstatus but it was quite slow, especially in Termux on my phone, taking multiple seconds to simply get the status... so here we are, and now it's fast.
mcstatusc <hostname> [port] [protocol version]
$ mcstatusc 127.0.0.1 | jq
{
"description": {
"text": "A Minecraft Server"
},
"players": {
"max": 20,
"online": 1,
"sample": [
{
"id": "REDACTED",
"name": "REDACTED"
}
]
},
"version": {
"name": "1.14.3",
"protocol": 490
}
}
jq, incase you don't have it already.
I supplied a PKGBUILD
in this repo for now. If this ever gets more than 0 users, I'll try to throw it onto the AUR.
A binary is built for each commit by Github Actions.
Build it. See below.
- Install
gcc
for your distribution - Run
make
- Download The Tiny C Compiler by Fabrice Bellard and add to your
PATH
- Run
make.bat
MIT. See LICENSE
in this repository for more info.