fix tab completion

This commit is contained in:
2024-01-20 14:54:02 -06:00
parent 264f3fea3c
commit 9dc7bb29e6
5 changed files with 21 additions and 8 deletions

View File

@ -8,6 +8,8 @@ import dev.plex.command.annotation.CommandPermissions;
import dev.plex.command.source.RequiredCommandSource;
import dev.plex.module.nickmm.NickMiniMessageModule;
import dev.plex.util.minimessage.SafeMiniMessage;
import java.util.Collections;
import java.util.List;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
@ -65,4 +67,10 @@ public class NickMMCommand extends PlexCommand
return legacyComponent.deserialize(I18n.tl("nickSet", legacy));
}
@Override
public @NotNull List<String> smartTabComplete(@NotNull CommandSender sender, @NotNull String alias, @NotNull String[] args) throws IllegalArgumentException
{
return Collections.emptyList();
}
}