> For the complete documentation index, see [llms.txt](https://thepython10110.gitbook.io/better-commands/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thepython10110.gitbook.io/better-commands/commands/ability.md).

# /ability

Gets and sets player privileges.

## Syntax

`ability <player> [<privilege>] [<value>]`

## Arguments

`<player>` [Selector](/better-commands/target-selectors.md)

Specifies the player for which to grant/revoke/query the privilege.

Must be a player name or target selector.

`<ability>` [String](/better-commands/data-types.md#string)

Specifies the player privilege (such as `fly` or `server`).

`<value>` [Boolean](/better-commands/data-types.md#boolean)

Specifies the value to set the ability to, must be either `true` or `false`. If not specified, returns the current privilege's value.

## Result

Fails if the arguments are not specified correctly.

On success, sets the player privilege into the specified privilege. If `<value>` isn't specified, returns whether the player has the specified privilege. If `<ability>` isn't specified, returns what privileges the player has.

## History

| Version | Action           |
| ------- | ---------------- |
| v1.0    | Added `/ability` |
