diff --git a/src/main/java/net/minestom/server/command/CommandProcessor.java b/src/main/java/net/minestom/server/command/CommandProcessor.java index 43ace9eb0..1a7285df1 100644 --- a/src/main/java/net/minestom/server/command/CommandProcessor.java +++ b/src/main/java/net/minestom/server/command/CommandProcessor.java @@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable; * start by {@link #getCommandName()} or any of the aliases in {@link #getAliases()}. *

* Tab-completion can be activated by overriding {@link #enableWritingTracking()} and return true, you should then listen to - * {@link #onWrite(String)} and return the possible completions to suggest. + * {@link #onWrite(CommandSender, String)} and return the possible completions to suggest. *

* Please be sure to check {@link net.minestom.server.command.builder.Command} as it is likely to be better for your use case. */ @@ -74,7 +74,7 @@ public interface CommandProcessor { * WARNING: {@link #enableWritingTracking()} needs to return true, you need to override it by default. * * @param sender the command sender - * @param text the whole player text + * @param text the whole player text * @return the array containing all the suggestions for the current arg (split " "), can be null * @see #enableWritingTracking() */ diff --git a/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicStringArray.java b/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicStringArray.java index 23128e3c0..d2d13a7a9 100644 --- a/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicStringArray.java +++ b/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicStringArray.java @@ -1,5 +1,6 @@ package net.minestom.server.command.builder.arguments; +import net.minestom.server.command.CommandSender; import net.minestom.server.utils.callback.validator.StringArrayValidator; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -8,7 +9,7 @@ import java.util.regex.Pattern; /** * Same as {@link ArgumentStringArray} with the exception - * that this argument can trigger {@link net.minestom.server.command.builder.Command#onDynamicWrite(String)}. + * that this argument can trigger {@link net.minestom.server.command.builder.Command#onDynamicWrite(CommandSender, String)}. */ public class ArgumentDynamicStringArray extends Argument { diff --git a/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicWord.java b/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicWord.java index a039336ea..3d70b1a25 100644 --- a/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicWord.java +++ b/src/main/java/net/minestom/server/command/builder/arguments/ArgumentDynamicWord.java @@ -1,5 +1,6 @@ package net.minestom.server.command.builder.arguments; +import net.minestom.server.command.CommandSender; import net.minestom.server.command.builder.arguments.minecraft.SuggestionType; import net.minestom.server.utils.callback.validator.StringValidator; import org.jetbrains.annotations.NotNull; @@ -7,7 +8,7 @@ import org.jetbrains.annotations.Nullable; /** * Same as {@link ArgumentWord} with the exception - * that this argument can trigger {@link net.minestom.server.command.builder.Command#onDynamicWrite(String)} + * that this argument can trigger {@link net.minestom.server.command.builder.Command#onDynamicWrite(CommandSender, String)} * when the suggestion type is {@link SuggestionType#ASK_SERVER}, or any other suggestions available in the enum. */ public class ArgumentDynamicWord extends Argument {