Automatic chat messages on your Minecraft server (no plugins)
The link to your Discord, the rules, Saturday's event: if you repeat it by hand you forget, and if you don't, nobody reads it. An automatic chat message every few minutes fixes that, and you don't need a plugin. Here are two ways: a four-file data pack that works on Paper and vanilla, and the panel's schedules for hourly messages or a fixed day and time.
Which way suits you
If you want several messages taking turns every 10 or 15 minutes, with colours and links that open with a click, go with the data pack. It works the same on Paper and vanilla, on the free server and on a paid one, and it keeps working if you ever change host.
If one message an hour is enough, or one at a fixed time (“Event at spawn at 22:00” on Friday), use the panel's schedules: they take a minute to set up and you don't touch any files.
There are announcement plugins, but you don't need one for this, and one more plugin is one more thing to update with every Minecraft version.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
The data pack's four files
A data pack is a folder with a pack.mcmeta and some functions: lists of commands the server runs. The load function runs at startup and on every reload (minecraft:reload), and schedules the siguiente (“next”) function. That one shows a message and schedules itself again, so it repeats by itself while the server is on.
The messages take turns with a scoreboard that counts which one is next: 1, 2, 3 and back to the start. Swap the texts for yours and, if you want more messages, add more lines and raise the 4.. to the number of messages plus one.
The pack.mcmeta below is the one for 26.3. If your server runs another version, get yours with the pack.mcmeta generator: with a number that isn't your version's, the data pack won't turn on.
{
"pack": {
"description": "Automatic messages",
"min_format": 121,
"max_format": 121
}
}{
"values": ["anuncios:load"]
}# At startup and on every minecraft:reload
scoreboard objectives add anuncios dummy
schedule function anuncios:siguiente 600s replace# Every 600 seconds (10 minutes), the next message
scoreboard players add #turno anuncios 1
execute if score #turno anuncios matches 4.. run scoreboard players set #turno anuncios 1
execute if score #turno anuncios matches 1 run tellraw @a {"text":"Not on our Discord yet? Click here","color":"aqua","click_event":{"action":"open_url","url":"https://discord.gg/YOUR-CODE"}}
execute if score #turno anuncios matches 2 run tellraw @a {"text":"Remember: no breaking other people's builds. The rules are at spawn.","color":"gold"}
execute if score #turno anuncios matches 3 run tellraw @a {"text":"Saturday at 22:00, event at spawn. Bring your friends!","color":"green"}
schedule function anuncios:siguiente 600s replaceHow often: seconds, not minutes
The schedule time only understands three units: t (ticks, 20 per second), s (seconds) and d (in-game days, 20 real minutes each). There are no minutes: 10m is an error and the data pack repeats nothing. For 10 minutes, 600s; for 15, 900s; for 30, 1800s. Change it in both functions.
The replace at the end means there are never two loops running at once, even if you reload several times in a row.
Don't overdo it: a message every 10 or 15 minutes gets read; one every minute floods the chat and people stop looking. Three or four messages taking turns are plenty.
Uploading it to your server
Make the folder on your PC
A folder called
anuncioswith the four files at their paths, as above. Save them as UTF-8 (the default in Notepad on Windows 11) so accents and special characters come out right.Zip it the right way
Zip what's INSIDE
anuncios(thepack.mcmetaand thedatafolder), not the folder itself: when you open the .zip you should seepack.mcmetastraight away.Upload it to datapacks
In the panel, “Files” → the world folder (
world, unless you changed it) →datapacks, and “Upload” the .zip. If you'd rather not use your PC, you can create the folders right there with “Create Directory” and each file with “New File”.Load it and test it
Restart the server or type
minecraft:reloadin “Console” (on Paper, plainreloadalso reloads plugins, which can cause them trouble).datapack listshould show it as enabled. To see the first message without waiting,function anuncios:siguiente.
Stopping, changing or removing it
To stop it until the next restart, schedule clear anuncios:siguiente. To remove it for good, delete the .zip from datapacks and restart.
To change a message, edit siguiente.mcfunction and type minecraft:reload. Colours, bold and links are quicker to put together with the /tellraw generator: copy what comes after tellraw @a and paste it on its line. What you can put in each message is covered in the /title and /tellraw guide.
If the server is empty, Minecraft pauses the world after the seconds set in “Pause the empty world (seconds)” (in “Settings”), and the message timer with it: it carries on where it was when someone joins again. No message is lost and nobody reads messages in an empty chat.
With the panel's schedules
In “Advanced settings” → “Schedules”, pick “Send a message to players” and type the text: it shows in chat as [Server] followed by your message. Under “When”, “Every few hours” (every 1, 2, 3, 4, 6, 8 or 12), “Every day” at a set time or “Some days of the week”. Times are Spain time (Madrid).
For a message with colour or a link, pick “Run a console command” and paste the tellraw @a {…} without the slash. The field takes up to 200 characters: for longer messages, use the data pack.
Several different messages through the day are several schedules, each at its own time. And “Run it now” sends it straight away, so you can see how it looks.
And in Project Zomboid or Hytale
“Send a message to players” is also there for Project Zomboid and Hytale, with the same “When” options. Valheim has no console command for messages, so that option doesn't show up.
Frequently asked questions
How do I set up automatic messages on my Minecraft server without plugins?
With a four-file data pack: a function that shows the message with tellraw and schedules itself again every 600 seconds. It works on Paper and vanilla.
Why doesn't schedule work with minutes?
Because it only accepts ticks (t), seconds (s) and in-game days (d). For 10 minutes, type 600s.
Can I add a Discord link that opens with one click?
Yes: in the tellraw, click_event with the open_url action and the address. It must start with https:// or http://.
Can I schedule a message in the NapNodes panel?
Yes, in “Advanced settings” → “Schedules” → “Send a message to players”, every few hours, every day or on some days of the week.
How do I stop the automatic messages?
Until the next restart, schedule clear with the function's name. For good, delete the data pack from the datapacks folder and restart.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Free tool: /tellraw and /title generator. Messages with colours, bold and click actions in chat or across the screen: the /tellraw or /title command ready to copy.
Free tool: pack.mcmeta generator. The pack.mcmeta for your data pack or resource pack with each version's format number (1.14 to 26.3), plus a checker for yours.
Keep reading
- The /title and /tellraw Commands in Minecraft: On-Screen and Chat Messages for the Whole Server
How to put a message in the middle of everyone's screen with /title, above the hotbar, or in chat with colors and links with /tellraw, from the console.
- Minecraft Gamerules: keep_inventory and the Rules Servers Ask for Most
Why gamerule keepInventory no longer works, the new name of every rule and how to set the popular ones on your server: inventory, sleeping, PvP and fire.
- Mods and Plugins Together on a Minecraft Server: Hybrids and Alternatives
Can you run mods and plugins together in Minecraft? What Arclight, Mohist and Youer are, their problems, and the mods that do what your plugins do.