For my server, what I do for such use-cases is simply spawn in a player via CarpetMod. e.g.
Rcon client for Minecraft
If running on Linux, you could use a use mcron and add that to the systemd script
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Extra Features for Carpet Mod
Personally, I'm a fan of the "Auto-Crafting Dropper," part of the CarpetExtra mod. Autocrafting that isn't overpowered. Really nice to be able to compact iron/gold/etc farm output into blocks. Video overview:
How do I reconnect to a tmux screen?
1 project | reddit.com/r/admincraft | 3 Jul 2022
Automatic restart for Minecraft server
1 project | reddit.com/r/Minecraft | 14 Feb 2022
Making Plugins Compatible / Automating Pre Existing Ones
1 project | reddit.com/r/admincraft | 11 Nov 2021
Web-based (PHP) DataPack Manager - Permits upload, enable, disable, and delete of DataPacks
1 project | reddit.com/r/admincraft | 15 Aug 2021
accessing server terminal (home hosting)
1 project | reddit.com/r/admincraft | 12 Jun 2021