Fix build

This commit is contained in:
themode 2021-01-05 18:16:44 +01:00
parent 852391f210
commit 9546caca04
3 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
* start by {@link #getCommandName()} or any of the aliases in {@link #getAliases()}.
* <p>
* 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.
* <p>
* 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()
*/

View File

@ -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<String[]> {

View File

@ -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<String> {