ModsJava
CronAnnouncer
Java mod listed for Minecraft 1.19. Download on the author's site.
⬇ Download on SpigotAbout
CronAnnouncer is a Bukkit/Spigot plugin to allow scheduling broadcast/title messages to all users using a cron expression. I made this since I had the use case to synchronize real-world events (e.g. notifying users about planned backups possibly impacting performance, special events taking place relative to the real world) to minecraft server ticks. For now, this works under the assumption that one second in the real world equals 20 server ticks while also taking into account possible sources of error by detecting and mitigating tick drift/autopausing.
Since this is still a work in progress I cannot guarantee the accuracy of any announcements - please use at your own risk!
Download and Installation
Download the latest jar file from the releases tab on GitHub, then place the downloaded .jar file in your Spigot/Paper server plugins subdirectory and restart the server.
Configuration
Edit the default config.yml file and uncomment the example.
Once you've made your changes, you will have to reload the plugin or restart the server.
See http://www.sauronsoftware.it/projects/cron4j/api/it/sauronsoftware/cron4j/SchedulingPattern.html for valid cron patterns.
Example configuration:
Please see the GitHub
README for detailed instructions.
Commands and permissions
Permissions node for all permissions:
/cronannouncer list
Lists all scheduled messages.
Arguments: none
Example:
Permissions node:
/cronannouncer add <message-key> <cron-expr> <message-text> <type>
Adds a new message to the config file and reloads the plugin. All arguments may be quoted if spaces are needed.
Arguments:
- message-key: a unique key for the message. Cannont contain spaces.
- cron-expr: A valid cron pattern, has to be in quotes. See configuration section for syntax.
- message-text: The content of the message. Color codes using & and $ are supported. Has to be in quotes if it contains spaces.
- type: The type the message should be. Can be either broadcast or title.
Example:
Permissions node:
/cronannouncer rm <message-key>
Removes the specified message as identified by the message key from the config file and reloads the plugin.
Arguments:
- message-key: the key of the message to remove (see config.yml reference)
Example:
Permissions node:
/cronannouncer reload
Reloads the config.yml file from disk and queues all scheduled messages.
Arguments: none
Example:
Permissions node:
CronAnnouncer is a Bukkit/Spigot plugin to allow scheduling broadcast/title messages to all users using a cron expression. I made this since I had the use case to synchronize real-world events (e.g. notifying users about planned backups possibly impacting performance, special events taking place relative to the real world) to minecraft server ticks. For now, this works under the assumption that one second in the real world equals 20 server ticks while also taking into account possible sources of error by detecting and mitigating tick drift/autopausing.
Since this is still a work in progress I cannot guarantee the accuracy of any announcements - please use at your own risk!
Download and Installation
Download the latest jar file from the releases tab on GitHub, then place the downloaded .jar file in your Spigot/Paper server plugins subdirectory and restart the server.
Configuration
Edit the default config.yml file and uncomment the example.
Once you've made your changes, you will have to reload the plugin or restart the server.
See http://www.sauronsoftware.it/projects/cron4j/api/it/sauronsoftware/cron4j/SchedulingPattern.html for valid cron patterns.
Example configuration:
Code (YAML):
schedules
:
# A unique key for your message. Used to identify messages for in-game commands like /cronannouncer rm <message-key>.
my-test-message :
# The content of the message being sent, with color support.
message : "&5My colorful message text running every 5 minutes"
# Cron expression defining the interval the message should be sent in
# See http://www.sauronsoftware.it/projects/cron4j/api/it/sauronsoftware/cron4j/SchedulingPattern.html for valid examples
schedule : "*/5 * * * *"
# supported types: broadcast/title
# broadcast: chat message
# title: title message (only using the big text for now)
type : broadcast
# A unique key for your message. Used to identify messages for in-game commands like /cronannouncer rm <message-key>.
my-test-message :
# The content of the message being sent, with color support.
message : "&5My colorful message text running every 5 minutes"
# Cron expression defining the interval the message should be sent in
# See http://www.sauronsoftware.it/projects/cron4j/api/it/sauronsoftware/cron4j/SchedulingPattern.html for valid examples
schedule : "*/5 * * * *"
# supported types: broadcast/title
# broadcast: chat message
# title: title message (only using the big text for now)
type : broadcast
Commands and permissions
Permissions node for all permissions:
Code (Text):
eu.kaesebrot.dev.cronannouncer.*
Lists all scheduled messages.
Arguments: none
Example:
Code (Text):
/cronannouncer list
Code (Text):
eu.kaesebrot.dev.cronannouncer.list
Adds a new message to the config file and reloads the plugin. All arguments may be quoted if spaces are needed.
Arguments:
- message-key: a unique key for the message. Cannont contain spaces.
- cron-expr: A valid cron pattern, has to be in quotes. See configuration section for syntax.
- message-text: The content of the message. Color codes using & and $ are supported. Has to be in quotes if it contains spaces.
- type: The type the message should be. Can be either broadcast or title.
Example:
Code (Text):
/cronannouncer add my-new-message "*/5 * * * *" "&2My message text being displayed every 5 minutes" broadcast
Code (Text):
eu.kaesebrot.dev.cronannouncer.add
Removes the specified message as identified by the message key from the config file and reloads the plugin.
Arguments:
- message-key: the key of the message to remove (see config.yml reference)
Example:
Code (Text):
/cronannouncer rm my-message-to-be-removed
Code (Text):
eu.kaesebrot.dev.cronannouncer.remove
Reloads the config.yml file from disk and queues all scheduled messages.
Arguments: none
Example:
Code (Text):
/cronannouncer reload
Code (Text):
eu.kaesebrot.dev.cronannouncer.reload
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.19
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CronAnnouncer is a free Minecraft Java mod. Compatible with Minecraft 1.19. Downloaded 222 times (via Spigot). Download it and open it directly in the game.