Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

xWinnetou

Server shutdown message

Recommended Posts

Im trying to automatically restart my server via messages.xml file but the server dont restart and even dont show the message. The other messages in the config works properly. This is my config file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!--
See https://community.bistudio.com/wiki/DayZ:Server_Messages for more information

Example messages:

1) following message will be displayed to every player in countdown manner
    and shuts down server in 5 hours from its start-->

    <message>
        <deadline>298</deadline>
        <shutdown>1</shutdown>        
        <text>El reinicio será dentro de #tmin minutos</text>
    </message>

<!--
2) following message will be displayed every 15 minutes to every player

    <message>
        <repeat>15</repeat>
        <text>You're playing on my server (#name). Thank you .)</text>
    </message>


3) following message will be displayed every 30 minutes to every player
    and 5 minutes after player connect
-->
    <message>
        <delay>5</delay>
        <repeat>30</repeat>
        <onconnect>1</onconnect>
        <text>Visita nuestro DISCORD: discord.gg/KVryPCUTPy</text>
    </message>

<!--
4) following message will be displayed once
    and 1 minutes after player connect-->

    <message>
        <delay>0</delay>
        <onconnect>1</onconnect>
        <text>Bienvenid@ a Zurrupios Land</text>
    </message>
    
    <message>
        <delay>0</delay>
        <onconnect>1</onconnect>
        <text>Los reinicios del servidor son cada 5 horas</text>
    </message>    

</messages>

The server is running on a dedicated server with a custom batch script.

Edited by xWinnetou
Ortographical issues

Share this post


Link to post
Share on other sites

Try the following . . . . but note that this will only stop your server, you will need to restart the server through another program . . .your batch file for example . ..

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>
<!--
See https://community.bistudio.com/wiki/DayZ:Server_Messages for more information

Example messages:

1) following message will be displayed to every player in countdown manner
    and shuts down server in 5 hours from its start

-->

    <message>
        <deadline>298</deadline>
        <shutdown>1</shutdown>        
        <text>El reinicio será dentro de #tmin minutos</text>
    </message>

<!--
2) following message will be displayed every 15 minutes to every player
-->
    <message>
        <repeat>15</repeat>
        <text>You're playing on my server (#name). Thank you .)</text>
    </message>

<!--
3) following message will be displayed every 30 minutes to every player
    and 5 minutes after player connect
-->
    <message>
        <delay>5</delay>
        <repeat>30</repeat>
        <onconnect>1</onconnect>
        <text>Visita nuestro DISCORD: discord.gg/KVryPCUTPy</text>
    </message>

<!--
4) following message will be displayed once
    and 1 minutes after player connect

-->

    <message>
        <delay>0</delay>
        <onconnect>1</onconnect>
        <text>Bienvenid@ a Zurrupios Land</text>
    </message>
    
    <message>
        <delay>0</delay>
        <onconnect>1</onconnect>
        <text>Los reinicios del servidor son cada 5 horas</text>
    </message>    

</messages>

Edited by aux7

Share this post


Link to post
Share on other sites

Thanks for the response. I included in the batch the server startup and a task kill if the shutdown doesnt work. The messages still doesnt work.

Share this post


Link to post
Share on other sites

×