-
Notifications
You must be signed in to change notification settings - Fork 3
CommandAction v3
Hoid2 edited this page Jan 24, 2022
·
2 revisions
Command actions execute a command.
They look like:
{
...common fields...
"command": "",
"silent": false,
"higherLevel": 0
}
(common fields are specified in Actions v3)
This is the command to execute. This is a string.
Whether the command is from the server (true) or the player (false). This is a boolean.
Whether the command should send feedback when executed. This is a boolean.
Specifies the level that a command should be executed with. This is an integer.
Whether the player should temporarily be opped. This is a boolean.
When true, if the player was not already an op, they made an op before executing the command and deopped after completing the command.
If false, commands will cause an error if the player is not an op.