Update example plugin for new compound argument mapper
This commit is contained in:
parent
c2b1ec8a11
commit
1080b1a2f0
1 changed files with 2 additions and 1 deletions
|
|
@ -207,7 +207,8 @@ public final class ExamplePlugin extends JavaPlugin {
|
|||
TypeToken.get(Vector.class),
|
||||
Triplet.of("x", "y", "z"),
|
||||
Triplet.of(Integer.class, Integer.class, Integer.class),
|
||||
triplet -> new Vector(triplet.getFirst(), triplet.getSecond(), triplet.getThird()),
|
||||
(sender, triplet) -> new Vector(triplet.getFirst(), triplet.getSecond(),
|
||||
triplet.getThird()),
|
||||
Description.of("Coordinates"))
|
||||
.handler(context -> manager.taskRecipe().begin(context)
|
||||
.synchronous(commandContext -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue