cronmc: Automate Your Minecraft Server Tasks Easily

Schedule server tasks effortlessly with cronmc for Minecraft. Automate backups, restarts, and more with this powerful add-on.

cronmc: Schedule Tasks on Your Minecraft Server

Running a Minecraft server involves a lot of repetitive chores. You need to make backups, restart the server, broadcast messages, and more. Doing all of this manually is tedious and error-prone. That's where cronmc comes in. This add-on brings cron-like scheduling to Minecraft, letting you automate almost any server activity. Whether you run a small survival world or a massive modded network, cronmc can save you time and keep your server running smoothly.

What Is cronmc?

cronmc is a server-side add-on that allows you to schedule tasks using a familiar cron syntax. If you've ever used cron on Linux, you'll feel right at home. You define schedules in a configuration file, and cronmc executes commands or actions at the specified times. Under the hood, it uses the cron4j library, which is licensed under the LGPL. The add-on itself is licensed under the MIT license, so you're free to use it in modpacks—just give a shout-out if you do.

The add-on is designed for server administrators who want to automate routine tasks. It works with a variety of Minecraft versions and loaders. For example, cronmc supports Forge and Fabric for Minecraft 1.16 through 1.20, with more versions being added regularly. Always check the documentation for the exact version compatibility.

Key Features of cronmc

cronmc offers a range of features that make server management easier:

  • Scheduled Commands: Run any server command at specific times or intervals.
  • Automated Backups: Schedule regular world backups without manual intervention.
  • Server Restarts: Restart your server during low-traffic hours automatically.
  • Broadcast Messages: Send announcements to players on a schedule.
  • Custom Scripts: Trigger complex sequences of commands.
  • Flexible Scheduling: Use cron expressions for precise timing.

These features make cronmc a versatile tool for any server owner. You can focus on building and playing while cronmc handles the boring stuff.

How to Install cronmc

Installing cronmc is straightforward. Here's a step-by-step guide:

  1. Download cronmc from the official source. Make sure you get the version that matches your Minecraft version and mod loader.
  2. Place the downloaded JAR file into your server's mods folder.
  3. Start or restart your server. cronmc will generate a configuration file.
  4. Edit the configuration file to define your scheduled tasks. The file uses a simple syntax: specify the cron expression and the command to run.
  5. Reload the configuration or restart the server to apply changes.

For detailed instructions, refer to the wiki. The wiki covers advanced usage, including examples of cron expressions and command syntax.

If you prefer a hassle-free installation, consider using the foxygame.net launcher. It offers a one-click install for cronmc, automatically placing the add-on in the correct folder and handling version compatibility. This launcher also keeps cronmc up to date, so you never miss new features or bug fixes.

Using cronmc: Examples

To give you an idea of what cronmc can do, here are a few examples of scheduled tasks:

  • Daily Backup: 0 0 4 * * ? — Runs a backup command every day at 4:00 AM.
  • Hourly Announcement: 0 0 * * * ? — Broadcasts a message every hour.
  • Weekly Restart: 0 0 3 ? * SUN — Restarts the server every Sunday at 3:00 AM.

These are just a few possibilities. With cronmc, you can schedule virtually any command or action. The cron syntax is powerful but easy to learn, and the wiki provides plenty of examples.

Why Use cronmc?

Automation is key to running a successful Minecraft server. Manual tasks are time-consuming and can lead to mistakes. cronmc eliminates that by handling everything automatically. You get consistent backups, timely restarts, and regular announcements without lifting a finger. Plus, it's lightweight and doesn't impact server performance.

cronmc is also highly configurable. You can define multiple schedules, use complex cron expressions, and even chain commands. Whether you're running a small server for friends or a large public server, cronmc scales to your needs.

Conclusion

cronmc is an essential tool for any Minecraft server administrator. It brings the power of cron scheduling to Minecraft, allowing you to automate backups, restarts, messages, and more. With support for popular mod loaders and Minecraft versions, it's easy to integrate into your setup. Download cronmc today and take the first step toward a more automated server. Your future self will thank you.