GraphMine

graphmine-core / io.github.sof3.graphmine.command / Command / dispatch

dispatch

fun dispatch(reader: FormattedStringReader, sender: CommandSender, receiver: CommandReceiver): Job

Executes the command.

The command is run as a new coroutine in the command’s owner scope.

Parameters

reader - the reader containing the command arguments. The reader pointer should start at the first character of the command arguments.

sender - the CommandSender that sent the command

receiver - the object that accepts the command output and presents it to the sender.