Type Alias CommandExecutor

Source
pub type CommandExecutor = fn(state: &mut State, sender: EntityRef, args: &[&str]) -> SysResult;
Expand description

A function that can be used as a command executor.

This is a temporary Bukkit-like command API. We’ll figure out a more structured approach to commands (like Brigadier) in the future.