# Restart Timer

{% stepper %}
{% step %}
Set a task 5 mins prior to restart

1. Select Schedules in the Configuration section (left menu)
2. Click Create Schedule

<figure><img src="/files/rZnUzg0bON6zsT9ZIvD0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Setting up tasks

Once the schedule is created you will see a schedule with no tasks

<figure><img src="/files/0Z9Jx0y5FxwzHkcH5Pt3" alt=""><figcaption></figcaption></figure>

1. Click "New Task"
2. Use the Action "Send Command"
3. For Payload use the below for a 5 min warning timer as pictured below\
   \- It will trigger the first warning message to be sent immediatly as the restart should be timed for 5 mins after the Power action this is perfect for the requirement.

   <figure><img src="/files/mZ0d5EEgYMnh8md2vdmo" alt=""><figcaption></figcaption></figure>

   ```
   LiFxUtility::messageAll(2480, "<spop><spush><color:f8c72d>SERVER RESTART IN 5 MINUTES\n<color:00ff00>GET TO A SAFE PLACE!<spop><spush>");

   ```

{% endstep %}

{% step %}

### Add more tasks if required

1. More restart warnings (if required, ensure to add delay timers)
2. Send power action\
   \- Ensure that you are adding delays for each tasks \
   \- A complete version is pictured below

<figure><img src="/files/bOoxHH9TXtN2syzLrRgo" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

For a more indepth understanding of Scheduled tasks please click below

{% content-ref url="/pages/udQSqKoDaY98sKv3i6Gy" %}
[Scheduled Tasks](/docs/faq/scheduled-tasks.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rampart-games-ltd.gitbook.io/docs/game-knowledge-base/life-is-feudal-your-own/restart-timer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
