From b3c06b0976d7db56c12717fb916427c47fcc94eb Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sun, 17 May 2026 16:37:59 -0400 Subject: [PATCH] Change single-line code highlight to code block --- docs/managing-commands.md | 62 +++++++++++++++++++-------------------- 1 file changed, 31 insertions(+), 31 deletions(-) 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" +```