🎨 Update example plugins to the new meta format

This commit is contained in:
Alexander Söderberg 2020-12-18 19:12:55 +01:00 committed by Alexander Söderberg
parent 9ed40a698a
commit 97e447739c
2 changed files with 4 additions and 3 deletions

View file

@ -221,7 +221,7 @@ public final class ExamplePlugin extends JavaPlugin {
// Add a confirmation command
//
this.manager.command(builder.literal("confirm")
.meta("description", "Confirm a pending command")
.meta(CommandMeta.DESCRIPTION, "Confirm a pending command")
.handler(this.confirmationManager.createConfirmationExecutionHandler()));
//
// Create a world argument
@ -318,7 +318,7 @@ public final class ExamplePlugin extends JavaPlugin {
// A command to change the color scheme for the help command
//
manager.command(builder
.meta("description", "Sets the color scheme for '/example help'")
.meta(CommandMeta.DESCRIPTION, "Sets the color scheme for '/example help'")
.literal("helpcolors")
.argument(
TextColorArgument.of("primary"),