Command

fun Command(name: String, onExecute: (CommandExecutor) -> Unit = {})

Parameters

name

The name of the command

onExecute

The function to execute when the command is executed.