An open API service indexing awesome lists of open source software.

https://github.com/parzival-space/velocity-netalias

A Velocity plugin for creating command aliases.
https://github.com/parzival-space/velocity-netalias

Last synced: 11 months ago
JSON representation

A Velocity plugin for creating command aliases.

Awesome Lists containing this project

README

          

# NetAlias
Velocity plugin for creating command aliases.


[ Download Plugin ]

## Commands
NetAlias has the following commands:

* ``/netalias [list, reload]``
Displays information about the plugin.
* ``[list]`` Shows all currently registered aliases.
* ``[reload]`` Reloads the plugins configuration.

## Configuration
You can find the config file here: ``plugins/netalias/config.toml``
```toml
aliases = [
{ name = "switchserver", args = "(\\S*)", command = "server", commandArgs = "$1" }
]
```
This will create a command /switchserver.
The command /server is going to be an alias with the arguments of the first catch (which means the first argument,
the server name) of RegEx.