Update arguments

This commit is contained in:
broccolai 2020-09-20 05:21:20 +00:00 committed by Alexander Söderberg
parent c7119dc115
commit 5c7d0bda1e
3 changed files with 6 additions and 10 deletions

View file

@ -39,7 +39,7 @@ public final class UUIDArgument<C> extends CommandArgument<C, UUID> {
private UUIDArgument(final boolean required,
@Nonnull final String name,
final String defaultValue,
@Nonnull final String defaultValue,
@Nonnull final BiFunction<CommandContext<C>, String, List<String>> suggestionsProvider) {
super(required, name, new UUIDParser<>(suggestionsProvider), defaultValue, UUID.class, suggestionsProvider);
}
@ -83,9 +83,9 @@ public final class UUIDArgument<C> extends CommandArgument<C, UUID> {
/**
* Create a new required command component with a default value
*
* @param name Component name
* @param name Component name
* @param defaultUUID Default uuid
* @param <C> Command sender type
* @param <C> Command sender type
* @return Created component
*/
@Nonnull
@ -119,7 +119,7 @@ public final class UUIDArgument<C> extends CommandArgument<C, UUID> {
private final BiFunction<CommandContext<C>, String, List<String>> suggestionsProvider;
public UUIDParser(@Nonnull final BiFunction<CommandContext<C>, String, List<String>> suggestionsProvider) {
UUIDParser(@Nonnull final BiFunction<CommandContext<C>, String, List<String>> suggestionsProvider) {
this.suggestionsProvider = suggestionsProvider;
}