docs: update documentation; patch ChangeActiveSlotInteraction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user