Skip to content

Class endstone::Ability

ClassList > endstone > Ability

All player abilities. More...

  • #include <endstone/ability.h>

Inherits the following classes: endstone::Registry::Type

Public Types inherited from endstone::Registry::Type

See endstone::Registry::Type

Type Name
typedef Identifier< T > Id
The identifier type used to look up this object in its registry.

Public Static Attributes

Type Name
constexpr auto AttackMobs = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("attackmobs")
Whether the player can attack mobs.
constexpr auto AttackPlayers = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("attackplayers")
Whether the player can attack other players.
constexpr auto Build = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("build")
Whether the player can place blocks.
constexpr auto DoorsAndSwitches = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("doorsandswitches")
Whether the player can use doors, trapdoors, buttons, levers and other redstone components.
constexpr auto FlySpeed = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**float**](classendstone_1_1Identifier.md)&gt;::minecraft("flyspeed")
The speed at which the player flies, default is 0.05 .
constexpr auto Flying = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("flying")
Whether the player is currently flying.
constexpr auto Instabuild = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("instabuild")
Whether the player destroys blocks instantly.
constexpr auto Invulnerable = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("invulnerable")
Whether the player is immune to all damage.
constexpr auto Lightning = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("lightning")
Whether the player was struck by lightning.
constexpr auto MayFly = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("mayfly")
Whether the player is allowed to fly.
constexpr auto Mine = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("mine")
Whether the player can destroy blocks.
constexpr auto Muted = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("mute")
Whether the player's chat messages are hidden from other players.
constexpr auto NoClip = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("noclip")
Whether the player can move through blocks.
constexpr auto OpenContainers = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("opencontainers")
Whether the player can open containers.
constexpr auto OperatorCommands = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("op")
Whether the player can use operator commands.
constexpr auto PrivilegedBuilder = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("privilegedbuilder")
Whether the player is a privileged builder.
constexpr auto Teleport = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("teleport")
Whether the player can teleport.
constexpr auto VerticalFlySpeed = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**float**](classendstone_1_1Identifier.md)&gt;::minecraft("verticalflyspeed")
The speed at which the player flies up and down, default is 1 .
constexpr auto WalkSpeed = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**float**](classendstone_1_1Identifier.md)&gt;::minecraft("walkspeed")
The speed at which the player walks, default is 0.1 .
constexpr auto WorldBuilder = [**AbilityId**](classendstone_1_1AbilityId.md)&lt;[**bool**](classendstone_1_1Identifier.md)&gt;::minecraft("worldbuilder")
Whether the player is a world builder.

Public Functions inherited from endstone::Registry::Type

See endstone::Registry::Type

Type Name
virtual Id getId () const = 0
Return the identifier of this object.
virtual std::string getTranslationKey () const = 0
Get the translation key, suitable for use in a translation component.
operator Id () const
bool operator!= (const Id & other) const
bool operator!= (const T & other) const
bool operator== (const Id & other) const
bool operator== (const T & other) const
virtual ~Type () = default

Public Static Functions inherited from endstone::Registry::Type

See endstone::Registry::Type

Type Name
const T * get (Id id)
Look up a registry entry by identifier.

Detailed Description

AttackMobs, AttackPlayers, Build, DoorsAndSwitches, Mine, OpenContainers, OperatorCommands and Teleport are the eight member permissions the client shows in its pause menu, and the server enforces every one of them.

Public Static Attributes Documentation

variable AttackMobs

Whether the player can attack mobs.

constexpr auto endstone::Ability::AttackMobs;


variable AttackPlayers

Whether the player can attack other players.

constexpr auto endstone::Ability::AttackPlayers;


variable Build

Whether the player can place blocks.

constexpr auto endstone::Ability::Build;


variable DoorsAndSwitches

Whether the player can use doors, trapdoors, buttons, levers and other redstone components.

constexpr auto endstone::Ability::DoorsAndSwitches;


variable FlySpeed

The speed at which the player flies, default is 0.05 .

constexpr auto endstone::Ability::FlySpeed;


variable Flying

Whether the player is currently flying.

constexpr auto endstone::Ability::Flying;


variable Instabuild

Whether the player destroys blocks instantly.

constexpr auto endstone::Ability::Instabuild;


variable Invulnerable

Whether the player is immune to all damage.

constexpr auto endstone::Ability::Invulnerable;


variable Lightning

Whether the player was struck by lightning.

constexpr auto endstone::Ability::Lightning;


variable MayFly

Whether the player is allowed to fly.

constexpr auto endstone::Ability::MayFly;


variable Mine

Whether the player can destroy blocks.

constexpr auto endstone::Ability::Mine;


variable Muted

Whether the player's chat messages are hidden from other players.

constexpr auto endstone::Ability::Muted;


variable NoClip

Whether the player can move through blocks.

constexpr auto endstone::Ability::NoClip;


variable OpenContainers

Whether the player can open containers.

constexpr auto endstone::Ability::OpenContainers;


variable OperatorCommands

Whether the player can use operator commands.

constexpr auto endstone::Ability::OperatorCommands;


variable PrivilegedBuilder

Whether the player is a privileged builder.

constexpr auto endstone::Ability::PrivilegedBuilder;


variable Teleport

Whether the player can teleport.

constexpr auto endstone::Ability::Teleport;


variable VerticalFlySpeed

The speed at which the player flies up and down, default is 1 .

constexpr auto endstone::Ability::VerticalFlySpeed;


variable WalkSpeed

The speed at which the player walks, default is 0.1 .

constexpr auto endstone::Ability::WalkSpeed;


variable WorldBuilder

Whether the player is a world builder.

constexpr auto endstone::Ability::WorldBuilder;



The documentation for this class was generated from the following file include/endstone/ability.h