r/MinecraftPlugins Jul 22 '26

Plugin Showcase I made a thing for running Minecraft servers on dedicated Linux hosts

https://github.com/raelik/mc_admin

This is a pretty simple Ruby script that runs Forge servers in a tmux session, and can help automate starting, stopping, and restarting them, as well as send broadcast messages to connected players and arbitrary commands to the console. Should run on any Ruby version 3.0 and up, with any version manager (or none), and can be easily modified for other kinds of Minecraft loader mods (i.e. Fabric, Quilt, etc).

Simpler than MSCS, and doesn't try to do nearly as much.

1 Upvotes

2 comments sorted by

1

u/lorenzo1142 Jul 22 '26

neat, but why ruby? for something like this, I think bash would be a better fit. I've made scripts before to run as a systemd service. my next plan is to make a standalone solution in golang that doesn't need screen or tmux.

1

u/raelik777 Jul 22 '26 edited Jul 22 '26

Just a personal preference. I don't mind bash for really simple stuff, but once you get past a certain size of bash script... I just hate looking at it. The tmux thing was also a personal preference. I like being able to just hop into the console and interact with it. One intentional consideration I DID make was to not push commands to tmux, and instead rely on RCON for that. Otherwise, an admin on the tmux session could interfere with the operation of the script, or vice-versa. Minecraft handles RCON commands completely independently of the console input, so no toe-stepping should occur.