Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Aliases

Emre Kara edited this page Jun 24, 2021 · 1 revision

What are aliases?

If you have a command, you can add some aliases to be able to trigger the same method with differend cmds.
For example the command /ban could have the aliases "timeban", "permaban", "yeet" etc.

How to add?

Just use the "CustomCommandAlias" attribute.

[CustomCommand("ban")]
[CustomCommandAlias("timeban", "permaban", "yeet")]
public void Ban(...)

Something to consider?

Aliases are only attached to the one method!
So if you have multiple methods for the same command, you also can add CustomCommandAlias to them if you want.
Example: 2 ban methods for timeban and permaban, both command /ban, but one has /timeban alias and the other one /permaban alias.

Clone this wiki locally