Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    Players

    PlayerInputPermissions

    Class in @minecraft/server

    Which of a player’s controls work.

    import { PlayerInputPermissions } from '@minecraft/server';
    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;
    }
    isPermissionCategoryEnabled(permissionCategory: InputPermissionCategory): boolean;
    Parameters
    permissionCategory
    InputPermissionCategory
    Returns
    boolean
    setPermissionCategory(permissionCategory: InputPermissionCategory, isEnabled: boolean): void;

    Turns a group of controls on or off; the client is told at once.

    Parameters
    permissionCategory
    InputPermissionCategory
    isEnabled
    boolean

    Player.inputPermissions