CommandAlias

Allows you to add aliases to commands.

14

Quick challenge

How far can you run before the mobs catch you?

CommandAlias

CommandAlias

A lightweight, high-performance command alias plugin for Folia and Folia.

`CommandAlias` lets you create simple custom aliases for existing commands using a plain text file, with support for reloading aliases in-game.

Features

- Create command aliases from a simple `aliases.txt` file - Works on bStats - Supports bStats - Uses Paper's modern bStats - Thread-safe alias storage with `ConcurrentHashMap` - Reload aliases with `/careload` - Extra arguments are forwarded automatically - Lightweight and fast - Includes bStats

How It Works

Aliases are loaded from:

```text plugins/CommandAlias/aliases.txt ```

Each line uses this format:

```text alias, command ```

Example:

```text spawn, warp spawn lobby, server lobby discord, tellraw @s {"text":"Join our Discord!"} ```

Then players can run:

```text /spawn /lobby /discord ```

Arguments are appended automatically, so if you define:

```text msgstaff, message staff ```

then:

```text /msgstaff hello ```

becomes:

```text /message staff hello ```

File Format

- Empty lines are ignored - Lines starting with `#` are ignored - Lines without a comma are skipped

Example:

```text

alias, command

spawn, warp spawn lobby, server lobby rules, warp rules ```

Commands

`/careload`

Reloads `aliases.txt` from disk.

Permission: `commandalias.reload`

Permissions

```text commandalias.reload ```

Default: `op`

ADS