bukkit: Update for Minecraft 1.17
This commit is contained in:
parent
f7e756e901
commit
123341563d
10 changed files with 253 additions and 50 deletions
|
|
@ -476,7 +476,10 @@ public final class ExamplePlugin extends JavaPlugin {
|
|||
},
|
||||
ArgumentDescription.of("The ItemStack to give")
|
||||
)
|
||||
.handler(ctx -> ((Player) ctx.getSender()).getInventory().addItem(ctx.get("itemstack"))));
|
||||
.handler(ctx -> {
|
||||
final ItemStack stack = ctx.get("itemstack");
|
||||
((Player) ctx.getSender()).getInventory().addItem(stack);
|
||||
}));
|
||||
}
|
||||
|
||||
@CommandMethod("example help [query]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue