@minecraft/server
    Preparing search index...

    Class PlayerInputPermissions

    Contains APIs to enable/disable player input permissions.

    Index

    Properties

    cameraEnabled: boolean

    This property is deprecated and will be removed in 2.0.0.

    Camera input permissions for the player. If set to true, input relating to camera movement is enabled for the player.

    movementEnabled: boolean

    This property is deprecated and will be removed in 2.0.0.

    Movement input permissions for the player. If set to true input relating to movement is enabled for the player.

    Methods

    • Parameters

      Returns boolean

      Returns true if an input permission is enabled.

      This function can't be called in read-only mode.

      This function can throw errors.

      Error

    • Parameters

      Returns void

      Enable or disable an input permission. When enabled the input will work, when disabled will not work.

      This function can't be called in read-only mode.

      This function can throw errors.