From 97e447739cc4324d9954c448adbf6b9bf022169f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Fri, 18 Dec 2020 19:12:55 +0100 Subject: [PATCH] :art: Update example plugins to the new meta format --- .../cloud/commandframework/examples/bukkit/ExamplePlugin.java | 4 ++-- .../cloud/commandframework/examples/bungee/ExamplePlugin.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/ExamplePlugin.java b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/ExamplePlugin.java index 390d5559..0590cf1b 100644 --- a/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/ExamplePlugin.java +++ b/examples/example-bukkit/src/main/java/cloud/commandframework/examples/bukkit/ExamplePlugin.java @@ -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"), diff --git a/examples/example-bungee/src/main/java/cloud/commandframework/examples/bungee/ExamplePlugin.java b/examples/example-bungee/src/main/java/cloud/commandframework/examples/bungee/ExamplePlugin.java index 5478c6a9..c463fca2 100644 --- a/examples/example-bungee/src/main/java/cloud/commandframework/examples/bungee/ExamplePlugin.java +++ b/examples/example-bungee/src/main/java/cloud/commandframework/examples/bungee/ExamplePlugin.java @@ -33,6 +33,7 @@ import cloud.commandframework.bungee.arguments.ServerArgument; import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator; import cloud.commandframework.execution.CommandExecutionCoordinator; import cloud.commandframework.extra.confirmation.CommandConfirmationManager; +import cloud.commandframework.meta.CommandMeta; import cloud.commandframework.minecraft.extras.MinecraftExceptionHandler; import net.kyori.adventure.platform.bungeecord.BungeeAudiences; import net.kyori.adventure.text.Component; @@ -108,7 +109,7 @@ public final class ExamplePlugin extends Plugin { // 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())); final CommandArgument playerArgument = PlayerArgument.of("player");