register

fun register(registrar: CommandRegistrar)

Registers a command written directly against the Brigadier tree.

The registrar is recorded so it is replayed whenever the dispatcher is rebuilt (see getDispatcher). If a dispatcher is already cached, the registrar is applied to it once; if the cache is empty, the next getDispatcher rebuild includes it.