-
-
Notifications
You must be signed in to change notification settings - Fork 6
Command Redirect (0.5.0)
Yao Chung Hu edited this page Jan 13, 2022
·
1 revision
When using command mode COMMAND_REDIRECT, it creates a new command alias that redirects to an existing command with trailing command arguments.
First, we need to set our command mode to COMMAND_REDIRECT.
{
"commandMode": "COMMAND_REDIRECT"
}Secondly, we define our redirect command object.
{
"commandMode": "COMMAND_REDIRECT",
"redirectCommand": {
}
}Now that we have set our command mode, we can define our new command.
{
"commandMode": "COMMAND_REDIRECT",
"redirectCommand": {
"command": "s"
}
}Finally, we chose what existing command our new command will redirect to. In this case, I chose the /say command.
{
"commandMode": "COMMAND_REDIRECT",
"redirectCommand": {
"command": "s",
"redirectTo": "say"
}
}{
"commandMode": "COMMAND_REDIRECT",
"redirectCommand": {
"command": "stime",
"redirectTo": "time set"
}
}{
"commandMode": "COMMAND_REDIRECT",
"redirectCommand": {
"command": "display",
"redirectTo": "scoreboard objectives setdisplay"
}
}- Home
- Command Aliases File
- Command Aliases Commands
- Command Modes for 0.3.0 and above
- Create a Command Alias (0.9.0)
- Create a Command Alias (0.8.0)
- Create a Command Alias (0.7.0)
- Create a Command Alias (0.5.0)
- Create a Command Alias (0.3.0 - 0.4.2)
- Create a Command Alias (0.0.9 - 0.2.0)
- Roadmap