/inputpermission
< Commands
This feature is exclusive to Bedrock Edition and Minecraft Education.
/inputpermission| Permission level required |
1 |
|---|---|
| Restrictions |
Cheat only |
{
"title": "<code>/inputpermission</code>",
"rows": [
{
"field": "1",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Option article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Specify the operation for the player's input permission status, such as player movements, camera movements, and more.
Syntax
inputpermission query <targets: target> <permission: permission> [state: state]- Queries the status of the specified privilege of the target.
inputpermission set <targets: target> <permission: permission> <state: state>- Modifies the status of the specified privilege of the target.
Arguments
targets: target: CommandSelector<Player>
- Specifies the owner of the permission.
- Must be a player name or a target selector.
permission: permission: enum
- Specifies the authority for the operation.
- Must be one of the following:
camera— Turn the camera viewdismount— Dismountjump— Jump and fly upwardlateral_movement— Movemount— Mountmove_backward— Move backwardmove_forward— Move forwardmove_left— Move leftmove_right— Move rightmovement— Move, sneak, jump, and flysneak— Sneak and fly downward
state: state: enum
- The status of the specified permission.
- Must be for
enabled(Enable) ordisabled(Disable). - For
... query ..., If not specified, all states are queried.
Results
| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | the arguments are not specified correctly | Unparseable |
| Any | Otherwise | Assigning operations to permission status |
Output
| Command | Edition | Situation | Success Count |
|---|---|---|---|
| Any | Bedrock Edition | On Fail | 0 |
| On Success | 1 |
History
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.19.80 | Preview 1.19.80.21 | Added /inputpermission. | |||||
| 1.21.50 | Preview 1.21.50.20 | Now the permission: permission argument of /inputpermission command accepts more values. | |||||