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:
parent
3960727b2a
commit
7b441ec481
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ This particular example uses `cloud-bukkit`, though most concepts transfer over
|
|||
----
|
||||
CommandManager<CommandSender> manager = new BukkitCommandManager<>(
|
||||
/* Owning plugin */ this,
|
||||
AsynchronousCommandExecutionCoordinator.newBuilder().build(), <1>
|
||||
CommandExecutionCoordinator.simpleCoordinator(), <1>
|
||||
Function.identity(), <2>
|
||||
Function.identity(), <3>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue