blob: b059673e50af989ef545537951da3c59fd826268 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
title: command
parent: Built-in task types
grand_parent: Task types
---
# command (task type)
Since v2.12
{: .label .label-green }
Execute a specific command.
This task may not work for commands not properly registered with the
server (e.g. commands made with plugins like DeluxeMenu).
## Options
| Key | Description | Type | Required | Default | Notes |
|------------------------|------------------------------------------------------|----------------------------|----------|---------|-----------------------------------------------|
| `command` / `commands` | The command(s) to execute. | String, or list of strings | Yes | \- | \- |
| `ignore-case` | Whether the casing of the command should be ignored. | Boolean | No | false | \- |
| `command-match-mode` | The match mode to be used to compare the strings | String | No | EQUALS | One of: `EQUALS`, `STARTS_WITH`, `ENDS_WITH`. |
| `worlds` | Worlds which should count towards the progress. | List of world names | No | \- | \- |
## Examples
Ask for help:
``` yaml
command:
type: "command"
command: "help" # command to execute
ignore-case: true # (OPTIONAL) ignore capitalisation - default: false
worlds: # (OPTIONAL) restrict to certain worlds
- "world"
```
|