# Commands

### Administrator Commands

All admin commands use the base permission `al.documents.admin` or specific sub-permissions.

1. **Reload**: `/documentsadmin reload`
   * Reloads plugin configuration
   * Permission: `al.documents.admin.reload`
2. **Set Register Location**: `/documentsadmin set-register-location`
   * Sets the document registration location
   * Permission: `al.documents.admin.setregisterlocation`
3. **Show Documents**: `/documentsadmin showDocuments <playerName>`
   * Displays a player's documents
   * Permission: `al.documents.admin.showdocuments`
4. **Unregister**: `/documentsadmin unregister <playerName>`
   * Removes a player's document data
   * Permission: `al.documents.admin.unregister`
5. **Register**: `/documentsadmin register <userName> <name> <surname> <age> <gender>`
   * Registers a new document for a player
   * Permission: `al.documents.admin.register`
6. **Edit**: `/documentsadmin edit <userName> <newName> <newSurname>`
   * Edits a player's document
   * Permission: `al.documents.admin.edit`
7. **Bug Report**: `/documentsadmin bugreport`
   * Generates a plugin bug report
   * Permission: `al.documents.admin.bugreport`
8. **Give Documents Item**: `/documentsadmin give-documents-item <playerName>`
   * Gives a documents item to a player
   * Permission: `al.documents.admin.givedocumentsitem`

### Player Commands

1. **Give**: `/documents give <player>`
   * Transfers document to another player
   * Permission: `documents.give`
2. **Show**: `/documents show`
   * Displays player's own document
   * Permission: `documents.show`
3. **Register**: `/documents register`
   * Opens document registration menu
   * Permission: `documents.register`

### Customization

Edit `config.yml` to customize commands and aliases:

```yaml
commands:
  documents:
    give: "dai"
    show: "mostra"
    register: "registrati"

aliases:
  documentsadmin: [da, admin-documents]
  documents: [doc, documento]
```

Remember to reload the plugin after changes.


---

# 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.anotherlevel.it/documentation/documents/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.
