/ability
Gets and sets player privileges.
Syntax
ability <player> [<privilege>] [<value>]
Arguments
<player>
Selector
Specifies the player for which to grant/revoke/query the privilege.
Must be a player name or target selector.
<ability>
String
Specifies the player privilege (such as fly
or server
).
<value>
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
Last updated