Class in @minecraft/server
Which of a player’s controls work.
import { PlayerInputPermissions } from '@minecraft/server';Example
Section titled “Example”import { world, type PlayerInputPermissions } from '@minecraft/server';
for (const player of world.getAllPlayers()) { const playerInputPermissions: PlayerInputPermissions = player.inputPermissions;}import { world } from '@minecraft/server';
for (const player of world.getAllPlayers()) { const playerInputPermissions = player.inputPermissions;}Methods
Section titled “Methods”isPermissionCategoryEnabled
Section titled “isPermissionCategoryEnabled”isPermissionCategoryEnabled(permissionCategory: InputPermissionCategory): boolean;Parameters
permissionCategoryInputPermissionCategory
Returns
booleansetPermissionCategory
Section titled “setPermissionCategory”setPermissionCategory(permissionCategory: InputPermissionCategory, isEnabled: boolean): void;Turns a group of controls on or off; the client is told at once.
Parameters
permissionCategoryInputPermissionCategoryisEnabledboolean