register

void register(boolean dedicated, Consumer<CommandDispatcher<ServerCommandSource>> consumer)

Register a command provider.

Parameters

dedicated

If true, the command is only registered on the dedicated server.

consumer

The command provider, consuming CommandDispatcher.

Sources

jvm source
Link copied to clipboard