> For the complete documentation index, see [llms.txt](https://smuddgge.gitbook.io/leaf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smuddgge.gitbook.io/leaf/commands/overview.md).

# Overview

{% hint style="warning" %}
**Dont want a command?** Delete it from the file and run **/leafreload**. I mean, you can even remove the reload command if you want. :relieved:
{% endhint %}

## Things you can add to any command!

```yaml
# [OPTIONAL] → Command Identifier
# You can remove any command from the configuration to disable it.
# The identifier will not affect the command, it can be named anything! :D
command_identifier:

    # [REQUIRED] → Command Type
    # The command type determines how the command will work.
    type: "info"
    
    # [OPTIONAL] → Command Toggle
    # Disable or enable the command.
    # The value defaults to true.
    enabled: true
    
    # [REQUIRED] → Command Name
    # The name of the command, for example:
    # /[name] [arguments]
    name: "name"
    
    # [OPTIONAL] → Command Aliases
    # Every command can have unlimited aliases.
    # Aliases are alternative command names that will execute the same command.
    aliases: ["name2", "name3"]
    
    # [OPTIONAL] → Command Syntax
    # Lets you override the default syntax.
    # The syntax is shown to the player when they input the
    # incorred arguments.
    syntax: "/[name]"
    
    # [OPTIONAL] → Command Description
    # The commands description. Mainly used
    # when the command is registered with a 
    # discord bot.
    description: "Used to run /[name]"

    # [OPTIONAL] → Command Permission
    # Every command can have permission to execute the command.
    # When this is not set, it will default to everyone.
    permission: "leaf.name"
    
    # [OPTIONAL] → Command Requirements
    # Add a permission requirement for different servers.
    require:
      # The requirements identifier.
      # This can be anything.
      "identifier":
        # The required permission.
        permission: "leaf.bypass"
        # The servers that the permission is required on.
        servers:
        - "ServerName"
    
    # [OPTIONA:] → Player Limit
    # Limit the number of times players can
    # execute the command. This feature requires
    # the database to be enabled.
    # No limit = -1.
    limit: -1
    
    # [OPTIONA:] → Player Cooldown
    # Add a command cooldown, to stop players from spamming
    # commands. This feature requires
    # the database to be enabled.
    # No cooldown = -1.
    # Cooldown is in milliseconds.
    cooldown: -1
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://smuddgge.gitbook.io/leaf/commands/overview.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.
