Use simpleCoordinator() in docs example

Replace `AsynchronousCommandExecutionCoordinator.newBuilder().build()` with `CommandExecutionCoordinator.simpleCoordinator()`. (`AsynchronousCommandExecutionCoordinator.newBuilder().build()` does not work as it's missing a generic type argument, needs to be `AsynchronousCommandExecutionCoordinator.<CommandSender>newBuilder().build()`)
This commit is contained in:
Jason 2021-03-08 12:00:30 -08:00 committed by jmp
parent 3960727b2a
commit 7b441ec481

View file

@ -110,7 +110,7 @@ This particular example uses `cloud-bukkit`, though most concepts transfer over
---- ----
CommandManager<CommandSender> manager = new BukkitCommandManager<>( CommandManager<CommandSender> manager = new BukkitCommandManager<>(
/* Owning plugin */ this, /* Owning plugin */ this,
AsynchronousCommandExecutionCoordinator.newBuilder().build(), <1> CommandExecutionCoordinator.simpleCoordinator(), <1>
Function.identity(), <2> Function.identity(), <2>
Function.identity(), <3> Function.identity(), <3>
); );