Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions docs/managing-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,52 @@
_This explanation is based on [this page](https://bukkit.fandom.com/wiki/Commands.yml) and will show how to manage commands using the servers commands.yml file._

## Removing a command
If you want to remove a command added by DeepslateMC you can add the following into your commands.yml file:
If you want to remove a command added by DeepslateMC you can add the following into your `commands.yml` file:

`aliases:`

`COMMAND_NAME:`

`- []`
```yml
aliases:
COMMAND_NAME:
- []
```

Example: If you want to remove the `/autosmelt` command you use:

`aliases:`

`autosmelt:`

`- []`
```yml
aliases:
autosmelt:
- []
```

## Creating an alias
If you want to add another command to execute something you can add the following into your commands.yml file:

`aliases:`

`ALIAS:`

`- "COMMAND"`
```yml
aliases:
ALIAS:
- "COMMAND"
```

Example: If you want to use the command `/hub` to get to the lobby/spawn besides the `/spawn` and `/lobby` commands you use:

`aliases:`

`hub:`

`- "spawn"`
```yml
aliases:
hub:
- "spawn"
```

## Redirecting a command
If you want to use a plugin for a command added by DeepslateMC you can add the following into your commands.yml file:

`aliases:`

`COMMAND:`

`- "PLUGIN_NAME:COMMAND"`
```yml
aliases:
COMMAND:
- "PLUGIN_NAME:COMMAND"
```

Example: If you have a custom clearchat plugin called ChatPlugin and dont want to use the clearchat command from DeepslateMC you use:

`aliases:`

`clearchat:`

`- "ChatPlugin:clearchat"`
```yml
aliases:
clearchat:
- "ChatPlugin:clearchat"
```