Jump to content
Sign in to follow this  
Foofah

Help needed with server messages.xml

Recommended Posts

Hi all,

 

I have troubles understanding the messages.xml in order to display a message 15,10 and 5 minutes prior to restart.

First of all, help me understand when the messages.xml starts to work, is it when the server starts, or when the player joins?

For example, I start the server at 13:00. A player joins at 13:10. The first message in the messages.xml is set as follows: 

<message>
  <delay>10</delay>
  <repeat>60</repeat>
  <onconnect>1</onconnect>
  <text>Hello world!</text>
</message>

Will the player see this after 10 minutes he logs in (onconnect = 1)? Or instantly because the server waited 10 minutes to display it?

 

If I want it to display a message after 45 minutes, and shutdown in 60.

	<message>
		<delay>0</delay>
		<repeat>0</repeat>
		<deadline>60</deadline>
		<onConnect>0</onConnect>
		<shutdown>1</shutdown>
		<text>World will shutdown in #tmin minutes.</text>
	</message>

Where does it say it will display itself after 45 minutes? The only timer is set to 60.

Edited by Foofah

Share this post


Link to post
Share on other sites

The player will see the message 10 minutes after logging into the server. "<delay>10</delay>"

As for the second question, you will need to specify that you want the message to be displayed after 45 mins in "<delay>0</delay>".

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  

×