promotional bannermobile promotional banner

CMDAlias

A simple command alias mod for Fabric.

CMDAlias

CMDAlias

CMDAlias is a server-side Fabric mod for Minecraft that adds configurable command aliases and shortcuts.

It lets you turn long or repetitive commands into short, memorable ones such as:

  • /sun -> /weather clear
  • /bp -> /travelbag
  • /gmsp -> /gamemode spectator

Because aliases are registered back into the server command tree, they support tab completion and behave like normal commands for players who are allowed to use the target command.

 

โœจ Features

  • Server-side only: no client installation required
  • Create short aliases for long vanilla or modded commands
  • Replace existing aliases without restarting the server
  • Delete aliases in-game
  • Tab completion updates after aliases are changed
  • Aliases are stored in a simple JSON config file

 

๐Ÿ”„ Commands

  • /cmdalias add <alias> <target command> -> Adds a new alias or updates an existing one.
  • /cmdalias del <alias> -> Deletes an existing alias.
  • /cmdalias list -> Lists all configured aliases.

These commands require operator permissions.

 

โ— How It Works

Aliases are saved in: config/cmdalias.json

When the server starts, CMDAlias loads the configured aliases and injects them into the command dispatcher. When you add or remove an alias in-game, the config is updated immediately and the command tree is resynced to online players.

CMDAlias also prevents alias loops such as:

  • /a -> /b`
  • /b -> /a

 

โš™๏ธ Configuration

Default config:

json
{
  "aliases": {}
}

Example config:

json
{
  "aliases": {
    "sun": "/weather clear",
    "bp": "/travelbag",
    "spawn": "/tp 0 64 0"
  }
}

Notes:

  • Alias names are normalized to lowercase.
  • Alias names may only contain `a-z`, `0-9`, `_` and `-`.
  • Target commands may be entered with or without a leading `/`.
  • Additional arguments typed after an alias are passed through to the target command when possible.

Examples:

  • /msgs Steve Hello there with alias msgs -> /msg
  • /day with alias day -> /time set day

 

๐Ÿงพ Example Use Cases

  • Give staff shortcuts for common moderation commands
  • Create short teleports or utility aliases for private servers
  • Simplify long commands added by other mods or datapacks
  • Standardize frequently used admin commands across a server team

๐Ÿœ๏ธ Test Server 

Feel free to join my Minecraft server to test my mods: play.swordfishbe.eu

The CMDAlias Team

profile avatar
  • 2
    Followers
  • 15
    Projects
  • 11.3K
    Downloads

He/Him - Pelt, Belgium

Donate

More from SwordfishBEView all

  • Eggify project image

    Eggify

    • 319
    • Mods

    Eggify is a Fabric mod for Minecraft that gives thrown eggs a small chance to convert a mob into its spawn egg.

    • 319
    • June 2, 2026
    • Mods
    • +1
  • Enhanced Netherite Armour project image

    Enhanced Netherite Armour

    • 480
    • Mods

    Gain Fire Resistance when wearing a full set of Netherite armour.

    • 480
    • May 15, 2026
    • Mods
    • +1
  • Undead Riders project image

    Undead Riders

    • 529
    • Mods

    Undead Riders is a Fabric mod for Minecraft that adds naturally spawning undead horsemen to the overworld surface.

    • 529
    • May 13, 2026
    • Mods
  • Leashed Teleport project image

    Leashed Teleport

    • 526
    • Mods

    Allow users to teleport around with leashed entities!

    • 526
    • April 28, 2026
    • Mods
    • +2
  • Eggify project image

    Eggify

    • 319
    • Mods

    Eggify is a Fabric mod for Minecraft that gives thrown eggs a small chance to convert a mob into its spawn egg.

    • 319
    • June 2, 2026
    • Mods
    • +1
  • Enhanced Netherite Armour project image

    Enhanced Netherite Armour

    • 480
    • Mods

    Gain Fire Resistance when wearing a full set of Netherite armour.

    • 480
    • May 15, 2026
    • Mods
    • +1
  • Undead Riders project image

    Undead Riders

    • 529
    • Mods

    Undead Riders is a Fabric mod for Minecraft that adds naturally spawning undead horsemen to the overworld surface.

    • 529
    • May 13, 2026
    • Mods
  • Leashed Teleport project image

    Leashed Teleport

    • 526
    • Mods

    Allow users to teleport around with leashed entities!

    • 526
    • April 28, 2026
    • Mods
    • +2