From 1753b8c15ce24b4c2c90bf0b93aac916c42d813b Mon Sep 17 00:00:00 2001 From: Hugo Manrique Date: Sun, 16 May 2021 13:46:38 +0200 Subject: [PATCH] Document some restrictions in the command API --- .../com/velocitypowered/api/command/BrigadierCommand.java | 2 +- .../java/com/velocitypowered/api/command/Command.java | 4 ++-- .../com/velocitypowered/api/command/CommandManager.java | 8 ++++++-- .../java/com/velocitypowered/api/command/CommandMeta.java | 6 ++++-- .../velocitypowered/api/command/ConsoleCommandSource.java | 2 -- .../com/velocitypowered/api/command/InvocableCommand.java | 5 +++++ 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/api/src/main/java/com/velocitypowered/api/command/BrigadierCommand.java b/api/src/main/java/com/velocitypowered/api/command/BrigadierCommand.java index da40f48a5..67af56634 100644 --- a/api/src/main/java/com/velocitypowered/api/command/BrigadierCommand.java +++ b/api/src/main/java/com/velocitypowered/api/command/BrigadierCommand.java @@ -18,7 +18,7 @@ import com.mojang.brigadier.tree.LiteralCommandNode; public final class BrigadierCommand implements Command { /** - * Return code used by a {@link com.mojang.brigadier.Command} to indicate + * The return code used by a {@link com.mojang.brigadier.Command} to indicate * the command execution should be forwarded to the backend server. */ public static final int FORWARD = 0xF6287429; diff --git a/api/src/main/java/com/velocitypowered/api/command/Command.java b/api/src/main/java/com/velocitypowered/api/command/Command.java index 68f4594e4..60e713873 100644 --- a/api/src/main/java/com/velocitypowered/api/command/Command.java +++ b/api/src/main/java/com/velocitypowered/api/command/Command.java @@ -13,8 +13,8 @@ import com.velocitypowered.api.proxy.connection.Player; * Represents a command that can be executed by a {@link CommandSource} * such as a {@link Player} or the console. * - *

You should not subclass Command. Use one of the following - * subinterfaces:

+ *

You must not subclass Command. Use one of the following + * registrable subinterfaces:

* *