Automated server messages are an easy way to send important information directly to your players in-game: server rules, events, tips, or a link to your Discord.
There are no schedules in the ZapX dashboard for your VPS. Instead, you can use the features of the Renown Dedicated Server itself and, if needed, your operating system's Task Scheduler. This guide explains how.
The easiest way to set a permanent message is with the message of the day. Players see it when they join your server. Set it in Game.ini, in the [/Game/Core/Blueprints/Renown_GameInstance.Renown_GameInstance_C] section:
MOTD=Willkommen! Regeln und Discord findest du auf unserer Website.
The file is located at Renown_Combat\Saved\Config\WindowsServer\Game.ini (Linux: Renown_Combat/Saved/Config/LinuxServer/Game.ini). Stop the server before editing the file, then start it again afterward. For instructions on finding the file, see Renown: Set up a server on your VPS.
To send messages at regular intervals, you need a command that you can send to the server from outside. Renown includes RCON for this:
- Stop the server and set
EnableRCON=True, anRCONPort, and a secureRCONPasswordinGame.ini. - Make sure the same port is specified as
-RCONPortin your startup command, then start the server. - Connect with an RCON program such as rcon-cli from the GitHub repository:
rcon-cli -a [IP]:[RCON-PORT] -p [RCON-PASSWORT] [Nachrichtenbefehl] [dein Nachrichtentext]
Renown does not provide an official list of RCON commands. So replace [Nachrichtenbefehl] only with a command you have tested on your server. Once the command works, you can run it on a schedule:
- Windows: Create a task in Task Scheduler to run the
rcon-clicommand, for example, every hour. - Linux: Add the command as a cron job using
crontab -e, for example,0 * * * *to run it at the start of every hour.
If the task runs on the VPS itself, connect using 127.0.0.1 and you don't need to open the RCON port to the outside. If you want to connect from outside, it's best to allow the port through your VPS firewall only for your own IP address.
- The password is stored in plain text in the task or cron job. Protect the file or task accordingly, and use a password exclusively for RCON.
- RCON messages only reach players who are currently connected. The MOTD is a better option for information you want every player to see.
- If you need more options for formatting or conditions, check whether there are suitable community tools for Renown.
