Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ez:command.registerCommand

Register custom command

function registerCommand(
name: string,
desc: string,
permission:
| 0
| 1
| 2
| 3
| 4
| 5
| 6
,
): void;
§
registerCommand(name: string, desc: string, permission: 0 | 1 | 2 | 3 | 4 | 5 | 6): void
[src]

§Parameters

§
name: string
[src]

command name

§
desc: string
[src]

command description

§
permission: 0 | 1 | 2 | 3 | 4 | 5 | 6
[src]

permission level 0 = everyone 1 = op/commandblock 2 = op 4 = console

§Return Type