blob: 423edb802a1c26fc7d77bb28beb676b2047bb423 (
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
|
---
title: permission
parent: Built-in task types
grand_parent: Task types
---
# permission (task type)
Since v2.9.5
{: .label .label-green }
Test if a player has a permission.
This task works by regularly polling a player at a certain interval.
## Options
| Key | Description | Type | Required | Default | Notes |
|--------------|----------------------------------------|--------|----------|---------|-------|
| `permission` | The permission the player should have. | String | Yes | \- | \- |
## Examples
Check if player has permission `some.permission.name`:
``` yaml
permission:
type: "permission"
permission: "some.permission.name" # permission required to be marked as complete
```
|