docs: update documentation; patch ChangeActiveSlotInteraction

This commit is contained in:
luk
2026-02-03 16:44:06 +00:00
parent f8d7b9a781
commit 49a80ebf77
16 changed files with 531 additions and 472 deletions

View File

@@ -4,7 +4,8 @@ The Hytale command system allows plugins to register custom commands that can be
## Overview
Commands are defined by extending `AbstractCommand` and registered through the plugin's `CommandRegistry`. The system supports:
Commands are defined by extending `AbstractCommand` and registered through the plugin's `CommandRegistry`. The system
supports:
- Required and optional arguments
- Subcommands
@@ -270,6 +271,7 @@ Commands automatically receive permissions based on the plugin's base permission
```
For example, if your plugin is `com.example:MyPlugin` and command is `spawn`:
- Permission: `com.example.myplugin.command.spawn`
### Custom Permissions
@@ -303,10 +305,10 @@ public void execute(CommandContext context, Arguments args) {
Commands can be executed by different sender types:
| Sender Type | Description |
|-------------|-------------|
| `Player` | In-game player |
| `Console` | Server console |
| Sender Type | Description |
|----------------|-------------------------------|
| `Player` | In-game player |
| `Console` | Server console |
| `CommandBlock` | Command block (if applicable) |
```java