# Quick Start

In Funmands, creating a command is simple. I won't tell you, though, I'll show you.

```java
public class DocumentationCommand extends PaperCommand {
    public DocumentationCommand() {
        super("documentation", "I love documentation!", "docs");
        this.addFormat("", context -> {
            context.getExecutor().sendMessage(Component.text("Hello, world!"));
        });
    }
}
```

Just like that, you've created your first command with Funmands. Let's unpack what that **little** bit of code did:

* Created a command with the name "documentation", the description "I love documentation!", and the aliases "docs"
* When the **root** of the command is executed (which is just a *fancy* way of saying "/documentation"), it sends the message "Hello, World!" to the **executor** of the command.

To register it on Paper, simply use this code in the `JavaPlugin` class:

```java
final PaperFunmandsManager funmandsManager = new PaperFunmandsManager(this.getLifecycleManager());

funmandsManager.registerCommand(new DocumentationCommand());
```

Simple, right? Currently, it may not *look* like Funmands is worth sacrificing type-safety, but hopefully the next pages can change your mind.


---

# 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://slimecraft.gitbook.io/slimecraft-docs/quick-start.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.
