Update example plugin for new compound argument mapper

This commit is contained in:
broccolai 2020-10-06 19:40:28 +01:00 committed by Alexander Söderberg
parent c2b1ec8a11
commit 1080b1a2f0

View file

@ -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 -> {