Better Commands
Better Commands
  • Home
  • Commands
    • /ability
    • /bc
    • /clear
    • /clearspawnpoint
    • /damage
    • /enchant
    • /execute
    • /forceenchant
    • /gamemode
    • /gamerule
    • /give
    • /kill
    • /me
    • /msg
    • /old
    • /playsound
    • /remove
    • /say
    • /scoreboard
    • /setblock
    • /spawnpoint
    • /summon
    • /team
    • /teammsg
    • /teleport
    • /time
    • /trigger
  • Target Selectors
  • Data types
  • Entity Aliases
  • Scoreboard
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • Result
  • History
Edit on GitHub
  1. Commands

/ability

Gets and sets player privileges.

PreviousCommandsNext/bc

Last updated 1 year ago

Syntax

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

Arguments

<player>

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

Must be a player name or target selector.

<ability>

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

<value>

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

Selector
String
Boolean