MCRCON(1)
π MCRCON β bestie edition π
okay so real talk, this is mcrcon, the Gen Z Manual page (section 1, general commands, for the record) and it's literally just here to send rcon commands to a Minecraft server π yes that's the whole vibe.
β¨ SYNOPSIS β¨
mcrcon [ options ] [ commands ]
π¦ DESCRIPTION π¦
mcrcon is a Minecraft rcon client, bestie π
and it's not just for messing around in your world β it's built for remote administration and for server maintenance scripts. so like, actual sysadmin main character energy, no cap π
πΈ OPTIONS πΈ
-Hβ the server address. default islocalhost, so if you're hanging out on your own machine you don't even gotta say it π-Pβ the port. default is25575π-pβ the rcon password π-tβ terminal mode π₯οΈ-sβ silent mode π€«-cβ disable colors π (sad but okay)-rβ output raw packets π¦ like, unprocessed, straight up-wβ wait for the specified duration, in seconds, between each command. the range is 1 - 600s β³-hβ print usage π-vβ output version information π
lowkey important: commands with spaces must be enclosed in quotes, fr fr. "like this" β¨
also!! mcrcon will start in terminal mode if no commands are given. so if you just wanna vibe in there interactively, don't pass any commands π
π ENVIRONMENT VARIABLES π
the server address, the port, and the password can all be set with these environment variables, so you don't have to type them every single time:
MCRCON_HOSTMCRCON_PORTMCRCON_PASS
ngl there's a catch: command-line options will override environment variables. the CLI always wins, periodt π
π§ EXAMPLES π§
make an rcon connection in terminal mode using the default port
mcrcon -H my.minecraft.server -p password
send the "weather clear" command to the server using custom port 1337
mcrcon -H my.minecraft.server -P 1337 -p password "weather clear"
send three commands ("say", save-all, stop) and wait five seconds between the commands
mcrcon -H my.minecraft.server -p password -w 5 "say Server is restarting!" save-all stop
look at that last one β it's giving automation, it's giving graceful restart, it ate π β¨
π BUGS π
found a bug? don't suffer in silence bestie, report it to tiiffi+mcrcon at gmail or right here: https://github.com/Tiiffi/mcrcon/issues/ π«Ά
okay that's the whole page!! Version 0.7.2, from October 2021 β thanks for reading, ily, go restart your server responsibly πΈππ¦
π¦ where this page comes from
- fedora 43: mcrcon 0.7.2-10.fc43 Β· Zlib
- fedora 44: mcrcon 0.7.2-11.fc44 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms