We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb854d commit d9a835cCopy full SHA for d9a835c
src/main/java/dev/klash/caramel/CaramelCommandList.java
@@ -75,7 +75,7 @@ public boolean onCommand(CommandSender sender, String label, String[] args) {
75
*/
76
public List<String> onTabComplete(@NotNull Command command, @NotNull String[] args) {
77
for(CaramelCommand cmd : getCommandList()) {
78
- if(cmd.getDetails().label().equalsIgnoreCase(command.getLabel())) {
+ if(cmd.getDetails().label().equalsIgnoreCase(command.getLabel()) || Arrays.asList(cmd.getDetails().aliases()).contains(command.getLabel().toLowerCase())) {
79
return cmd.complete(args);
80
}
81
0 commit comments