Jump to content
Sign in to follow this  
Guest

How to set up server messages correctly ?

Recommended Posts

Guest

Hello,

How do I set server messages on my server?

My message looks like this

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

    <!-- This is example message for automatic server termination -->
    <message>

        <!-- no delay -->
        <delay>0</delay>

        <!-- if the value is larger than 0, then flag Repeat is enabled -->
        <repeat>0</repeat>

        <!-- if the value is larger than 0, then flag Countdown is enabled,
             countdown reaches zero in 10 hours --> 
        <deadline>30</deadline>

        <!-- disable On connect flag -->
        <onconnect>0</onconnect>

        <!-- enable Shutdown flag -->
        <shutdown>0</shutdown>

        <!-- message itself with placeholders -->
        <text>Test report.</text>

    </message>
</messages>

I want the message to be sent every 30 minutes. But the problem is that the message is being sent at random, doing something wrong?

Thank you

Share this post


Link to post
Share on other sites

For a message to repeat every 30 minutes,
you would do it like this...

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messages>

    <!-- My message - repeats every 30 minutes  -->
    <message>

        <!-- Repeat is enabled -->
        <repeat>1</repeat>

        <!-- Delay 30 minutes  -->
        <delay>30</delay>

        <!-- My Message Body -->
        <text>Hello World...</text>

    </message>
</messages>

 

Share this post


Link to post
Share on other sites

My server restarts every 4 hours (12,16,20,00,04,08) via task scheduler.

I want messages.xml to send notifications in 30,15,5 and 1 min before server goes down to all players online, how can I do that? How do I let the server know when exactly to start this messaging?

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×