API reference / @jsprismarine/prismarine / entity/playerAbilities
entity/playerAbilities
Functions
playerAbilityNames()
playerAbilityNames(
gamemode): readonlystring[]
Defined in: packages/prismarine/src/entity/playerAbilities.ts:21
The abilities a player in a game mode has.
Parameters
gamemode
The player's game mode.
Returns
readonly string[]
The ability names has_ability matches.