diff --git a/docs/managing-commands.md b/docs/managing-commands.md index 09575cb..19a98d2 100644 --- a/docs/managing-commands.md +++ b/docs/managing-commands.md @@ -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"` \ No newline at end of file +```yml +aliases: + clearchat: + - "ChatPlugin:clearchat" +```