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.
- Host: GitHub
- URL: https://github.com/parzival-space/velocity-netalias
- Owner: parzival-space
- License: mit
- Created: 2024-06-25T06:54:57.000Z (almost 2 years ago)
- Default Branch: development
- Last Pushed: 2024-06-27T03:42:23.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T10:08:37.426Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NetAlias
Velocity plugin for creating command aliases.
## 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.