# Commands & Permissions

HLootChest provides a variety of commands for both **players** and **admins** to manage and interact with loot chests. Below is a comprehensive list of available commands and their functions.

***

### **🎮 Player Commands**

{% hint style="info" %}
Aliases: /hlootchest
{% endhint %}

| `/lc help`  | `none`            | Show the help messages.                       |
| ----------- | ----------------- | --------------------------------------------- |
| `/lc open`  | `hlc.open.<type>` | Open a loot chest of the specified type.      |
| `/lc list`  | `hlc.list`        | Display a list of available loot chest types. |
| `/lc leave` | `hlc.leave`       | Leave the current loot chest opening session. |

> **Example Usage:**\
> `/lc open regular` → Opens a lootchest of type "regular."

***

### **🛠 Admin Commands (Permission: hlc.admin)**

{% hint style="info" %}
Aliases: /hlootchestadmin
{% endhint %}

| **Command**                              | **Description**                                                    |
| ---------------------------------------- | ------------------------------------------------------------------ |
| `/lca add <player> <type> <amount>`      | Give a specified player a loot chest of a certain type and amount. |
| `/lca help`                              | Show the admin help messages.                                      |
| `/lca reload`                            | Reload the plugin’s configuration files.                           |
| `/lca template <action> <template-name>` | Manage loot chest templates.                                       |
| `/lca templateslist`                     | Display a list of available loot chest templates.                  |

> **Example Usage:**\
> `/lca add Steve regular 3` → Gives **Steve** 3 **Regular** lootchests.

***

Now you're ready to **unlock powerful combinations** with HLootChest! 🚀


---

# 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://twightlight.gitbook.io/hlootchest/getting-started/commands-and-permissions.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.
