Command suggestion improvements

This commit is contained in:
Alexander Söderberg 2020-09-17 09:50:36 +02:00
parent bc261676e7
commit 14b5d9fc3c
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
4 changed files with 14 additions and 6 deletions

View file

@ -146,6 +146,7 @@ public final class BukkitTest extends JavaPlugin {
.component(IntegerComponent.required("int"))
.component(BooleanComponent.required("bool"))
.component(StringComponent.required("string"))
.handler(c -> c.getSender().sendMessage("Executed the command"))
.build());
} catch (final Exception e) {
e.printStackTrace();