# Web Cronjob

## Setting up Cronjob

Firstly, head into **cPanel**, and under **Advanced**, look for **Cron Jobs**.

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

You'll need to setup 2 cronjobs, one for the playtime hourly, and one per minute.

{% hint style="info" %}
Make sure to replace **YOUR\_DOMAIN** and **YOUR\_SECRET** with the information you've set in the in-game configuration file.
{% endhint %}

### Per Minute

Under **-- Common Settings --**, select **Once Per Minute (\* \* \* \* \*)**

Command:

{% code overflow="wrap" %}

```php
/usr/bin/wget -O /dev/null "https://YOUR_DOMAIN/actions/cron-playtime.php?secret=YOUR_SECRET" > /dev/null 2>&1
```

{% endcode %}

Then click **Add New Cron Job**

### Per Hour

Under **-- Common Settings --**, select **Once Per Hour (0 \* \* \* \*)**

Command:

{% code overflow="wrap" %}

```php
/usr/bin/wget -O /dev/null "https://YOUR_DOMAIN/actions/cron-hourly.php?secret=YOUR_SECRET" > /dev/null 2>&1
```

{% endcode %}

Then click **Add New Cron Job**


---

# 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://docs.hamz.dev/hamz-staff-elite-panel/web-cronjob.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.
