# Allowed-Commands-In-Prompt

The `Allowed-Commands-In-Prompt` option defines a list of commands that CommandPrompter allows when a player executes another command while completing a prompt.

#### Usage

You can configure the `Allowed-Commands-In-Prompt` by editing the appropriate configuration file, typically named "config.yml" or similar, with the following:

```yaml
Allowed-Commands-In-Prompt:
- sampleCommand
- sampleCommand2
```

In this example, the specified commands (`sampleCommand`, `sampleCommand2`) are allowed to be executed while completing a prompt.

#### Explanation

The `Allowed-Commands-In-Prompt` option is designed to control which commands are permitted when a player is in the process of completing a prompt. This allows users to execute specific commands without canceling the ongoing prompt, enhancing flexibility and user experience.

#### Example

To add or remove commands from the allowed list, modify the configuration as needed:

```yaml
Allowed-Commands-In-Prompt:
- sampleCommand
- newCommand
```

This will update the list to allow the execution of `newCommand` in addition to the existing allowed commands.

#### Important Notes

* Commands listed in `Allowed-Commands-In-Prompt` should not include the "/" prefix.
* Allowed commands that contains prompts will still be blocked.


---

# 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://cyr1en.gitbook.io/commandprompter/configuration/command-prompter-configuration/allowed-commands-in-prompt.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.
