Custom Commands
Everything you must know about how to create and use Custom Commands.
Custom Commands are Rich Commands. It's highly recommended to read the Rich Commands page before reading this page.
Custom Commands Basics
Managing Custom Commands
To manage custom commands on your server you have to use customcommand
(or cc
)
Example :
Creating an alias
To create an alias you can use the fact that you can call a command with Rich Commands.
When creating the custom command, you can specify a static parameter for the command, for example>>>roll 10
will call roll 10
when usingk
Commands which doesn't need any parameter
Here's an example of a russian roulette which either play an earrape, or a relaxing song.
Mixing several commands together
You can call several commands thanks to&&
Example :
Custom Commands Advanced
How to get user's parameter
If you don't want a static parameter, you can ask the user for one.
Using quotations between a group of words allows you to parse several words instead of parsing them one by one.
Example :
cmd "This is a test" Hello "Help please"
{1} = This is a test
{2} = Hello
{3} = Help please
Example :
By default, if you only specify >>>volume
without{1}
it's the same thing as>>>volume {0}
. This means that every parameter is parsed, when{1}
used, the command will only take the first one.
Conditions
You can set a default value to use when no arguments are passed.
Example :
Others
You can select several parameters based on their index.
Example :
You can use negative numbers to start counting from the end of the argument list.
Last updated