# One-Time Commands

Create dynamic scenarios by executing custom commands after fake players join. These interactions add depth and excitement, making your server more captivating than ever. Since they are executed only ONCE, you can use it for giving ranks.

{% code overflow="wrap" %}

```yaml
  one_time_commands:
    delay: 5
    commands:
      - "-999:eco give %player% 100" # this happens 100% with 0 delay, it is not taken into account in the whole command probability
      - "50:msg %player% something idk"
    #  - '100:chat!one time command!'
```

{% endcode %}

* Commands to be executed only once and never again, with specified chances, random values and delay. Stored inside $cache$.yml.

#### Custom Messages&#x20;

* You can use the following at the beginning of ":" sudo! ; chat!
* sudo! -> makes the fake player execute a command on join eg: "50:sudo!register (your authentication plugin command)"
* chat! -> makes the fake player say something when he joins eg: "50:chat!sup everyone!"


---

# 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.spoof.dev/asteroid/setup/features/one-time-commands.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.
