Reduce builder noise.

This commit is contained in:
Alexander Söderberg 2020-10-02 00:16:14 +02:00 committed by Alexander Söderberg
parent ab9860352c
commit 1c56be714c
6 changed files with 66 additions and 56 deletions

View file

@ -24,11 +24,10 @@ mgr.command(mgr.commandBuilder("give")
final ItemStack itemStack = new ItemStack(material, amount);
((Player) c.getSender()).getInventory().addItem(itemStack);
c.getSender().sendMessage("You've been given stuff, bro.");
})
.build())
}));
```
or using annoted methods, like this:
or using annotated methods, like this:
```java
@Description("Test cloud command using @CommandMethod")
@CommandMethod(value = "annotation|a <input> [number]", permission = "some.permission.node")