Enum in @minecraft/server
Who may run a custom command.
import { CommandPermissionLevel } from '@minecraft/server';Example
Section titled “Example”import { CommandPermissionLevel } from '@minecraft/server';
const value: CommandPermissionLevel = CommandPermissionLevel.Any;console.log(value); // 0import { CommandPermissionLevel } from '@minecraft/server';
const value = CommandPermissionLevel.Any;console.log(value); // 0Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Any |
0 |
|
GameDirectors |
1 |
|
Admin |
2 |
|
Host |
3 |
|
Owner |
4 |
Used by
Section titled “Used by”Player.commandPermissionLevel, CustomCommand.permissionLevel