# Player Delegate

The player delegate command is derived from the [Console Delegate](/commandprompter/features/console-delegate.md) feature. That means this command can only be called from the console.&#x20;

The only difference is the format of the command (which requires an additional [permission attachment](/commandprompter/features/permission-attachment.md)), and after prompt completion, the completed command is executed **as a player, not a console.**

## The Player Delegate Command

As I've mentioned before, this command can only be executed through the console. However, it's important to note that the completed command will be executed by the player.

### Usage

The player delegate command has the following format:

```
playerdelegate <target_player> <permission attachment name> <command...> 
```

The last part of the command is a greedy argument, therefore anything past the permission attachment will be considered as a command.

Permission attachments are user-defined, however, if you don't want to use any, you can just pass `NONE` as the permission attachment.


---

# 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/features/player-delegate.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.
