CommandSwap: Personal Command Aliases for Minecraft

CommandSwap: Personalize Your Minecraft Server Commands Every Minecraft server administrator knows the struggle of typing lengthy commands over and over again. Whether you are teleporting to a favorite build, managing warps, or sending quick messages to friends, repetitive command syntax can slow...

Download CommandSwap for Minecraft 1.6.2

Original name: CommandSwap

Minecraft: 1.6.2

FileVersionLoaderSize
CommandSwap.jar1.6.2—10 КБDownload

CommandSwap: Personalize Your Minecraft Server Commands

Every Minecraft server administrator knows the struggle of typing lengthy commands over and over again. Whether you are teleporting to a favorite build, managing warps, or sending quick messages to friends, repetitive command syntax can slow down your gameplay. The CommandSwap plugin solves this problem by letting you create personal shortcuts for any command, complete with powerful placeholders that adapt to your input. It transforms the way you interact with your server, making complex operations feel like second nature.

What Makes CommandSwap Unique

Unlike global alias plugins that force the same shortcuts on everyone, CommandSwap operates on a per-player basis. Each user can define their own set of custom aliases without affecting others. This flexibility is perfect for multiplayer servers where different players have different needs. A builder might want a quick way to switch between creative and survival mode, while a moderator could set up shortcuts for moderation tools. The plugin respects individual preferences, turning your command line into a truly personal tool.

The system is built around a simple but clever substitution engine. You map a short alias to a longer command, and every time you type that alias, the server executes the full command. Placeholders like %args0 and %args1 let you pass dynamic arguments into your shortcuts, so a single alias can handle multiple variations. There is even a %c placeholder that runs the command as the console, provided you have the correct permission. This opens up possibilities like warping other players or executing administrative tasks without leaving the player chat interface.

Key Features at a Glance

  • Create personal command shortcuts that only you can use.
  • Incorporate placeholders to pass arguments directly into aliases.
  • Execute commands as console with the %c placeholder (requires permission).
  • Block specific aliases globally to prevent misuse by players.
  • View your own alias list and the global block list with a simple command.
  • Backup system automatically saves your configuration, so you never lose your settings.
  • Optional logging to console and debug mode for troubleshooting.
  • NoOverride setting to prevent other plugins from overriding CommandSwap aliases.

Commands and Permissions

CommandSwap uses a straightforward command structure. The base command is /cswap, followed by a subcommand. Here is a quick reference table of the most important ones:

Command Description Permission
/cswap add <alias> <command> Creates a personal shortcut cs.use
/cswap rem <alias> Removes one of your aliases cs.use
/cswap list Shows all your current aliases cs.use
/cswap placeholders Displays available placeholders cs.use
/cswap block <alias> Blocks an alias globally cs.admin
/cswap unblock <alias> Unblocks a previously blocked alias cs.admin
/cswap save Saves config and data files cs.manage
/cswap reload Reloads configuration from disk cs.manage
/cswap backup Creates a backup of config and data cs.manage
/cswap disable Stops the plugin cs.manage
/cswap help Shows in-game help menu cs.use

Understanding Placeholders

Placeholders are the secret sauce that makes CommandSwap so powerful. They allow your aliases to accept dynamic input, turning a static shortcut into a flexible command generator. The plugin supports up to %args20, so you can capture many words from the player's chat message. Here are the core placeholders and how they work:

  • %args0 – The first word after your alias. For example, /cswap add new warp spawn %args0 creates an alias /new that warps you to spawn with the first argument as the player name.
  • %args1 – The second word. Perfect for commands like /t (tell), where you need both a player name and a message: /cswap add t tell %args0 %args1.
  • %c – Runs the entire command as console. Must be placed at the very end of your alias. Requires the cs.console permission. For instance, /cswap add silentwarp warp %args0 %c would warp a player silently as if the console issued the command.

If you don't include any placeholder, anything you type after the alias is simply appended to the end of the command. This means you can turn /home set into just /hs and still pass a home name by typing /hs beach. The plugin handles the rest.

Configuration and Safety

CommandSwap comes with a clean configuration file that gives server owners full control. The three main options are NoOverride, DebugMode, and LogCommands. Setting NoOverride to true prevents other plugins from interfering with your aliases, ensuring that your shortcuts always work as intended. DebugMode outputs extra information to the console, which is invaluable when testing complex alias chains. LogCommands logs all executed aliases as if they were real commands, keeping your server logs consistent and audit-friendly.

For those who love to tinker, the built-in backup system automatically saves copies of your configuration and data files. You never have to worry about losing your painstakingly crafted alias collection after a server crash or accidental misconfiguration. A quick /cswap backup creates a snapshot, and you can restore it manually if needed. While managing plugins, many server owners find that a modern launcher can simplify the process. The foxygame.net launcher, for instance, provides a convenient way to browse and install mods directly from its menu, making it effortless to add tools like CommandSwap to your setup without digging through file directories.

Real-World Use Cases

Imagine you run a survival server with a complex economy. You could set up an alias /bal that expands to /balance %args0, so checking another player's balance becomes a breeze. Or as a moderator, you might create /mute5 that runs /mute %args0 5m to temporarily mute a player for five minutes. Builders often create aliases like /gm1 for /gamemode creative and /gm0 for survival, saving precious seconds during fast-paced building sessions.

Another clever application is combining the console placeholder with warp commands. If you have a spawn area that should be accessible to everyone, you can create an alias /spawn that runs /warp spawn %args0 %c. Players with the cs.console permission can then warp themselves or others without needing OP status. This granular permission system keeps your server secure while empowering trusted users.

Conclusion

CommandSwap redefines command efficiency on Minecraft servers by putting customization directly into the hands of players. Its per-user alias system, argument placeholders, and console execution capabilities make it a must-have for any server that values productivity and player autonomy. The simple yet robust permission structure ensures that admins stay in control, while the backup and logging features add a layer of reliability that every server owner appreciates. Whether you are a casual player tired of typing long commands or an administrator looking to streamline server management, CommandSwap delivers a seamless experience that feels like a natural extension of Minecraft's own command system.